summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorbriaguya <70942617+briaguya-ai@users.noreply.github.com>2022-11-29 20:05:11 -0500
committerGitHub <noreply@github.com>2022-11-30 02:05:11 +0100
commit17c6a3653c98369435f281b6047b8a099b67a7ac (patch)
treeccd39892e501d35776cb8b467fdac50cea9f67be /soh/src/code
parentb976ef58fe14783c2e2ba2e4d0a4b6b85c628e58 (diff)
use enum for keysanity (#2044)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_sram.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/soh/src/code/z_sram.c b/soh/src/code/z_sram.c
index a6168a957..e3f080e67 100644
--- a/soh/src/code/z_sram.c
+++ b/soh/src/code/z_sram.c
@@ -473,8 +473,7 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) {
GiveLinkRupees(9001);
}
- // "Start with" == 0 for Keysanity
- if(Randomizer_GetSettingValue(RSK_KEYSANITY) == 0) {
+ if(Randomizer_GetSettingValue(RSK_KEYSANITY) == RO_DUNGEON_ITEM_LOC_STARTWITH) {
// TODO: If master quest there are different key counts
gSaveContext.inventory.dungeonKeys[SCENE_BMORI1] = FOREST_TEMPLE_SMALL_KEY_MAX; // Forest
gSaveContext.sohStats.dungeonKeys[SCENE_BMORI1] = FOREST_TEMPLE_SMALL_KEY_MAX; // Forest