@@ -199,8 +199,14 @@ def create_regions(self):
199
199
self .multiworld .regions .append (menu_region )
200
200
# wp_exclusions = self.white_palace_exclusions()
201
201
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
+
202
208
# Link regions
203
- for event_name in event_names :
209
+ for event_name in all_event_names :
204
210
#if event_name in wp_exclusions:
205
211
# continue
206
212
loc = HKLocation (self .player , event_name , None , menu_region )
@@ -307,12 +313,6 @@ def _add(item_name: str, location_name: str, randomized: bool):
307
313
randomized = True
308
314
_add ("Elevator_Pass" , "Elevator_Pass" , randomized )
309
315
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
-
316
316
for shop , locations in self .created_multi_locations .items ():
317
317
for _ in range (len (locations ), getattr (self .multiworld , shop_to_option [shop ])[self .player ].value ):
318
318
loc = self .create_location (shop )
0 commit comments