mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
use player data a lil better
This commit is contained in:
parent
1b93931704
commit
0380bc5d5a
@ -16,7 +16,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
{
|
{
|
||||||
// In stock I think they disable dialogue stuff with conditions
|
// In stock I think they disable dialogue stuff with conditions
|
||||||
// Here we just don't make it at all
|
// Here we just don't make it at all
|
||||||
if (info.blockAfterPersistentCondition != null && PlayerData._currentGameSave.GetPersistentCondition(info.blockAfterPersistentCondition)) return (null, null);
|
if (info.blockAfterPersistentCondition != null && PlayerData.GetPersistentCondition(info.blockAfterPersistentCondition)) return (null, null);
|
||||||
|
|
||||||
var dialogue = MakeConversationZone(go, sector, info, mod.ModHelper);
|
var dialogue = MakeConversationZone(go, sector, info, mod.ModHelper);
|
||||||
|
|
||||||
|
|||||||
@ -114,7 +114,7 @@ namespace NewHorizons.Handlers
|
|||||||
// Works normally in the main system, else check save data directly
|
// Works normally in the main system, else check save data directly
|
||||||
var shipLogManager = Locator.GetShipLogManager();
|
var shipLogManager = Locator.GetShipLogManager();
|
||||||
if (Main.Instance.CurrentStarSystem == "SolarSystem" && shipLogManager != null) return shipLogManager.IsFactRevealed(fact);
|
if (Main.Instance.CurrentStarSystem == "SolarSystem" && shipLogManager != null) return shipLogManager.IsFactRevealed(fact);
|
||||||
else return PlayerData._currentGameSave.shipLogFactSaves.ContainsKey(fact) && PlayerData._currentGameSave.shipLogFactSaves[fact].revealOrder > -1;
|
else return PlayerData.GetShipLogFactSave(fact)?.revealOrder > -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user