From 15892c9592d79635cc4d39c52dfa79af64ddae25 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 27 Nov 2024 18:17:13 +0300 Subject: [PATCH] Remove NNeed Warm Clothes Alert on space maps --- Source/1.5/HarmonyPatches.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Source/1.5/HarmonyPatches.cs b/Source/1.5/HarmonyPatches.cs index b5534fad..2436d956 100644 --- a/Source/1.5/HarmonyPatches.cs +++ b/Source/1.5/HarmonyPatches.cs @@ -5209,6 +5209,22 @@ public static void Postfix(GameEnder __instance) } } + // Need warm clothes alert is seasonal, reminds player to get warm clothes when winte is coming soon. Ans also tutorial-ish, tell new players what to do. + // Space map is not seasonal, it is always -100C. So this alert isn't really necessary and even reported annoying, so remove. + [HarmonyPatch(typeof(Alert_NeedWarmClothes), "AnyColonistsNeedWarmClothes")] + public static class NoSeasonalWarmClothesInSpace + { + public static bool Prefix(Map map, ref bool __result) + { + if (map.IsSpace()) + { + __result = false; + return false; + } + return true; + } + } + /*[HarmonyPatch(typeof(ActiveDropPod),"PodOpen")] public static class ActivePodFix{ public static bool Prefix (ref ActiveDropPod __instance)