mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
LTTP: Missed per_slot_random change (#2907)
This commit is contained in:
@@ -453,7 +453,7 @@ def get_price(multiworld, item, player: int, price_type=None):
|
|||||||
price = item["price"]
|
price = item["price"]
|
||||||
if multiworld.randomize_shop_prices[player]:
|
if multiworld.randomize_shop_prices[player]:
|
||||||
adjust = 2 if price < 100 else 5
|
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)
|
multiworld.per_slot_randoms[player].shuffle(price_types)
|
||||||
for p_type in price_types:
|
for p_type in price_types:
|
||||||
if any(x in item['item'] for x in price_blacklist[p_type]):
|
if any(x in item['item'] for x in price_blacklist[p_type]):
|
||||||
|
Reference in New Issue
Block a user