From 9d7975ce3318aa1e58be3f070f492b8077571500 Mon Sep 17 00:00:00 2001 From: Yussur Mustafa Oraji Date: Sun, 23 Jan 2022 12:23:10 +0100 Subject: [PATCH] Update Rules.py --- worlds/v6/Rules.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worlds/v6/Rules.py b/worlds/v6/Rules.py index 1daa8d38..c5e89d36 100644 --- a/worlds/v6/Rules.py +++ b/worlds/v6/Rules.py @@ -9,8 +9,8 @@ def _has_trinket_range(state,player,start,end): return True def create_npctrinket_rules(world,location,player): - add_rule(location, lambda state: state.can_reach(world.get_region("Laboratory",player),'Region',player) or - state.can_reach(world.get_region("Space Station 2",player),'Region',player)) + add_rule(location, lambda state: state.can_reach("Laboratory",'Region',player) or + state.can_reach("Space Station 2",'Region',player)) def set_rules(world,player): if (world.DoorCost[player].value == 0): pass @@ -31,4 +31,4 @@ def set_rules(world,player): connect_regions(world, player, "The Final Level", "Menu", lambda state: True) create_npctrinket_rules(world,world.get_location("NPC Trinket",player),player) - world.completion_condition[player] = lambda state: state.can_reach(world.get_region("The Final Level",player),'Region',player) \ No newline at end of file + world.completion_condition[player] = lambda state: state.can_reach("The Final Level",'Region',player)