Make triforce hunt item pool fully dynamic

This commit is contained in:
Fabian Dill
2020-08-25 19:45:33 +02:00
parent 3271460c68
commit 6370f4793b
3 changed files with 34 additions and 25 deletions

View File

@@ -385,7 +385,7 @@ class World(object):
return False
def has_beaten_game(self, state, player: Union[None, int] = None):
def has_beaten_game(self, state, player: Optional[int] = None):
if player:
return state.has('Triforce', player) or state.world.logic[player] == 'nologic'
else: