fix: price in shops bug

This commit is contained in:
aerinon
2025-05-13 14:52:37 -06:00
parent 91d6d4ec8a
commit ab98b346e0
2 changed files with 2 additions and 1 deletions

View File

@@ -3,3 +3,4 @@
* 1.4.10 * 1.4.10
* Logic: Changed the rule surrounding the Bumper Cave Ledge Drop (the murderdactyl) to only require Pearl and (Cape or Byrna or a Sword) in OHKO mode for now. This is a temporary solution until a better way to prevent needing to use a framerule to get by the bird is invented. * Logic: Changed the rule surrounding the Bumper Cave Ledge Drop (the murderdactyl) to only require Pearl and (Cape or Byrna or a Sword) in OHKO mode for now. This is a temporary solution until a better way to prevent needing to use a framerule to get by the bird is invented.
* Helmacopter Fix * Helmacopter Fix
* Fixed a bug in shopsanity that would cause the generation to fail with certain prices.

2
Rom.py
View File

@@ -1500,7 +1500,7 @@ def write_custom_shops(rom, world, player):
item_id, price, replace, replace_price, item_max = Items.item_table['Bee Trap'][3], [0, 0], 0xFF, [0, 0], 1 item_id, price, replace, replace_price, item_max = Items.item_table['Bee Trap'][3], [0, 0], 0xFF, [0, 0], 1
else: else:
item_id = loc_item.code item_id = loc_item.code
price = int16_as_bytes(item['price']) price = int16_as_bytes(int(item['price']))
replace = ItemFactory(item['replacement'], player).code if item['replacement'] else 0xFF replace = ItemFactory(item['replacement'], player).code if item['replacement'] else 0xFF
replace_price = int16_as_bytes(item['replacement_price']) replace_price = int16_as_bytes(item['replacement_price'])
item_max = item['max'] item_max = item['max']