Fixes for compatibility with compiling perf

Couple fixes for standard+ER
This commit is contained in:
aerinon
2020-05-29 16:19:32 -06:00
parent d9d497ba62
commit 3b4e19b5de
8 changed files with 27 additions and 17 deletions

View File

@@ -1787,8 +1787,8 @@ class Spoiler(object):
for player in range(1, self.world.players + 1):
if self.world.boss_shuffle[player] != 'none':
bossmap = self.bosses[player] if self.world.players > 1 else self.bosses
outfile.write(f'\n\nBosses (Player {player}):\n\n')
outfile.write('\n'.join([f'{x}: {y}' for x, y in bossmap.items()]))
outfile.write(f'\n\nBosses ({self.world.get_player_names(player)}):\n\n')
outfile.write('\n'.join([f'{x}: {y}' for x, y in bossmap.items() if y not in ['Agahnim', 'Agahnim 2', 'Ganon']]))
# locations: Change up location names; in the instance of a location with multiple sections, it'll try to translate the room name
# items: Item names