diff options
| author | 2023-12-09 22:21:11 +0800 | |
|---|---|---|
| committer | 2023-12-09 22:37:38 +0800 | |
| commit | 2838466c563df69d9de8c6e9b69f14b07b8cf2c0 (patch) | |
| tree | 18130161013a4ba468b14a995a90cc9f02db0cd9 | |
| parent | ed3f3e483f66ca6e3469b6bc2d2d183227ac9c54 (diff) | |
| download | infini-2838466c563df69d9de8c6e9b69f14b07b8cf2c0.tar.gz infini-2838466c563df69d9de8c6e9b69f14b07b8cf2c0.zip | |
:bug: 修复Rule参数不全的问题
| -rw-r--r-- | src/hydrorollcore/rule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hydrorollcore/rule.py b/src/hydrorollcore/rule.py index d2ea4a19..127ed805 100644 --- a/src/hydrorollcore/rule.py +++ b/src/hydrorollcore/rule.py @@ -2,7 +2,7 @@ from abc import ABCMeta, abstractmethod from enum import Enum from .exceptions import HydroError -__all__ = ["RuleLoadType", "Rule"] +__all__ = ["RuleLoadType", "Result", "Dice", "Rule"] class RuleLoadType(Enum): @@ -69,5 +69,5 @@ class Rule(metaclass=ABCMeta): raise NotImplementedError @abstractmethod - def check(self) -> Result: + def check(self, dice: Dice) -> Result: raise NotImplementedError |
