mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fixed initialReveal and curiosity colors
This commit is contained in:
parent
3d200a19db
commit
cfdf22d341
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user