mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-14 00:53:07 -07:00
Use enum for kak gate (#2043)
Co-authored-by: briaguya <briaguya@alice> Co-authored-by: David Chavez <david@dcvz.io>
This commit is contained in:
parent
bfc0ca5388
commit
ec8ec8d322
5 changed files with 13 additions and 12 deletions
|
@ -404,11 +404,8 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) {
|
|||
break;
|
||||
}
|
||||
|
||||
int kakGate = Randomizer_GetSettingValue(RSK_KAK_GATE);
|
||||
switch (kakGate) {
|
||||
case 1: // open
|
||||
gSaveContext.infTable[7] |= 0x40;
|
||||
break;
|
||||
if (Randomizer_GetSettingValue(RSK_KAK_GATE) == RO_KAK_GATE_OPEN) {
|
||||
gSaveContext.infTable[7] |= 0x40;
|
||||
}
|
||||
|
||||
if(Randomizer_GetSettingValue(RSK_STARTING_KOKIRI_SWORD)) Item_Give(NULL, ITEM_SWORD_KOKIRI);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue