Skip to content

Commit

Permalink
v6: Update NPC Trinket Rule
Browse files Browse the repository at this point in the history
  • Loading branch information
N00byKing authored and Berserker66 committed Feb 18, 2022
1 parent 840e634 commit 1d19868
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions worlds/v6/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def set_rules(world, player, area_connections: typing.Dict[int, int], area_cost_
state.can_reach("Warp Zone",'Region',player))

#Special Rule for NPC Trinket
add_rule(world.get_location("NPC Trinket",player), lambda state: state.can_reach("Laboratory",'Region',player) or
state.can_reach("Space Station 2",'Region',player))
add_rule(world.get_location("V",player), lambda state : state.can_reach("Laboratory",'Region',player) or
( state.can_reach("The Tower",'Region',player) and
state.can_reach("Space Station 2",'Region',player) and
state.can_reach("Warp Zone",'Region',player) ))

world.completion_condition[player] = lambda state: state.can_reach("V",'Location',player)

0 comments on commit 1d19868

Please sign in to comment.