From 087cc334f4323c990f741ddf248cf50fef78e515 Mon Sep 17 00:00:00 2001 From: PoryGone <98504756+PoryGone@users.noreply.github.com> Date: Thu, 13 Jul 2023 21:11:19 -0400 Subject: [PATCH] SMW: Move item creation earlier (#1942) --- worlds/smw/__init__.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/worlds/smw/__init__.py b/worlds/smw/__init__.py index 9e9c123f..2c3b1114 100644 --- a/worlds/smw/__init__.py +++ b/worlds/smw/__init__.py @@ -90,7 +90,12 @@ class SMWWorld(World): if self.multiworld.early_climb[self.player]: self.multiworld.local_early_items[self.player][ItemName.mario_climb] = 1 - def generate_basic(self): + + def create_regions(self): + location_table = setup_locations(self.multiworld, self.player) + create_regions(self.multiworld, self.player, location_table) + + # Not generate basic itempool: typing.List[SMWItem] = [] self.active_level_dict = dict(zip(generate_level_list(self.multiworld, self.player), full_level_list)) @@ -247,10 +252,6 @@ class SMWWorld(World): hint_data[self.player] = er_hint_data - def create_regions(self): - location_table = setup_locations(self.multiworld, self.player) - create_regions(self.multiworld, self.player, location_table) - def create_item(self, name: str, force_non_progression=False) -> Item: data = item_table[name]