Skip to content

Commit

Permalink
Fix typo in entrance_unreachable_as optimization for child spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl committed Apr 10, 2024
1 parent dfcee63 commit eeee650
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EntranceShuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ def entrance_unreachable_as(entrance: Entrance, age: str, already_checked: Optio
if entrance.type in ('WarpSong', 'BlueWarp', 'OverworldOneWay', 'Overworld'):
# Note that we consider all overworld entrances as potentially accessible as both ages, to be completely safe
return False
elif entrance.type in ('OwlDrop', 'Child Spawn'):
elif entrance.type in ('OwlDrop', 'ChildSpawn'):
return age == 'adult'
elif entrance.type == 'AdultSpawn':
return age == 'child'
Expand Down
2 changes: 1 addition & 1 deletion World.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ def get_shufflable_entrances(self, type=None, only_primary=False) -> list[Entran
return [entrance for entrance in self.get_entrances() if (type is None or entrance.type == type) and (not only_primary or entrance.primary)]

def get_shufflable_entrances_reverse(self, type=None) -> list[Entrance]:
return [entrance for entrance in self.get_entrances() if (type == None or entrance.type == type) and not entrance.primary]
return [entrance for entrance in self.get_entrances() if (type is None or entrance.type == type) and not entrance.primary]

def get_shuffled_entrances(self, type=None, only_primary=False) -> list[Entrance]:
return [entrance for entrance in self.get_shufflable_entrances(type=type, only_primary=only_primary) if entrance.shuffled]
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__version__ = '8.1.16'

# This is a supplemental version number for branches based off of main dev.
supplementary_version = 3
supplementary_version = 4

# Pick a unique identifier byte for your fork if you are intending to have a long-lasting branch.
# This will be 0x00 for main releases and 0x01 for main dev.
Expand Down

0 comments on commit eeee650

Please sign in to comment.