Skip to content

Commit 36d6616

Browse files
committed
move godhome events to create_regions with the others to not try and make them non-events when unshuffled is on (ArchipelagoMW#3221)
1 parent 3590d8a commit 36d6616

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

worlds/hk/__init__.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,14 @@ def create_regions(self):
199199
self.multiworld.regions.append(menu_region)
200200
# wp_exclusions = self.white_palace_exclusions()
201201

202+
# check for any goal that godhome events are relevant to
203+
all_event_names = event_names.copy()
204+
if self.multiworld.Goal[self.player] in [Goal.option_godhome, Goal.option_godhome_flower]:
205+
from .GodhomeData import godhome_event_names
206+
all_event_names.update(set(godhome_event_names))
207+
202208
# Link regions
203-
for event_name in event_names:
209+
for event_name in all_event_names:
204210
#if event_name in wp_exclusions:
205211
# continue
206212
loc = HKLocation(self.player, event_name, None, menu_region)
@@ -307,12 +313,6 @@ def _add(item_name: str, location_name: str, randomized: bool):
307313
randomized = True
308314
_add("Elevator_Pass", "Elevator_Pass", randomized)
309315

310-
# check for any goal that godhome events are relevant to
311-
if self.multiworld.Goal[self.player] in [Goal.option_godhome, Goal.option_godhome_flower]:
312-
from .GodhomeData import godhome_event_names
313-
for item_name in godhome_event_names:
314-
_add(item_name, item_name, False)
315-
316316
for shop, locations in self.created_multi_locations.items():
317317
for _ in range(len(locations), getattr(self.multiworld, shop_to_option[shop])[self.player].value):
318318
loc = self.create_location(shop)

0 commit comments

Comments
 (0)