Skip to content

Commit

Permalink
LTTP: Missed per_slot_random change (ArchipelagoMW#2907)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alchav authored and EmilyV99 committed Apr 15, 2024
1 parent 98dbf9f commit 669cac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/alttp/Shops.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def get_price(multiworld, item, player: int, price_type=None):
price = item["price"]
if multiworld.randomize_shop_prices[player]:
adjust = 2 if price < 100 else 5
price = int((price / adjust) * (0.5 + multiworld.random.random() * 1.5)) * adjust
price = int((price / adjust) * (0.5 + multiworld.per_slot_randoms[player].random() * 1.5)) * adjust
multiworld.per_slot_randoms[player].shuffle(price_types)
for p_type in price_types:
if any(x in item['item'] for x in price_blacklist[p_type]):
Expand Down

0 comments on commit 669cac3

Please sign in to comment.