diff options
| author | Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> | 2024-07-11 15:38:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 10:38:52 -0400 |
| commit | a0fda39a75a4c628e2a19249bb7e736d540acf72 (patch) | |
| tree | 7d932d7b5b60848d413510ab4715cbf8f02ddc25 | |
| parent | 77770ba3b2d93b96220909fefe0ef85b2c55ecf3 (diff) | |
Force Warp Song Hints off when Warp Songs are not shuffled (#4229)
| -rw-r--r-- | soh/soh/Enhancements/randomizer/settings.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/soh/soh/Enhancements/randomizer/settings.cpp b/soh/soh/Enhancements/randomizer/settings.cpp index cbaf774f0..0d702e480 100644 --- a/soh/soh/Enhancements/randomizer/settings.cpp +++ b/soh/soh/Enhancements/randomizer/settings.cpp @@ -1739,6 +1739,12 @@ void Settings::UpdateOptionProperties() { mOptions[RSK_HINT_DISTRIBUTION].Unhide(); } + if (CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleWarpSongs"), RO_GENERIC_ON)) { + mOptions[RSK_WARP_SONG_HINTS].Enable(); + } else { + mOptions[RSK_WARP_SONG_HINTS].Disable("This option is disabled since warp song locations not shuffled."); + } + if (CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleCows"), RO_GENERIC_OFF)) { mOptions[RSK_MALON_HINT].Enable(); } else { @@ -2039,6 +2045,10 @@ void Settings::FinalizeSettings(const std::set<RandomizerCheck>& excludedLocatio mOptions[RSK_KEYSANITY].SetSelectedIndex(3); } + if (!mOptions[RSK_SHUFFLE_WARP_SONGS]) { + mOptions[RSK_WARP_SONG_HINTS].SetSelectedIndex(RO_GENERIC_OFF); + } + if (!mOptions[RSK_SHUFFLE_COWS]) { mOptions[RSK_MALON_HINT].SetSelectedIndex(RO_GENERIC_OFF); } |
