Skip to content

Commit

Permalink
pep8 and clean unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvris committed Aug 21, 2023
1 parent db3acfd commit 0e1e051
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions worlds/kdl3/Rules.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
from worlds.generic.Rules import set_rule, add_rule
from .Locations import location_table, level_consumables
from .Names import LocationName, EnemyAbilities
from .Items import copy_ability_table
import typing
from BaseClasses import MultiWorld

if typing.TYPE_CHECKING:
from . import KDL3World
from BaseClasses import CollectionState


def can_reach_level(state: "CollectionState", player: int, level: int, open_world: bool,
ow_boss_req: int):
if level == 1:
Expand Down Expand Up @@ -89,7 +87,7 @@ def can_reach_cutter(state: "CollectionState", player: int) -> bool:
}


def can_assemble_rob(state: "CollectionState", player: int, copy_abilities: typing.Dict[str,str]):
def can_assemble_rob(state: "CollectionState", player: int, copy_abilities: typing.Dict[str, str]):
# check animal requirements
if not can_reach_coo(state, player) and can_reach_kine(state, player):
return False
Expand All @@ -106,7 +104,7 @@ def can_assemble_rob(state: "CollectionState", player: int, copy_abilities: typi
return can_reach_parasol(state, player) and can_reach_stone(state, player)


def can_fix_angel_wings(state: "CollectionState", player: int, copy_abilities: typing.Dict[str,str]):
def can_fix_angel_wings(state: "CollectionState", player: int, copy_abilities: typing.Dict[str, str]):
can_reach = True
for enemy in {"Sparky", "Blocky", "Jumper Shoot", "Yuki", "Sir Kibble", "Haboki", "Boboo", "Captain Stitch"}:
can_reach = can_reach & ability_map[copy_abilities[enemy]](state, player)
Expand Down

0 comments on commit 0e1e051

Please sign in to comment.