aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-06-30 08:50:37 +0800
committer简律纯 <i@jyunko.cn>2024-06-30 08:50:37 +0800
commit890a7a28f4c9075a32240725cd2b51636cab5c1e (patch)
tree892779d6bed1c9f79f5c965618213fefaf14fd63 /examples
parent87f0d8fbc019b65ff942b415b107293a1024fe1d (diff)
downloadHydroRollCore-890a7a28f4c9075a32240725cd2b51636cab5c1e.tar.gz
HydroRollCore-890a7a28f4c9075a32240725cd2b51636cab5c1e.zip
chore: commented unused code
Diffstat (limited to 'examples')
-rw-r--r--examples/COC7/Wiki.py3
-rw-r--r--examples/COC7/__init__.py14
2 files changed, 6 insertions, 11 deletions
diff --git a/examples/COC7/Wiki.py b/examples/COC7/Wiki.py
index 62b66ab..e6a730a 100644
--- a/examples/COC7/Wiki.py
+++ b/examples/COC7/Wiki.py
@@ -1,2 +1 @@
-# MyRule
-
+# MyRule \ No newline at end of file
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