From 4e56a079117c691c0d8f9d1152b2578297919ad3 Mon Sep 17 00:00:00 2001 From: spinerak Date: Sat, 8 Jun 2024 01:59:18 +0200 Subject: [PATCH] RUFF :dog: --- worlds/yachtdice/Rules.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/worlds/yachtdice/Rules.py b/worlds/yachtdice/Rules.py index 56c0b1bde3..a39602b95e 100644 --- a/worlds/yachtdice/Rules.py +++ b/worlds/yachtdice/Rules.py @@ -1,7 +1,7 @@ import math from collections import defaultdict +from typing import List, Optional -from typing import List from BaseClasses import MultiWorld from worlds.generic.Rules import set_rule @@ -68,15 +68,14 @@ class Category: return mean_score * self.quantity - class ListState: def __init__(self, state: List[str]): self.state = state - def count(self, item: str, player: str = None) -> int: + def count(self, item: str, player: Optional[str] = None) -> int: return self.state.count(item) - + def extract_progression(state, player, options): # method to obtain a list of what items the player has. # this includes categories, dice, rolls and score multiplier etc.