Remove init from logicmixin

This commit is contained in:
Scipio Wright
2024-09-21 12:16:51 -04:00
parent 2288452836
commit 9f29be301a

View File

@@ -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))