From 428af55bd9fb755ccb3488ce3b0824dee5329065 Mon Sep 17 00:00:00 2001 From: Alchav <59858495+Alchav@users.noreply.github.com> Date: Thu, 6 Jan 2022 23:42:55 -0500 Subject: [PATCH] LTTP shop price modifier tweak Ensure shop prices are a multiple of 5 after price modifier --- worlds/alttp/Shops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/alttp/Shops.py b/worlds/alttp/Shops.py index a5d35b1b..29401117 100644 --- a/worlds/alttp/Shops.py +++ b/worlds/alttp/Shops.py @@ -264,7 +264,7 @@ def ShopSlotFill(world): price = world.random.randrange(8, 56) shop.push_inventory(location.shop_slot, item_name, - min(int(price * 5 * world.shop_price_modifier[location.player] / 100), 9999), 1, + min(int(price * world.shop_price_modifier[location.player] / 100) * 5, 9999), 1, location.item.player if location.item.player != location.player else 0) if 'P' in world.shop_shuffle[location.player]: price_to_funny_price(shop.inventory[location.shop_slot], world, location.player)