aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/hydrorollcore/rule.py
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2023-12-09 22:21:11 +0800
committer苏向夜 <fu050409@163.com>2023-12-09 22:37:38 +0800
commit2838466c563df69d9de8c6e9b69f14b07b8cf2c0 (patch)
tree18130161013a4ba468b14a995a90cc9f02db0cd9 /src/hydrorollcore/rule.py
parented3f3e483f66ca6e3469b6bc2d2d183227ac9c54 (diff)
downloadinfini-2838466c563df69d9de8c6e9b69f14b07b8cf2c0.tar.gz
infini-2838466c563df69d9de8c6e9b69f14b07b8cf2c0.zip
:bug: 修复Rule参数不全的问题
Diffstat (limited to 'src/hydrorollcore/rule.py')
-rw-r--r--src/hydrorollcore/rule.py4
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