We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f1fd52 commit e435c15Copy full SHA for e435c15
1 file changed
World.py
@@ -708,7 +708,10 @@ def random_shop_prices(self) -> None:
708
709
def new_shop_price(self, location: Location) -> int:
710
if self.settings.special_deal_price_distribution == 'vanilla':
711
- return ItemInfo.items[location.vanilla_item].price
+ price = location.price
712
+ if price is None:
713
+ price = ItemInfo.items[location.vanilla_item].price
714
+ return price
715
elif self.settings.special_deal_price_max < self.settings.special_deal_price_min:
716
raise ValueError('Maximum special deal price is lower than minimum, perhaps you meant to swap them?')
717
elif self.settings.special_deal_price_max == self.settings.special_deal_price_min:
0 commit comments