fix: minor fix for take_anys

fix: money balancing - initialization in a good case
This commit is contained in:
aerinon
2023-12-13 13:59:34 -07:00
committed by codemann8
parent 2d467efded
commit bd7ce54dd3
3 changed files with 7 additions and 1 deletions

View File

@@ -1007,6 +1007,7 @@ def balance_money_progression(world):
logger.debug(f'Money balancing needed: Player {target_player} short {difference}')
else:
difference = 0
target_player = next(p for p in solvent)
while difference > 0:
swap_targets = [x for x in unchecked_locations if x not in sphere_locations and x.item.name.startswith('Rupees') and x.item.player == target_player]
if len(swap_targets) == 0: