From 9f29be301ac4630bec2ed82a23e95949802a5a26 Mon Sep 17 00:00:00 2001 From: Scipio Wright Date: Sat, 21 Sep 2024 12:16:51 -0400 Subject: [PATCH] Remove init from logicmixin --- worlds/tunic/combat_logic.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/worlds/tunic/combat_logic.py b/worlds/tunic/combat_logic.py index 9ef6673830..83817a3186 100644 --- a/worlds/tunic/combat_logic.py +++ b/worlds/tunic/combat_logic.py @@ -409,16 +409,14 @@ def get_money_count(state: CollectionState, player: int) -> int: class TunicState(LogicMixin): - def __init__(self): - self.tunic_need_to_reset_combat_from_collect = {} - self.tunic_need_to_reset_combat_from_remove = {} - self.tunic_area_combat_state = {} + tunic_need_to_reset_combat_from_collect: Dict[int, bool] + tunic_need_to_reset_combat_from_remove: Dict[int, bool] + tunic_area_combat_state: Dict[int, Dict[str, int]] def init_mixin(self, _): # the per-player need to reset the combat state when collecting a combat item - self.tunic_need_to_reset_combat_from_collect: Dict[int, bool] = defaultdict(lambda: False) + self.tunic_need_to_reset_combat_from_collect = defaultdict(lambda: False) # the per-player need to reset the combat state when removing a combat item - self.tunic_need_to_reset_combat_from_remove: Dict[int, bool] = defaultdict(lambda: False) + self.tunic_need_to_reset_combat_from_remove = defaultdict(lambda: False) # the per-player, per-area state of combat checking -- unchecked, failed, or succeeded - self.tunic_area_combat_state: Dict[int, Dict[str, int]] = ( - defaultdict(lambda: defaultdict(lambda: CombatState.unchecked))) + self.tunic_area_combat_state = defaultdict(lambda: defaultdict(lambda: CombatState.unchecked))