Merge branch 'shop-fill' into multishop-all
This commit is contained in:
commit
62cfa8813f
1
Main.py
1
Main.py
|
@ -233,6 +233,7 @@ def main(args, seed=None):
|
||||||
shop_item['player'] = item.player if item.player != location.player else 0
|
shop_item['player'] = item.player if item.player != location.player else 0
|
||||||
shop_items.append(shop_item)
|
shop_items.append(shop_item)
|
||||||
|
|
||||||
|
if len(shop_items) > 0:
|
||||||
my_prices = [my_item['price'] for my_item in shop_items]
|
my_prices = [my_item['price'] for my_item in shop_items]
|
||||||
price_scale = (80*max(8, len(my_prices)+2))/sum(my_prices)
|
price_scale = (80*max(8, len(my_prices)+2))/sum(my_prices)
|
||||||
for i in shop_items:
|
for i in shop_items:
|
||||||
|
|
Loading…
Reference in New Issue