Merge pull request #23 from KrisDavie/OverworldShuffleDev

Fix cavestate dungeon items in non-keysanity
This commit is contained in:
codemann8
2025-03-06 11:38:47 -06:00
committed by GitHub

6
Rom.py
View File

@@ -474,6 +474,12 @@ def patch_rom(world, rom, player, team, is_mystery=False):
rom.write_byte(location.player_address, location.item.player)
else:
itemid = 0x5A
if not location.locked and ((location.item.smallkey and world.keyshuffle[player] == 'none') or (
location.item.bigkey and world.bigkeyshuffle[player] == 'none') or (
location.item.map and world.mapshuffle[player] == 'none') or (
location.item.compass and world.compassshuffle[player] == 'none')):
itemid = handle_native_dungeon(location, itemid)
rom.write_byte(location.address, itemid)
for dungeon in [d for d in world.dungeons if d.player == player]:
if dungeon.prize: