mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
Merge branch 'dev' into test-fixes
This commit is contained in:
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))]
|
||||
|
||||
Reference in new issue
Block a user