Skip to content

Commit 31ddeb9

Browse files
committed
lint
1 parent 3ae9f5b commit 31ddeb9

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,7 @@ def collect(self, state: CollectionState, item: Item) -> bool:
21642164
state.dk64_logic_holder[self.player] = LogicVarHolder(self.spoiler, self.player) # If the CollectionState dodged the creation of a logic_holder object, fix it here
21652165
state.dk64_logic_holder[self.player].UpdateFromArchipelagoItems(state)
21662166
return change
2167-
2167+
21682168
def remove(self, state: CollectionState, item: Item) -> bool:
21692169
"""Remove the item."""
21702170
change = super().remove(state, item)

archipelago/FillSettings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def apply_logic_and_barriers_settings(settings_dict: dict, options) -> None:
550550
"forest_yellow_tunnel": RemovedBarriersSelected.forest_yellow_tunnel,
551551
"caves_igloo_pads": RemovedBarriersSelected.caves_igloo_pads,
552552
"caves_ice_walls": RemovedBarriersSelected.caves_ice_walls,
553-
"galleon_treasure_room": RemovedBarriersSelected.galleon_treasure_room
553+
"galleon_treasure_room": RemovedBarriersSelected.galleon_treasure_room,
554554
}
555555

556556
for barrier in options.remove_barriers_selected:

archipelago/Regions.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
767765
def 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

Comments
 (0)