Skip to content

Commit

Permalink
OoT: recache locations only once after generate_basic
Browse files Browse the repository at this point in the history
Eventually we want to remove the full recache and just delete them from the cache directly, but I will save that for after ArchipelagoMW#2366
  • Loading branch information
espeon65536 committed Oct 29, 2023
1 parent 8e4680a commit a5d2a58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions worlds/oot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,14 @@ def generate_basic(self): # mostly killing locations that shouldn't exist by se
loc = self.multiworld.get_location("Deliver Rutos Letter", self.player)
loc.parent_region.locations.remove(loc)

@classmethod
def stage_generate_basic(cls, multiworld: MultiWorld):
# This is cleanup from all OoTWorld.generate_basic because we deleted locations.
# We only actually have to clean the cache once.
# TODO: when #2366 is merged, change how we remove these locations from the cache,
# hopefully we can avoid a full recache
multiworld.clear_location_cache()


def pre_fill(self):

Expand Down

0 comments on commit a5d2a58

Please sign in to comment.