Simplify ShopSlot Shuffling

This commit is contained in:
Fabian Dill
2021-01-10 19:23:57 +01:00
parent 52d5b96435
commit f12259dd7d
5 changed files with 49 additions and 68 deletions

8
Rom.py
View File

@@ -683,17 +683,11 @@ def patch_rom(world, rom, player, team, enemized):
# patch items
for location in world.get_locations():
if location.player != player:
if location.player != player or location.address is None or location.shop_slot:
continue
itemid = location.item.code if location.item is not None else 0x5A
if location.address is None:
continue
if location.parent_region.shop and 'Slot' in location.name:
continue
if not location.crystal:
if location.item is not None:
# Keys in their native dungeon should use the orignal item code for keys