Skip to content

Commit e435c15

Browse files
committed
Fix vanilla price for business scrubs
1 parent 5f1fd52 commit e435c15

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

World.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,10 @@ def random_shop_prices(self) -> None:
708708

709709
def new_shop_price(self, location: Location) -> int:
710710
if self.settings.special_deal_price_distribution == 'vanilla':
711-
return ItemInfo.items[location.vanilla_item].price
711+
price = location.price
712+
if price is None:
713+
price = ItemInfo.items[location.vanilla_item].price
714+
return price
712715
elif self.settings.special_deal_price_max < self.settings.special_deal_price_min:
713716
raise ValueError('Maximum special deal price is lower than minimum, perhaps you meant to swap them?')
714717
elif self.settings.special_deal_price_max == self.settings.special_deal_price_min:

0 commit comments

Comments
 (0)