Initial check-in for ER rewrite

This commit is contained in:
codemann8
2021-10-14 22:13:47 -05:00
parent 9d7663c648
commit 600ea25003
3 changed files with 678 additions and 1553 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -513,7 +513,9 @@ def copy_world(world):
connect_portal(portal, ret, player) connect_portal(portal, ret, player)
ret.sanc_portal = world.sanc_portal ret.sanc_portal = world.sanc_portal
from OverworldShuffle import categorize_world_regions
for player in range(1, world.players + 1): for player in range(1, world.players + 1):
categorize_world_regions(ret, player)
set_rules(ret, player) set_rules(ret, player)
return ret return ret

View File

@@ -256,6 +256,8 @@ def link_overworld(world, player):
logging.getLogger('').warning("Edge '%s' could not find a valid connection" % back_set[0]) logging.getLogger('').warning("Edge '%s' could not find a valid connection" % back_set[0])
assert len(connected_edges) == len(default_connections) * 2, connected_edges assert len(connected_edges) == len(default_connections) * 2, connected_edges
# TODO: Reshuffle some areas if impossible to reach, exception if non-dungeon ER enabled or if area is LW with no portal and flute shuffle is enabled
# flute shuffle # flute shuffle
def connect_flutes(flute_destinations): def connect_flutes(flute_destinations):
for o in range(0, len(flute_destinations)): for o in range(0, len(flute_destinations)):