From 4de3544e0d2c528e92ac3ed44e96476ccd717722 Mon Sep 17 00:00:00 2001 From: KrisDavie Date: Thu, 2 Mar 2023 11:10:11 +0100 Subject: [PATCH] Syntax fixes --- UnderworldGlitchRules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnderworldGlitchRules.py b/UnderworldGlitchRules.py index a7988d52..13acc599 100644 --- a/UnderworldGlitchRules.py +++ b/UnderworldGlitchRules.py @@ -220,10 +220,10 @@ def underworld_glitches_rules(world, player): # Collecting left chests in Paradox Cave using a dash clip -> dash citrus, 1f right, teleport up paradox_left_chests = ['Paradox Cave Lower - Far Left', 'Paradox Cave Lower - Left', 'Paradox Cave Lower - Middle'] for location in paradox_left_chests: - Rules.add_rule(world.get_location(location, player), lambda state: state.can_dash_clip(world.get_location(location, player)), 'or') + Rules.add_rule(world.get_location(location, player), lambda state: state.can_dash_clip(world.get_location(location, player).parent_region, player), 'or') # Collecting right chests in Paradox Cave using a dash clip on left side -> dash citrus, 1f right, teleport up, then hitting the switch paradox_right_chests = ['Paradox Cave Lower - Right', 'Paradox Cave Lower - Far Right'] for location in paradox_right_chests: - Rules.add_rule(world.get_location(location, player), lambda state: (state.can_dash_clip(world.get_location(location, player)) and state.can_hit_crystal(player)), 'or') + Rules.add_rule(world.get_location(location, player), lambda state: (state.can_dash_clip(world.get_location(location, player).parent_region, player) and state.can_hit_crystal(player)), 'or')