@@ -251,7 +251,7 @@ def create_region(
251251 # Quickly test and see if we can reach this location with zero items
252252 quick_success = False
253253 try :
254- quick_success = not location_logic .bonusBarrel and location .logic (logic_holder )
254+ quick_success = not location_logic .bonusBarrel and location .logic (logic_holder )
255255 except Exception :
256256 pass
257257 # If we can, we can greatly simplify the logic at this location
@@ -351,10 +351,7 @@ def create_region(
351351 # Entering levels in weird spots can require a number of pre-completed events to be handled in Game Start
352352 # We need to filter out any that will return False (because they will never not return False)
353353 # V1 LIMITATION: We're not filtering out auto key turn ins, so that setting must be on (not really a problem for basically anyone)
354- if region_name == "GameStart" and event .name in (
355- Events .Night ,
356- Events .Day
357- ):
354+ if region_name == "GameStart" and event .name in (Events .Night , Events .Day ):
358355 if not event .logic (logic_holder ):
359356 continue
360357 if region_name == "GameStart" :
@@ -414,7 +411,7 @@ def create_region(
414411 elif event .name == Events .HollowTreeGateOpened :
415412 if logic_holder .checkBarrier (RemovedBarriersSelected .forest_yellow_tunnel ):
416413 continue
417-
414+
418415 # Water level altering events: allow the one matching the initial galleon_water_internal setting in GalleonStart
419416 # and allow the opposite event in LighthouseUnderwater (for the switchable state)
420417 if event .name in (Events .WaterLowered , Events .WaterRaised ):
@@ -764,6 +761,7 @@ def hasDK64RLocation(state: CollectionState, player: int, location: LocationLogi
764761 """Check if the given location is accessible in the given state."""
765762 return location .logic (state .dk64_logic_holder [player ])
766763
764+
767765def hasDK64RCollectible (state : CollectionState , player : int , collectible : Collectible ):
768766 """Check if the given collectible is accessible in the given state."""
769767 return collectible .logic (state .dk64_logic_holder [player ])
0 commit comments