mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Port to v17.0.0 (2025.9.9)
This commit is contained in:
1 parent
088c218325
commit
e3836c9d31
43 files changed
+531
-181
No files matched your search
@@ -1258,8 +1258,8 @@ internal static class ReportDeadBodyPatch
|
||||
|
||||
if (tpc != null && !tpc.IsAlive())
|
||||
{
|
||||
if (player.Is(CustomRoles.Detective) && player.PlayerId != target.PlayerId)
|
||||
Detective.OnReportDeadBody(player, target.Object);
|
||||
if (player.Is(CustomRoles.Forensic) && player.PlayerId != target.PlayerId)
|
||||
Forensic.OnReportDeadBody(player, target.Object);
|
||||
else if (player.Is(CustomRoles.Sleuth) && player.PlayerId != target.PlayerId)
|
||||
{
|
||||
string msg = string.Format(GetString("SleuthMsg"), tpc.GetRealName(), tpc.GetDisplayRoleName());
|
||||
@@ -2444,6 +2444,8 @@ internal static class PlayerControlLocalSetRolePatch
|
||||
RoleTypes.Noisemaker => CustomRoles.NoisemakerEHR,
|
||||
RoleTypes.Scientist => CustomRoles.ScientistEHR,
|
||||
RoleTypes.Tracker => CustomRoles.TrackerEHR,
|
||||
RoleTypes.Detective => CustomRoles.DetectiveEHR,
|
||||
RoleTypes.Viper => CustomRoles.ViperEHR,
|
||||
_ => CustomRoles.NotAssigned
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user