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

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
else:
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_price = int16_as_bytes(item['replacement_price'])
item_max = item['max']