mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-21 21:43:26 +00:00
19 lines
498 B
C#
19 lines
498 B
C#
/*
|
|
[HarmonyPatch(typeof(MapBehaviour))]
|
|
public static class MapBehaviourPatch
|
|
{
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(nameof(MapBehaviour.ShowSabotageMap))]
|
|
public static bool ShowSabotagePatch(MapBehaviour __instance)
|
|
{
|
|
var shouldShow = CustomGameModeManager.ActiveMode?.ShouldShowSabotageMap(__instance);
|
|
if (shouldShow.HasValue && !shouldShow.Value)
|
|
{
|
|
__instance.ShowNormalMap();
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}*/
|