Skip to content

Commit

Permalink
Rename to persistentConditionRequiredForTitle to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
xen-42 committed Feb 17, 2025
1 parent 2774f6a commit 109a030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NewHorizons/External/Configs/TitleScreenConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class TitleScreenConfig
/// <summary>
/// Persistent condition required for this title screen to appear.
/// </summary>
public string conditionRequiredForTitle;
public string persistentConditionRequiredForTitle;

/// <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.
Expand Down
2 changes: 1 addition & 1 deletion NewHorizons/Handlers/TitleSceneHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ public void Build()

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
Expand Down

0 comments on commit 109a030

Please sign in to comment.