Fixed initialReveal and curiosity colors

This commit is contained in:
Ben C 2022-02-08 16:17:18 -05:00
parent 3d200a19db
commit cfdf22d341

View File

@ -91,19 +91,19 @@ namespace NewHorizons.Tools
public static bool OnShipLogManagerStart(ShipLogManager __instance) 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<string>())
{
__instance.RevealFact(fact, false, false);
}
}
if (Main.Instance.CurrentStarSystem == "SolarSystem") if (Main.Instance.CurrentStarSystem == "SolarSystem")
{ {
return true; return true;
} }
else else
{ {
foreach (NewHorizonsBody body in Main.BodyDict[Main.Instance.CurrentStarSystem])
{
foreach (string fact in body.Config.ShipLog?.initialReveal ?? Array.Empty<string>())
{
__instance.RevealFact(fact, false, false);
}
}
EntryLocationBuilder.InitializeLocations(); EntryLocationBuilder.InitializeLocations();
return false; return false;
} }
@ -111,7 +111,7 @@ namespace NewHorizons.Tools
public static bool OnUIStyleManagerGetCuriosityColor(UIStyleManager __instance, CuriosityName __0, bool __1, ref Color __result) public static bool OnUIStyleManagerGetCuriosityColor(UIStyleManager __instance, CuriosityName __0, bool __1, ref Color __result)
{ {
if (Main.Instance.CurrentStarSystem == "SolarSystem") if ((int)__0 < 7)
{ {
return true; return true;
} }