Merge branch 'dev' into test-fixes

This commit is contained in:
Atony committed 2026-11-01 11:53:37 -06:00
commit aa0c251662
1 file changed
+4 -7
@@ -20,16 +20,13 @@ internal static class GameManagerPatches
return true;
}
[HarmonyPrefix, HarmonyPatch(nameof(GameManager.ShowCrewmatesKilled))]
public static bool ShowCrewmatesKilledPrefix(ref bool __result)
[HarmonyPostfix, HarmonyPatch(nameof(GameManager.StartGame))]
public static void StartGamePostfix()
{
if (CustomGameModeManager.ActiveMode != null)
if (CustomGameModeManager.ActiveMode != null && HudManager.InstanceExists)
{
__result = CustomGameModeManager.ActiveMode is HideAndSeekMode;
return false;
HudManager.Instance.CrewmatesKilled.gameObject.SetActive(CustomGameModeManager.ActiveMode is HideAndSeekMode);
}
return true;
}
[HarmonyPatch(typeof(NormalGameManager), nameof(NormalGameManager.GetMapOptions))]