Rename to persistentConditionRequiredForTitle to be more clear

This commit is contained in:
xen-42 2025-02-17 12:33:23 -05:00
parent 2774f6a68b
commit 109a030ab4
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ namespace NewHorizons.External.Configs
/// <summary> /// <summary>
/// Persistent condition required for this title screen to appear. /// Persistent condition required for this title screen to appear.
/// </summary> /// </summary>
public string conditionRequiredForTitle; public string persistentConditionRequiredForTitle;
/// <summary> /// <summary>
/// If set to true, NH generated planets will not show on the title screen. If false, this title screen has the same chance as other NH planet title screens to show. /// If set to true, NH generated planets will not show on the title screen. If false, this title screen has the same chance as other NH planet title screens to show.

View File

@ -526,7 +526,7 @@ namespace NewHorizons.Handlers
public bool KnowsFact() => string.IsNullOrEmpty(config.factRequiredForTitle) || StandaloneProfileManager.SharedInstance.currentProfile != null && ShipLogHandler.KnowsFact(config.factRequiredForTitle); public bool KnowsFact() => string.IsNullOrEmpty(config.factRequiredForTitle) || StandaloneProfileManager.SharedInstance.currentProfile != null && ShipLogHandler.KnowsFact(config.factRequiredForTitle);
public bool HasCondition() => string.IsNullOrEmpty(config.conditionRequiredForTitle) || StandaloneProfileManager.SharedInstance.currentProfile != null && PlayerData.GetPersistentCondition(config.conditionRequiredForTitle); public bool HasCondition() => string.IsNullOrEmpty(config.persistentConditionRequiredForTitle) || StandaloneProfileManager.SharedInstance.currentProfile != null && PlayerData.GetPersistentCondition(config.persistentConditionRequiredForTitle);
} }
internal interface ITitleScreenBuilder internal interface ITitleScreenBuilder