Hollow Knight: remove unused option check (#2595)

This commit is contained in:
Aaron Wagener 2023-12-12 20:11:10 -06:00 committed by GitHub
parent 45fa9a8f9e
commit db1d195cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 11 deletions

View File

@ -419,17 +419,16 @@ class HKWorld(World):
def set_rules(self): def set_rules(self):
world = self.multiworld world = self.multiworld
player = self.player player = self.player
if world.logic[player] != 'nologic': goal = world.Goal[player]
goal = world.Goal[player] if goal == Goal.option_hollowknight:
if goal == Goal.option_hollowknight: world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player)
world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player) elif goal == Goal.option_siblings:
elif goal == Goal.option_siblings: world.completion_condition[player] = lambda state: state._hk_siblings_ending(player)
world.completion_condition[player] = lambda state: state._hk_siblings_ending(player) elif goal == Goal.option_radiance:
elif goal == Goal.option_radiance: world.completion_condition[player] = lambda state: state._hk_can_beat_radiance(player)
world.completion_condition[player] = lambda state: state._hk_can_beat_radiance(player) else:
else: # Any goal
# Any goal world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player) or state._hk_can_beat_radiance(player)
world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player) or state._hk_can_beat_radiance(player)
set_rules(self) set_rules(self)