Use vanilla keys in no-logic when keys aren't shuffled outside dungeons

This commit is contained in:
cassidoxa
2023-08-18 00:46:57 -04:00
parent 3226e067be
commit 4071cbc702

7
Rom.py
View File

@@ -462,6 +462,13 @@ def patch_rom(world, player, rom):
continue
if not location.crystal:
if location.parent_region.dungeon and (world.logic == 'nologic' and not world.keysanity):
dungeon = location.parent_region.dungeon
if location.item is not None and location.item.key and dungeon.is_dungeon_item(location.item):
if location.item.type == "BigKey":
itemid = 0x32
if location.item.type == "SmallKey":
itemid = 0x24
rom.write_byte(location.address, itemid)
else:
# crystals