diff --git a/Source/1.5/HarmonyPatches.cs b/Source/1.5/HarmonyPatches.cs index b5534fad..53803540 100644 --- a/Source/1.5/HarmonyPatches.cs +++ b/Source/1.5/HarmonyPatches.cs @@ -3160,7 +3160,7 @@ public static void Postfix(ref IEnumerable __result, Pawn pawn) } [HarmonyPatch(typeof(GenStep_Fog), "Generate")] - public static class UnfogVault + public static class UnfogVaultAndLandedShip { public static void Postfix(Map map) { @@ -3168,6 +3168,17 @@ public static void Postfix(Map map) { FloodFillerFog.FloodUnfog(casket.Position, map); } + ShipMapComp mapComp = map.GetComponent(); + foreach (SpaceShipCache ship in mapComp.ShipsOnMap.Values.Where(s => !s.IsWreck)) + { + if (ship.Name == "Charlon Whitestone") + { + foreach (IntVec3 tile in ship.Area) + { + map.fogGrid.Unfog(tile); + } + } + } } }