Remove cap upgrades for hard/expert

Replace cap upgrades with red rupees in shopsanity
This commit is contained in:
aerinon
2021-06-02 13:28:33 -06:00
parent 63d49c5775
commit c81865b33f
2 changed files with 33 additions and 25 deletions

3
Rom.py
View File

@@ -1600,6 +1600,9 @@ def write_custom_shops(rom, world, player):
loc_item = world.get_location(retro_shops[shop.region.name][index], player).item
else:
loc_item = ItemFactory(item['item'], player)
if (not world.shopsanity[player] and shop.region.name == 'Capacity Upgrade'
and world.difficulty[player] != 'normal'):
continue # skip cap upgrades except in normal/shopsanity
item_id = loc_item.code
price = int16_as_bytes(item['price'])
replace = ItemFactory(item['replacement'], player).code if item['replacement'] else 0xFF