mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Simplify ShopSlot Shuffling
This commit is contained in:
8
Rom.py
8
Rom.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user