From 109a030ab440d49f7c3e4c68d8d1c99a05b5f49e Mon Sep 17 00:00:00 2001 From: xen-42 Date: Mon, 17 Feb 2025 12:33:23 -0500 Subject: [PATCH] Rename to persistentConditionRequiredForTitle to be more clear --- NewHorizons/External/Configs/TitleScreenConfig.cs | 2 +- NewHorizons/Handlers/TitleSceneHandler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NewHorizons/External/Configs/TitleScreenConfig.cs b/NewHorizons/External/Configs/TitleScreenConfig.cs index 55c30c8e..5451c003 100644 --- a/NewHorizons/External/Configs/TitleScreenConfig.cs +++ b/NewHorizons/External/Configs/TitleScreenConfig.cs @@ -22,7 +22,7 @@ namespace NewHorizons.External.Configs /// /// Persistent condition required for this title screen to appear. /// - public string conditionRequiredForTitle; + public string persistentConditionRequiredForTitle; /// /// 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. diff --git a/NewHorizons/Handlers/TitleSceneHandler.cs b/NewHorizons/Handlers/TitleSceneHandler.cs index 37a5706f..ce9c33eb 100644 --- a/NewHorizons/Handlers/TitleSceneHandler.cs +++ b/NewHorizons/Handlers/TitleSceneHandler.cs @@ -526,7 +526,7 @@ namespace NewHorizons.Handlers 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