Various fixes:

Full boss shuffle samples without replacement
Vanilla doors simply unmarks ugly smalls
Money balance: handle multiworld solvent players better
Perf for item pool adjustment
Add loglevel to Mystery
This commit is contained in:
aerinon
2021-08-03 08:43:47 -06:00
parent cd86e14677
commit aeb910e274
5 changed files with 18 additions and 7 deletions

View File

@@ -736,7 +736,7 @@ def balance_money_progression(world):
solvent.add(player)
if sphere_costs[player] > 0 and sphere_costs[player] > wallet[player]:
insolvent.add(player)
if len(solvent) == 0:
if len([p for p in solvent if len(locked_by_money[p]) > 0]) == 0:
target_player = min(insolvent, key=lambda p: sphere_costs[p]-wallet[p])
difference = sphere_costs[target_player]-wallet[target_player]
logger.debug(f'Money balancing needed: Player {target_player} short {difference}')