use player data a lil better

This commit is contained in:
JohnCorby 2022-10-16 14:46:42 -07:00
parent 1b93931704
commit 0380bc5d5a
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
} }
} }
} }