From 106eadc26d0e6dd120ddd5db82d04051ffcaef02 Mon Sep 17 00:00:00 2001 From: Kara Alexandra Date: Thu, 27 Mar 2025 05:42:59 -0500 Subject: [PATCH] Add some fixes for TT logic --- Rules.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rules.py b/Rules.py index 3763c459..12bce5cd 100644 --- a/Rules.py +++ b/Rules.py @@ -345,11 +345,11 @@ def global_rules(world, player): set_rule(world.get_entrance('Blind Fight', player), lambda state: state.has_key('Small Key (Thieves Town)', player) and state.can_pass_pots(player) and state.has_Book(player)) set_defeat_dungeon_boss_rule(world.get_location('Thieves\' Town - Boss', player)) set_defeat_dungeon_boss_rule(world.get_location('Thieves\' Town - Prize', player)) - set_rule(world.get_location('Thieves\' Town - Big Chest', player), lambda state: (state.has_key('Small Key (Thieves Town)', player) or item_name(state, 'Thieves\' Town - Big Chest', player) == ('Small Key (Thieves Town)', player)) and state.has('Hammer', player) and state.has_Book(player)) - set_rule(world.get_location('Thieves\' Town - Blind\'s Cell', player), lambda state: state.has_Book(player)) + set_rule(world.get_location('Thieves\' Town - Big Chest', player), lambda state: (state.has_key('Small Key (Thieves Town)', player) or item_name(state, 'Thieves\' Town - Big Chest', player) == ('Small Key (Thieves Town)', player)) and state.has('Hammer', player) and state.has_Book(player) and state.can_pass_pots(player)) + set_rule(world.get_location('Thieves\' Town - Blind\'s Cell', player), lambda state: state.has_Book(player) and (state.can_kill_most_things(player) or state.can_pass_pots(player))) if world.accessibility != 'locations': set_always_allow(world.get_location('Thieves\' Town - Big Chest', player), lambda state, item: item.name == 'Small Key (Thieves Town)' and item.player == player and state.has('Hammer', player)) - set_rule(world.get_location('Thieves\' Town - Attic', player), lambda state: state.has_key('Small Key (Thieves Town)', player) and state.can_pass_pots(player)) + set_rule(world.get_location('Thieves\' Town - Attic', player), lambda state: state.has_key('Small Key (Thieves Town)', player) and state.can_pass_pots(player) and state.has_Book(player)) for location in ['Thieves\' Town - Attic', 'Thieves\' Town - Big Chest', 'Thieves\' Town - Blind\'s Cell', 'Thieves\' Town - Boss']: forbid_item(world.get_location(location, player), 'Big Key (Thieves Town)', player) for location in ['Thieves\' Town - Attic', 'Thieves\' Town - Boss']: