Skip to content

Commit

Permalink
OoS: Fixed a rare generation issue with fully shuffled portals
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinopony committed Jul 5, 2024
1 parent 147993b commit 1d10d07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions worlds/tloz_oos/data/Regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"temple remains lower stump",
"temple remains upper stump",
"temple remains lower portal",
"temple remains lower portal access",
"temple remains upper portal",
"temple remains heart piece",
"maku seed",
Expand Down
9 changes: 6 additions & 3 deletions worlds/tloz_oos/data/logic/OverworldLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,12 +825,12 @@ def make_holodrum_logic(player: int):
])
])],

["temple remains upper stump", "temple remains lower portal", False, lambda state: all([
["temple remains upper stump", "temple remains lower portal access", False, lambda state: all([
oos_season_in_temple_remains(state, player, "winter"),
oos_can_jump_1_wide_pit(state, player, False)
])],

["temple remains lower portal", "temple remains upper stump", False, lambda state: any([
["temple remains lower portal access", "temple remains upper stump", False, lambda state: any([
# Portal can be escaped only if default season is winter or if volcano erupted
all([
oos_get_default_season(state, player, "TEMPLE_REMAINS") == "winter",
Expand All @@ -841,6 +841,9 @@ def make_holodrum_logic(player: int):
oos_can_jump_2_wide_liquid(state, player)
]),
])],

["temple remains lower portal access", "temple remains lower portal", True, None],

["temple remains lower portal", "temple remains lower stump", False, lambda state: \
# There is an added ledge in rando that enables jumping from the portal down to the stump, whatever
# the season is, but it is a risky action so we ask for the player to be able to warp back
Expand Down Expand Up @@ -869,7 +872,7 @@ def make_holodrum_logic(player: int):
["temple remains upper portal", "temple remains upper stump", False, lambda state: \
oos_can_jump_1_wide_pit(state, player, False)],

["temple remains upper portal", "temple remains lower portal", False, lambda state: \
["temple remains upper portal", "temple remains lower portal access", False, lambda state: \
oos_get_default_season(state, player, "TEMPLE_REMAINS") == "winter"],


Expand Down

0 comments on commit 1d10d07

Please sign in to comment.