From 59b1f43b56bc37d4899f108c7fae82d24b033ee9 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Fri, 21 Aug 2020 02:39:18 +0200 Subject: [PATCH] set rom flags to no small keysanity if universal keys are on --- Rom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rom.py b/Rom.py index c14659db..1bca69bf 100644 --- a/Rom.py +++ b/Rom.py @@ -1182,7 +1182,7 @@ def patch_rom(world, rom, player, team, enemized): # block HC upstairs doors in rain state in standard mode rom.write_byte(0x18008A, 0x01 if world.mode[player] == "standard" and world.shuffle[player] != 'vanilla' else 0x00) - rom.write_byte(0x18016A, 0x10 | ((0x01 if world.keyshuffle[player] else 0x00) + rom.write_byte(0x18016A, 0x10 | ((0x01 if world.keyshuffle[player] is True else 0x00) | (0x02 if world.compassshuffle[player] else 0x00) | (0x04 if world.mapshuffle[player] else 0x00) | (0x08 if world.bigkeyshuffle[player] else 0x00))) # free roaming item text boxes @@ -1206,7 +1206,7 @@ def patch_rom(world, rom, player, team, enemized): # b - Big Key # a - Small Key # - rom.write_byte(0x180045, ((0x01 if world.keyshuffle[player] else 0x00) + rom.write_byte(0x180045, ((0x01 if world.keyshuffle[player] is True else 0x00) | (0x02 if world.bigkeyshuffle[player] else 0x00) | (0x04 if world.mapshuffle[player] else 0x00) | (0x08 if world.compassshuffle[player] else 0x00))) # free roaming items in menu