From 2838466c563df69d9de8c6e9b69f14b07b8cf2c0 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Sat, 9 Dec 2023 22:21:11 +0800 Subject: :bug: 修复Rule参数不全的问题 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hydrorollcore/rule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hydrorollcore/rule.py') 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 -- cgit v1.2.3-70-g09d2