Adjust price shop option to 0.5 to 2.0 range

This commit is contained in:
Fabian Dill 2020-08-30 03:17:39 +02:00
parent 8cdd745d69
commit 1103d77ca5
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ def shuffle_shops(world, items, player: int):
if 'p' in option:
def price_adjust(price: int) -> int:
# it is important that a base price of 0 always returns 0 as new price!
return int(price * (0.5 + world.random.random() * 2))
return int(price * (0.5 + world.random.random() * 1.5))
def adjust_item(item):
if item: