SC2: Move itempool generation logic from `generate_basic` to `create_items`. (#1940)

This commit is contained in:
Ziktofel 2023-07-04 21:27:04 +02:00 committed by GitHub
parent 857364fa78
commit 85a2193f35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,9 @@ class SC2WoLWorld(World):
self.multiworld, self.player, get_locations(self.multiworld, self.player), self.location_cache
)
def generate_basic(self):
def create_items(self):
setup_events(self.player, self.locked_locations, self.location_cache)
excluded_items = get_excluded_items(self.multiworld, self.player)
starter_items = assign_starter_items(self.multiworld, self.player, excluded_items, self.locked_locations)
@ -74,7 +76,6 @@ class SC2WoLWorld(World):
self.multiworld.itempool += pool
def set_rules(self):
setup_events(self.player, self.locked_locations, self.location_cache)
self.multiworld.completion_condition[self.player] = lambda state: state.has(self.victory_item, self.player)
def get_filler_item_name(self) -> str: