Skip to content

Commit

Permalink
Fix some wrong assumptions about Lower Norfair
Browse files Browse the repository at this point in the history
  • Loading branch information
NoiseCrush committed Aug 20, 2024
1 parent af743e5 commit b5ed615
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
2 changes: 1 addition & 1 deletion locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self, reg, id):
"Chozodia Chozo Ghost Area Long Shinespark": LocationData("Chozodia Ruins Test Area", AP_MZM_ID_BASE + 94),
"Chozodia Pirate Pitfall Trap": LocationData("Chozodia Mothership Central", AP_MZM_ID_BASE + 95), #TODO renamed
"Chozodia Behind Workbot": LocationData("Chozodia Mothership Central", AP_MZM_ID_BASE + 96), #TODO Renamed
"Chozodia Mothership Ceiling Near ZSS Start": LocationData("Chozodia Mothership Central", AP_MZM_ID_BASE + 97),
"Chozodia Ceiling Near Map Station": LocationData("Chozodia Mothership Central", AP_MZM_ID_BASE + 97), #TODO renamed
"Chozodia Under Mecha Ridley Hallway": LocationData("Chozodia Mecha Ridley Hallway", AP_MZM_ID_BASE + 98),
"Chozodia Southeast Corner In Hull": LocationData("Chozodia Mothership Central", AP_MZM_ID_BASE + 99),
"Chozo Ghost": LocationData("Chozodia Ruins Test Area", None),
Expand Down
11 changes: 11 additions & 0 deletions logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,13 @@ def lower_norfair_to_screwattack():
)


def screw_to_lower_norfair():
return any(
MissileCount(4),
ScrewAttack
)


def lower_norfair_to_kraid():
return all(
ScrewAttack,
Expand Down Expand Up @@ -528,6 +535,10 @@ def lower_norfair_to_bottom_norfair():
return all(
MissileCount(2),
SpeedBooster,
any(
VariaSuit,
Hellrun(1)
),
any(
WaveBeam,
CanTrickySparks
Expand Down
1 change: 1 addition & 0 deletions regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def create_regions_and_connections(world: MZMWorld):
connect(multiworld, player, "Lower Norfair -> Bottom", "Lower Norfair", "Norfair Bottom", lower_norfair_to_bottom_norfair().create_rule(world))
connect(multiworld, player, "Norfair -> Ridley Elevator", "Norfair Bottom", "Ridley Main", bottom_norfair_to_ridley().create_rule(world))
connect(multiworld, player, "Norfair Bottom -> Screw Attack", "Norfair Bottom", "Norfair Screw Attack Area", bottom_norfair_to_screw().create_rule(world))
connect(multiworld, player, "Norfair Screw Attack -> Lower Norfair", "Norfair Screw Attack Area", "Lower Norfair", screw_to_lower_norfair().create_rule(world))
connect(multiworld, player, "Ridley Elevator -> Left Shaft", "Ridley Main", "Ridley Left Shaft", ridley_main_to_left_shaft().create_rule(world))
connect(multiworld, player, "Ridley Elevator -> Right Shaft Shortcut", "Ridley Main", "Ridley Right Shaft", ridley_main_to_right_shaft().create_rule(world))
connect(multiworld, player, "Ridley Left Shaft -> SW Puzzle", "Ridley Left Shaft", "Ridley SW Puzzle", ridley_left_shaft_to_sw_puzzle().create_rule(world))
Expand Down
27 changes: 24 additions & 3 deletions rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,29 @@
CanVerticalWall,
),
"Norfair Wave Beam": MissileCount(4),
"Norfair Heated Room Below Wave - Left": None,
"Norfair Heated Room Below Wave - Right": None,
"Norfair Heated Room Below Wave - Left": all(
CanVerticalWall,
any(
VariaSuit,
Hellrun(2)
),
any(
CanIBJ,
HiJump,
PowerGrip,
all(
IceBeam,
Bomb
)
)
),
"Norfair Heated Room Below Wave - Right": all(
CanVerticalWall,
any(
VariaSuit,
Hellrun(2)
)
),
}

norfair_screwattack = {
Expand Down Expand Up @@ -725,7 +746,7 @@
)
),
"Chozodia Behind Workbot": MissileCount(5),
"Chozodia Mothership Ceiling Near ZSS Start": all(
"Chozodia Ceiling Near Map Station": all(
Missiles,
any(
PowerBombs,
Expand Down

0 comments on commit b5ed615

Please sign in to comment.