TLOZ: use proper rule for completion condition (#2872)
Was pointed out that using `state.locations.checked` is not the best solution, even if it's for a completion condition and the Ganon event location would always have the Triforce of Power event item. So let's just check for the Triforce of Power instead. Thank you Zunawe for pointing it out and Silvris for providing the proper rule to use.
This commit is contained in:
parent
4ddfb7ce8b
commit
938beb34df
|
@ -180,7 +180,7 @@ class TLoZWorld(World):
|
|||
|
||||
self.multiworld.get_location("Zelda", self.player).place_locked_item(self.create_event("Rescued Zelda!"))
|
||||
add_rule(self.multiworld.get_location("Zelda", self.player),
|
||||
lambda state: ganon in state.locations_checked)
|
||||
lambda state: state.has("Triforce of Power", self.player))
|
||||
self.multiworld.completion_condition[self.player] = lambda state: state.has("Rescued Zelda!", self.player)
|
||||
|
||||
def apply_base_patch(self, rom):
|
||||
|
|
Loading…
Reference in New Issue