Skip to content

Commit 07148c3

Browse files
authored
Merge pull request #830 from yukieiji/fix-role-docs-technical-ref-4377101141010160149
役職作成ドキュメント(メソッド・インターフェース)の網羅的更新
2 parents 9f1fa6e + d3b84f1 commit 07148c3

21 files changed

Lines changed: 318 additions & 138 deletions

File tree

ExtremeRoles/Patches/Player/MurderPlayerPatch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ private static void invokeRoleHookAction(
231231

232232
if (localPlayerRole is IRoleMurderPlayerHook hookRole)
233233
{
234-
hookRole.HookMuderPlayer(killer, target);
234+
hookRole.HookMurderPlayer(killer, target);
235235
}
236236
if (localPlayerRole is MultiAssignRoleBase multiAssignRole &&
237237
multiAssignRole.AnotherRole is IRoleMurderPlayerHook multiHookRole)
238238
{
239-
multiHookRole.HookMuderPlayer(killer, target);
239+
multiHookRole.HookMurderPlayer(killer, target);
240240
}
241241
}
242242

ExtremeRoles/Roles/API/Interface/IRoleMurderPlayerHook.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
namespace ExtremeRoles.Roles.API.Interface
1+
namespace ExtremeRoles.Roles.API.Interface
22
{
33
public interface IRoleMurderPlayerHook
44
{
5-
void HookMuderPlayer(
5+
void HookMurderPlayer(
66
PlayerControl source,
77
PlayerControl target);
88
}

ExtremeRoles/Roles/API/SingleRoleBase.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ public virtual SingleRoleBase Clone()
111111
return role;
112112
}
113113

114-
public virtual bool IsTeamsWin() => this.IsWin;
115-
116114
protected override void CommonInit()
117115
{
118116
var baseOption = GameOptionsManager.Instance.CurrentGameOptions;

ExtremeRoles/Roles/Combination/InvestigatorOffice/Assistant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void AllReset(PlayerControl rolePlayer)
2424
downgradeDetective();
2525
}
2626

27-
public void HookMuderPlayer(
27+
public void HookMurderPlayer(
2828
PlayerControl source, PlayerControl target)
2929
{
3030
if (MeetingHud.Instance == null)

ExtremeRoles/Roles/Combination/InvestigatorOffice/Investigator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ this.searchInfo is null ||
289289
this.searchInfo.AllTarget.Add(crime, reporter.PlayerId);
290290
}
291291

292-
public void HookMuderPlayer(
292+
public void HookMurderPlayer(
293293
PlayerControl source, PlayerControl target)
294294
{
295295
this.status?.AddCrime(source, target);

ExtremeRoles/Roles/Combination/Sharer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public Sharer() : base(
8888
OptionTab.CombinationTab)
8989
{ }
9090

91-
public void HookMuderPlayer(
91+
public void HookMurderPlayer(
9292
PlayerControl source,
9393
PlayerControl target)
9494
{

ExtremeRoles/Roles/Solo/Crewmate/CurseMaker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public void ResetOnMeetingEnd(NetworkedPlayerInfo exiledPlayer = null)
381381
return;
382382
}
383383

384-
public void HookMuderPlayer(PlayerControl source, PlayerControl target)
384+
public void HookMurderPlayer(PlayerControl source, PlayerControl target)
385385
{
386386
if (MeetingHud.Instance != null ||
387387
this.isDeadBodySearchUsed ||

ExtremeRoles/Roles/Solo/Crewmate/Whisper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void ResetOnMeetingStart()
7171
}
7272
}
7373

74-
public void HookMuderPlayer(
74+
public void HookMurderPlayer(
7575
PlayerControl source,
7676
PlayerControl target)
7777
{

ExtremeRoles/Roles/Solo/Impostor/Hypnotist.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public void Update(PlayerControl rolePlayer)
419419
}
420420
}
421421

422-
public void HookMuderPlayer(
422+
public void HookMurderPlayer(
423423
PlayerControl source, PlayerControl target)
424424
{
425425
if (this.doll.Contains(source.PlayerId) &&

ExtremeRoles/Roles/Solo/Liberal/Leader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public void Update(PlayerControl rolePlayer)
286286
this.reviver.Update();
287287
}
288288

289-
public void HookMuderPlayer(PlayerControl source, PlayerControl target)
289+
public void HookMurderPlayer(PlayerControl source, PlayerControl target)
290290
{
291291
if (!(
292292
ExtremeRoleManager.TryGetRole(source.PlayerId, out var role) &&

0 commit comments

Comments
 (0)