Skip to content

Commit 902a96f

Browse files
authored
Update dungeon1.py (#21)
- The Three of a Kind with Bomb is moved from Normal to Hard Logic The rest is code cleanup. lines 22-25 | 22-26 & 33 | 34 remain different in AP | Upstream with no effective difference
1 parent b77ba90 commit 902a96f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

worlds/ladx/LADXR/logic/dungeon1.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(self, options, world_setup, r):
99
entrance.add(DungeonChest(0x113), DungeonChest(0x115), DungeonChest(0x10E))
1010
Location(dungeon=1).add(DroppedKey(0x116)).connect(entrance, OR(BOMB, r.push_hardhat)) # hardhat beetles (can kill with bomb)
1111
Location(dungeon=1).add(DungeonChest(0x10D)).connect(entrance, OR(r.attack_hookshot_powder, SHIELD)) # moldorm spawn chest
12-
stalfos_keese_room = Location(dungeon=1).add(DungeonChest(0x114)).connect(entrance, r.attack_hookshot) # 2 stalfos 2 keese room
12+
stalfos_keese_room = Location(dungeon=1).add(DungeonChest(0x114)).connect(entrance, AND(OR(r.attack_skeleton, SHIELD),r.attack_hookshot_powder)) # 2 stalfos 2 keese room
1313
Location(dungeon=1).add(DungeonChest(0x10C)).connect(entrance, BOMB) # hidden seashell room
1414
dungeon1_upper_left = Location(dungeon=1).connect(entrance, AND(KEY1, FOUND(KEY1, 3)))
1515
if options.owlstatues == "both" or options.owlstatues == "dungeon":
@@ -19,23 +19,25 @@ def __init__(self, options, world_setup, r):
1919
dungeon1_right_side = Location(dungeon=1).connect(entrance, AND(KEY1, FOUND(KEY1, 3)))
2020
if options.owlstatues == "both" or options.owlstatues == "dungeon":
2121
Location(dungeon=1).add(OwlStatue(0x10A)).connect(dungeon1_right_side, STONE_BEAK1)
22-
Location(dungeon=1).add(DungeonChest(0x10A)).connect(dungeon1_right_side, OR(r.attack_hookshot, SHIELD)) # three of a kind, shield stops the suit from changing
22+
dungeon1_3_of_a_kind = Location(dungeon=1).add(DungeonChest(0x10A)).connect(dungeon1_right_side, OR(r.attack_hookshot_no_bomb, SHIELD)) # three of a kind, shield stops the suit from changing
2323
dungeon1_miniboss = Location(dungeon=1).connect(dungeon1_right_side, AND(r.miniboss_requirements[world_setup.miniboss_mapping[0]], FEATHER))
2424
dungeon1_boss = Location(dungeon=1).connect(dungeon1_miniboss, NIGHTMARE_KEY1)
2525
Location(dungeon=1).add(HeartContainer(0x106), Instrument(0x102)).connect(dungeon1_boss, r.boss_requirements[world_setup.boss_mapping[0]])
2626

27-
if options.logic not in ('normal', 'casual'):
27+
if options.logic == 'hard' or options.logic == 'glitched' or options.logic == 'hell':
2828
stalfos_keese_room.connect(entrance, r.attack_hookshot_powder) # stalfos jump away when you press a button.
29-
29+
dungeon1_3_of_a_kind.connect(dungeon1_right_side, BOMB) # use timed bombs to match the 3 of a kinds
30+
3031
if options.logic == 'glitched' or options.logic == 'hell':
31-
boss_key.connect(entrance, FEATHER) # super jump
32+
boss_key.connect(entrance, r.super_jump_feather) # super jump
3233
dungeon1_miniboss.connect(dungeon1_right_side, r.miniboss_requirements[world_setup.miniboss_mapping[0]]) # damage boost or buffer pause over the pit to cross or mushroom
3334

3435
if options.logic == 'hell':
3536
feather_chest.connect(dungeon1_upper_left, SWORD) # keep slashing the spiked beetles until they keep moving 1 pixel close towards you and the pit, to get them to fall
36-
boss_key.connect(entrance, FOUND(KEY1,3)) # damage boost off the hardhat to cross the pit
37+
boss_key.connect(entrance, AND(r.damage_boost, FOUND(KEY1,3))) # damage boost off the hardhat to cross the pit
3738

3839
self.entrance = entrance
40+
self.final_room = boss
3941

4042

4143
class NoDungeon1:

0 commit comments

Comments
 (0)