Skip to content

Commit abcadc2

Browse files
AlchavAustinSumigray
authored andcommitted
LTTP: Add Missing Blind's Cell rule (ArchipelagoMW#3589)
1 parent 71dae70 commit abcadc2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

worlds/alttp/Rules.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,16 +405,14 @@ def global_rules(multiworld: MultiWorld, player: int):
405405
set_rule(multiworld.get_location('Swamp Palace - Waterway Pot Key', player), lambda state: can_use_bombs(state, player))
406406

407407
set_rule(multiworld.get_entrance('Thieves Town Big Key Door', player), lambda state: state.has('Big Key (Thieves Town)', player))
408-
409408
if multiworld.worlds[player].dungeons["Thieves Town"].boss.enemizer_name == "Blind":
410409
set_rule(multiworld.get_entrance('Blind Fight', player), lambda state: state._lttp_has_key('Small Key (Thieves Town)', player, 3) and can_use_bombs(state, player))
411-
412410
set_rule(multiworld.get_location('Thieves\' Town - Big Chest', player),
413411
lambda state: ((state._lttp_has_key('Small Key (Thieves Town)', player, 3)) or (location_item_name(state, 'Thieves\' Town - Big Chest', player) == ("Small Key (Thieves Town)", player)) and state._lttp_has_key('Small Key (Thieves Town)', player, 2)) and state.has('Hammer', player))
414-
412+
set_rule(multiworld.get_location('Thieves\' Town - Blind\'s Cell', player),
413+
lambda state: state._lttp_has_key('Small Key (Thieves Town)', player))
415414
if multiworld.accessibility[player] != 'locations' and not multiworld.key_drop_shuffle[player]:
416415
set_always_allow(multiworld.get_location('Thieves\' Town - Big Chest', player), lambda state, item: item.name == 'Small Key (Thieves Town)' and item.player == player)
417-
418416
set_rule(multiworld.get_location('Thieves\' Town - Attic', player), lambda state: state._lttp_has_key('Small Key (Thieves Town)', player, 3))
419417
set_rule(multiworld.get_location('Thieves\' Town - Spike Switch Pot Key', player),
420418
lambda state: state._lttp_has_key('Small Key (Thieves Town)', player))

worlds/alttp/test/dungeons/TestThievesTown.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def testThievesTown(self):
3737

3838
["Thieves' Town - Blind's Cell", False, []],
3939
["Thieves' Town - Blind's Cell", False, [], ['Big Key (Thieves Town)']],
40-
["Thieves' Town - Blind's Cell", True, ['Big Key (Thieves Town)']],
40+
["Thieves' Town - Blind's Cell", False, [], ['Small Key (Thieves Town)']],
41+
["Thieves' Town - Blind's Cell", True, ['Big Key (Thieves Town)', 'Small Key (Thieves Town)']],
4142

4243
["Thieves' Town - Boss", False, []],
4344
["Thieves' Town - Boss", False, [], ['Big Key (Thieves Town)']],

0 commit comments

Comments
 (0)