diff options
| author | 2023-12-11 00:17:29 +0800 | |
|---|---|---|
| committer | 2023-12-11 00:17:29 +0800 | |
| commit | 074579ccec5b31b6e6546bb16b2ffe9b1069f790 (patch) | |
| tree | f8c93239efcde4621cc10a4e58914458a281d03b | |
| parent | 627b435ea364c538463f220b4e48daa40ad64b19 (diff) | |
| download | infini-074579ccec5b31b6e6546bb16b2ffe9b1069f790.tar.gz infini-074579ccec5b31b6e6546bb16b2ffe9b1069f790.zip | |
:bug: 修复Dice示例代码库缺失的问题
| -rw-r--r-- | src/hydrorollcore/consts/templates.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hydrorollcore/consts/templates.py b/src/hydrorollcore/consts/templates.py index 4cf72989..8ab60ae5 100644 --- a/src/hydrorollcore/consts/templates.py +++ b/src/hydrorollcore/consts/templates.py @@ -1,5 +1,6 @@ RULE = """from HydroRollCore import Rule, Result, Dice + class MyRule(Rule): \"\"\"自设规则包\"\"\" @@ -18,6 +19,7 @@ EVENT = """from HydroRollCore import Event __events__ = ["MyEvent"] + class MyEvent(Event): name = "event1" output = "检定成功!" @@ -25,6 +27,10 @@ class MyEvent(Event): DICE = """from HydroRollCore import Dice +import random +import re + + class BaseDice(Dice): \"\"\"多面骰\"\"\" |
