Skip to content

Commit

Permalink
Add indirect condition for burning trail
Browse files Browse the repository at this point in the history
  • Loading branch information
hesto2 committed Dec 17, 2024
1 parent c46d7e6 commit caac3af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions worlds/metroidprime/data/MagmoorCaverns.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ def __init__(self):
RoomName.Lava_Lake,
rule_func=can_heat,
tricks=[Tricks.lava_lake_item_suitless],
indirect_condition_rooms=[RoomName.Burning_Trail],
),
1: DoorData(
RoomName.Burning_Trail,
rule_func=can_heat,
tricks=[Tricks.lava_lake_item_suitless],
indirect_condition_rooms=[RoomName.Burning_Trail],
),
},
),
Expand All @@ -120,12 +122,14 @@ def __init__(self):
rule_func=lambda world, state: can_heat(world, state)
and (can_bomb(world, state) or can_power_bomb(world, state)),
tricks=[Tricks.lava_lake_item_suitless],
indirect_condition_rooms=[RoomName.Burning_Trail],
),
1: DoorData(
RoomName.Pit_Tunnel,
rule_func=lambda world, state: can_heat(world, state)
and (can_bomb(world, state) or can_power_bomb(world, state)),
tricks=[Tricks.lava_lake_item_suitless],
indirect_condition_rooms=[RoomName.Burning_Trail],
),
},
pickups=[
Expand Down
9 changes: 3 additions & 6 deletions worlds/metroidprime/data/Tricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,18 +428,15 @@ class Tricks:
lambda world, state: can_missile(world, state)
and can_space_jump(world, state)
and has_energy_tanks(world, state, 4)
and state.can_reach(
"Magmoor Caverns: " + RoomName.Lake_Tunnel.value, None, world.player
),
and can_heat(world, state)
and state.can_reach(RoomName.Burning_Trail.value, None, world.player),
)
lava_lake_item_missiles_only = TrickInfo(
"Lava Lake Item Missiles Only",
"Reach lava lake item without space jump by jumping on base of column",
TrickDifficulty.Easy,
lambda world, state: can_missile(world, state)
and state.can_reach(
"Magmoor Caverns: " + RoomName.Lake_Tunnel.value, None, world.player
),
and state.can_reach(RoomName.Burning_Trail.value, None, world.player),
)

triclops_pit_item_no_sj = TrickInfo(
Expand Down

0 comments on commit caac3af

Please sign in to comment.