From cfdf22d341711a72f9671269e939cbb779b39b7d Mon Sep 17 00:00:00 2001 From: Ben C Date: Tue, 8 Feb 2022 16:17:18 -0500 Subject: [PATCH] Fixed initialReveal and curiosity colors --- NewHorizons/Tools/ShipLogPatches.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/NewHorizons/Tools/ShipLogPatches.cs b/NewHorizons/Tools/ShipLogPatches.cs index 982e7e8b..c14c21ab 100644 --- a/NewHorizons/Tools/ShipLogPatches.cs +++ b/NewHorizons/Tools/ShipLogPatches.cs @@ -91,19 +91,19 @@ namespace NewHorizons.Tools public static bool OnShipLogManagerStart(ShipLogManager __instance) { + foreach (NewHorizonsBody body in Main.BodyDict[Main.Instance.CurrentStarSystem]) + { + foreach (string fact in body.Config.ShipLog?.initialReveal ?? Array.Empty()) + { + __instance.RevealFact(fact, false, false); + } + } if (Main.Instance.CurrentStarSystem == "SolarSystem") { return true; } else { - foreach (NewHorizonsBody body in Main.BodyDict[Main.Instance.CurrentStarSystem]) - { - foreach (string fact in body.Config.ShipLog?.initialReveal ?? Array.Empty()) - { - __instance.RevealFact(fact, false, false); - } - } EntryLocationBuilder.InitializeLocations(); return false; } @@ -111,7 +111,7 @@ namespace NewHorizons.Tools public static bool OnUIStyleManagerGetCuriosityColor(UIStyleManager __instance, CuriosityName __0, bool __1, ref Color __result) { - if (Main.Instance.CurrentStarSystem == "SolarSystem") + if ((int)__0 < 7) { return true; }