From cbe99764ef09ceb4bd737e67dfc1afc50ea9794f Mon Sep 17 00:00:00 2001 From: Gurge44 Date: Tue, 17 Nov 2026 09:53:55 +0100 Subject: [PATCH] revert to old bepinex ig --- CTA/CustomTeamAssigner/CustomRoles.cs | 1 + EHR.csproj | 7 +++++-- Roles/Standard/Ghost/Influencer.cs | 6 +----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CTA/CustomTeamAssigner/CustomRoles.cs b/CTA/CustomTeamAssigner/CustomRoles.cs index 92f74deea..180947932 100644 --- a/CTA/CustomTeamAssigner/CustomRoles.cs +++ b/CTA/CustomTeamAssigner/CustomRoles.cs @@ -588,6 +588,7 @@ public enum CustomRoles Haste, Haunter, // Ghost role Hidden, + Influencer, // SpiritGuide - Ghost role Insane, Introvert, Knighted, diff --git a/EHR.csproj b/EHR.csproj index d8f3a8976..b6b9ed4b7 100644 --- a/EHR.csproj +++ b/EHR.csproj @@ -44,8 +44,11 @@ - - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + diff --git a/Roles/Standard/Ghost/Influencer.cs b/Roles/Standard/Ghost/Influencer.cs index 2494e3140..fcf015d04 100644 --- a/Roles/Standard/Ghost/Influencer.cs +++ b/Roles/Standard/Ghost/Influencer.cs @@ -8,15 +8,11 @@ public class Influencer : IGhostRole public Team Team => Team.Crewmate; public RoleTypes RoleTypes => RoleTypes.SpiritGuide; - public int Cooldown => CD.GetInt(); + public int Cooldown => CrewmateVanillaRoles.SpiritGuideCooldown.GetInt(); public void SetupCustomOption() { Options.SetupRoleOptions(647000, TabGroup.OtherRoles, CustomRoles.Influencer); - - CD = new IntegerOptionItem(647002, "SpiritGuideCooldown", new(0, 120, 1), 30, TabGroup.OtherRoles) - .SetParent(Options.CustomRoleSpawnChances[CustomRoles.Influencer]) - .SetValueFormat(OptionFormat.Seconds); } public void OnProtect(PlayerControl pc, PlayerControl target)