use playerdata a lil better (#421)

This commit is contained in:
Noah 2022-10-17 01:31:13 -04:00 committed by GitHub
commit ac423de88b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
// 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);

View File

@ -114,7 +114,7 @@ namespace NewHorizons.Handlers
// Works normally in the main system, else check save data directly
var shipLogManager = Locator.GetShipLogManager();
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;
}
}
}