diff options
Diffstat (limited to 'examples/COC7/__init__.py')
| -rw-r--r-- | examples/COC7/__init__.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/examples/COC7/__init__.py b/examples/COC7/__init__.py index 50db8f4..232ed4d 100644 --- a/examples/COC7/__init__.py +++ b/examples/COC7/__init__.py @@ -1,6 +1,6 @@ import math -from hrc import Core, player_card +from hrc.core import Core from hrc.rule import Rule, BaseRule from hrc.dependencies import Depends @@ -12,10 +12,10 @@ core = Core() class COC7(Rule): - attr: Attributes = Depends() # 必须实现一个继承自 Character.Attribute 的类 - wiki: Wiki = Depends() # 可选实现一个 Wiki + attr: Attributes = Depends() # 必须实现一个继承自 Character.Attribute 的子类 + wiki: Wiki = Depends() # 可选实现一个 Wiki 类 - @core.event_post_processor_hook + # @core.event_post_processor_hook async def auto_card(self): if self.session and self.session.gid and self.ac: if hasattr(self.pc.trans, "生命") or hasattr(self.pc.trans, "理智"): @@ -45,8 +45,4 @@ class COC7(Rule): + mp_show + " DEX" + str(self.pc.get("DEX", "?")) - ) - - -print(COC7) -print(COC7.attr)
\ No newline at end of file + )
\ No newline at end of file |
