From ab98b346e03dc597b63fc93d61c761a552baaa69 Mon Sep 17 00:00:00 2001 From: aerinon Date: Tue, 13 May 2025 14:52:37 -0600 Subject: [PATCH] fix: price in shops bug --- RELEASENOTES.md | 1 + Rom.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 215bf604..8f9066dd 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -3,3 +3,4 @@ * 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. * Helmacopter Fix + * Fixed a bug in shopsanity that would cause the generation to fail with certain prices. diff --git a/Rom.py b/Rom.py index 0961df7c..71f65ef2 100644 --- a/Rom.py +++ b/Rom.py @@ -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']