From a318719f09eafc228656bcec9f26c4aab9b6da1d Mon Sep 17 00:00:00 2001 From: qwint Date: Wed, 7 Aug 2024 22:36:02 -0500 Subject: [PATCH] minor code cleanup --- worlds/hk/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worlds/hk/__init__.py b/worlds/hk/__init__.py index 2e16e103f022..99277378a162 100644 --- a/worlds/hk/__init__.py +++ b/worlds/hk/__init__.py @@ -448,13 +448,13 @@ def set_rules(self): pass # will set in stage_pre_fill() else: # Any goal - multiworld.completion_condition[player] = lambda state: _hk_siblings_ending(state, player) and _hk_can_beat_radiance(state, player) and state.count("Godhome_Flower_Quest", player) + multiworld.completion_condition[player] = lambda state: _hk_siblings_ending(state, player) and \ + _hk_can_beat_radiance(state, player) and state.count("Godhome_Flower_Quest", player) set_rules(self) - def stage_pre_fill(multiworld: "MultiWorld"): - cls = HKWorld - + @classmethod + def stage_pre_fill(cls, multiworld: "MultiWorld"): def set_goal(player, grub_rule: typing.Callable[[CollectionState], bool]): world = multiworld.worlds[player]