significantly reduce price of maps and compasses

This commit is contained in:
Fabian Dill 2021-02-07 10:05:25 +01:00
parent 191834200f
commit 54ca6bb26f
1 changed files with 3 additions and 4 deletions

View File

@ -223,17 +223,16 @@ def ShopSlotFill(world):
cumu_weights[swapping_sphere_id] -= 1 cumu_weights[swapping_sphere_id] -= 1
item_name = location.item.name item_name = location.item.name
if any(x in item_name for x in ['Single Bomb', 'Single Arrow', 'Piece of Heart']): if any(x in item_name for x in ['Compass', 'Map', 'Single Bomb', 'Single Arrow', 'Piece of Heart']):
price = world.random.randrange(1, 7) price = world.random.randrange(1, 7)
elif any(x in item_name for x in ['Arrow', 'Bomb', 'Clock']): elif any(x in item_name for x in ['Arrow', 'Bomb', 'Clock']):
price = world.random.randrange(2, 14) price = world.random.randrange(2, 14)
elif any(x in item_name for x in ['Compass', 'Map', 'Small Key', 'Clock', 'Heart']): elif any(x in item_name for x in ['Small Key', 'Heart']):
price = world.random.randrange(4, 28) price = world.random.randrange(4, 28)
else: else:
price = world.random.randrange(8, 56) price = world.random.randrange(8, 56)
price *= 5 shop.push_inventory(int(location.name[-1]) - 1, item_name, price * 5, 1,
shop.push_inventory(int(location.name[-1]) - 1, item_name, price, 1,
location.item.player if location.item.player != location.player else 0) location.item.player if location.item.player != location.player else 0)