mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Use KnowsFact
This commit is contained in:
parent
aff44f3f18
commit
fa6890d7a5
@ -88,12 +88,8 @@ namespace NewHorizons.Handlers
|
|||||||
if (!_starSystemToFactID.TryGetValue(system, out var factID))
|
if (!_starSystemToFactID.TryGetValue(system, out var factID))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// If we got a fact but now can't find it elsewhere, its not unlocked
|
// It's unlocked if known
|
||||||
if (!GameObject.FindObjectOfType<ShipLogManager>()._factDict.TryGetValue(factID, out var fact))
|
return ShipLogHandler.KnowsFact(factID);
|
||||||
return false;
|
|
||||||
|
|
||||||
// It's unlocked if revealed
|
|
||||||
return fact.IsRevealed();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void OnRevealFact(string factID)
|
public static void OnRevealFact(string factID)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user