From 5e21497a685806a108e3df9c383c89534a2345ad Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 09:58:52 +0800 Subject: feat: 完善语义 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/what-is-rule-package.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/what-is-rule-package.md b/docs/docs/Standard/what-is-rule-package.md index 5dc19098..2798f319 100644 --- a/docs/docs/Standard/what-is-rule-package.md +++ b/docs/docs/Standard/what-is-rule-package.md @@ -34,6 +34,6 @@ class MyRule(Rule): ... # 其他的鉴定情况 ``` -这样就实现了一个水系规则包,当pl使用ability()方法,如果检定结果数值小于5且大于0那么返回大成功。 +这样就实现了一个水系规则包,当pl使用鉴定掷骰指令时就会调用ability()方法,如果检定结果数值小于5且大于0那么返回大成功。 我们要做的通用规则包标准就是这样一个“到底需要在Rule的子类MyRule里必须实现哪些方法?”的问题。 -- cgit v1.2.3-70-g09d2 From 313820414b81da7bd64a206326c5dfecbb3484c4 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:00:46 +0800 Subject: fix: 修正错别字“鉴定”->“检定” MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/what-is-rule-package.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/Standard/what-is-rule-package.md b/docs/docs/Standard/what-is-rule-package.md index 2798f319..84665c09 100644 --- a/docs/docs/Standard/what-is-rule-package.md +++ b/docs/docs/Standard/what-is-rule-package.md @@ -22,18 +22,18 @@ class MyRule(Rule): priority = 0 # 优先级 def ability(self): - """鉴定方法 + """检定方法 - self.result 是需要鉴定时计算的结果,可以直接使用 - self.rule.ability 是Rule类里提供的用于判断鉴定情况的属性 + self.result 是需要检定时计算的结果,可以直接使用 + self.rule.ability 是Rule类里提供的用于判断检定情况的属性 """ if self.result < 5 and self.result > 0: return self.rule.ability.success # 返回大成功时骰主自定义的大成功文本 else: - ... # 其他的鉴定情况 + ... # 其他的检定情况 ``` -这样就实现了一个水系规则包,当pl使用鉴定掷骰指令时就会调用ability()方法,如果检定结果数值小于5且大于0那么返回大成功。 +这样就实现了一个水系规则包,当pl使用检定掷骰指令时就会调用ability()方法,如果检定结果数值小于5且大于0那么返回大成功。 我们要做的通用规则包标准就是这样一个“到底需要在Rule的子类MyRule里必须实现哪些方法?”的问题。 -- cgit v1.2.3-70-g09d2 From bd35addd7fa0b248a0035903f1eba80cbf274663 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:02:30 +0800 Subject: fix: 删除无意义符号 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/Standard/Term/check/index.md b/docs/docs/Standard/Term/check/index.md index dcfafafc..24b2d848 100644 --- a/docs/docs/Standard/Term/check/index.md +++ b/docs/docs/Standard/Term/check/index.md @@ -3,7 +3,7 @@ title: check 检定 --- !!! tip - 这是一个可选实现但是{==建议尽量必须实现==}的方法,主要表现在规则书正是检定方法不同而有所不同上。 + 这是一个可选实现但是==建议尽量必须实现==的方法,主要表现在规则书正是检定方法不同而有所不同上。 ### 方法 @@ -11,4 +11,4 @@ title: check 检定 ### 检定结果表 -如[`方法`](#_1)所言,你必须为检定的结果设计一个完整的输出判定范围,因此你需要严格并且合理的分配划分界限。 \ No newline at end of file +如[`方法`](#_1)所言,你必须为检定的结果设计一个完整的输出判定范围,因此你需要严格并且合理的分配划分界限。 -- cgit v1.2.3-70-g09d2 From 65993795d580c9cb942aafa81b4fb8e8c67c8eff Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:03:42 +0800 Subject: refactor: 保留{},不然无法高亮 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/index.md b/docs/docs/Standard/Term/check/index.md index 24b2d848..0627d6d4 100644 --- a/docs/docs/Standard/Term/check/index.md +++ b/docs/docs/Standard/Term/check/index.md @@ -3,7 +3,7 @@ title: check 检定 --- !!! tip - 这是一个可选实现但是==建议尽量必须实现==的方法,主要表现在规则书正是检定方法不同而有所不同上。 + 这是一个可选实现但是{==建议尽量必须实现==}的方法,主要表现在规则书正是检定方法不同而有所不同上。 ### 方法 -- cgit v1.2.3-70-g09d2 From e0ecc320c010efdf48e2781453c703075fd29f22 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:06:27 +0800 Subject: feat: 完善语义 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/index.md b/docs/docs/Standard/Term/check/index.md index 0627d6d4..1c01a997 100644 --- a/docs/docs/Standard/Term/check/index.md +++ b/docs/docs/Standard/Term/check/index.md @@ -11,4 +11,4 @@ title: check 检定 ### 检定结果表 -如[`方法`](#_1)所言,你必须为检定的结果设计一个完整的输出判定范围,因此你需要严格并且合理的分配划分界限。 +如[`方法`](#_1)所言,你必须为检定的结果设计一个完整的输出判定范围,因此你需要严格并且合理的分配划分界限,保证所有情况都在允许范围内有一个类似”成功””失败”的输出。 -- cgit v1.2.3-70-g09d2 From c50abb89f5e47d710c5aabd8e68a2f64dfbe79ee Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:07:10 +0800 Subject: feat: 修改标题 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/index.md b/docs/docs/Standard/Term/check/index.md index 1c01a997..ced50585 100644 --- a/docs/docs/Standard/Term/check/index.md +++ b/docs/docs/Standard/Term/check/index.md @@ -5,7 +5,7 @@ title: check 检定 !!! tip 这是一个可选实现但是{==建议尽量必须实现==}的方法,主要表现在规则书正是检定方法不同而有所不同上。 -### 方法 +### 方法说明 使用`check`或者`ability`方法, 必须对检定结果设定一个完整的输出判定范围。 -- cgit v1.2.3-70-g09d2 From 002d2806dd3d3834f94f427ac21069c7703be690 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:10:40 +0800 Subject: feat: 添加提示 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index 421fc210..fe0ab665 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -2,4 +2,5 @@ title: ability 检定 --- !!! warning - 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) + 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/):material-question-outline:{ title="我为什么会看到这个?" } + -- cgit v1.2.3-70-g09d2 From 18fe5e7248d6a7d4fd9308de152da43e5a291861 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:12:12 +0800 Subject: refactor: 添加防止编译错误的空格 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index fe0ab665..27e46bae 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -2,5 +2,5 @@ title: ability 检定 --- !!! warning - 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/):material-question-outline:{ title="我为什么会看到这个?" } + 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) :material-question-outline:{ title="我为什么会看到这个?" } -- cgit v1.2.3-70-g09d2 From db43f82eb9a9065f66bc0450ac367687f3b67076 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:14:27 +0800 Subject: refactor: 修改图标样式 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index 27e46bae..eee7957a 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -2,5 +2,5 @@ title: ability 检定 --- !!! warning - 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) :material-question-outline:{ title="我为什么会看到这个?" } + 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) :material-infomation-outline:{ title="我为什么会看到这个?" } -- cgit v1.2.3-70-g09d2 From efe38335eaa8e63af2a4a39e325a5678e78c187e Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:19:27 +0800 Subject: feat: 添加标题提示 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index eee7957a..aa49e954 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -1,6 +1,7 @@ --- title: ability 检定 +icon: material/progress-question +status: question --- !!! warning - 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) :material-infomation-outline:{ title="我为什么会看到这个?" } - + 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) -- cgit v1.2.3-70-g09d2 From df06ccc5984f5074746040b8799857c6a2004754 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:20:38 +0800 Subject: refactor: 修改 icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index aa49e954..e951646d 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -1,6 +1,6 @@ --- title: ability 检定 -icon: material/progress-question +icon: material/tooltip-plus status: question --- !!! warning -- cgit v1.2.3-70-g09d2 From f20fe8e1a21242bb6924904525034f6a5071ad31 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:23:07 +0800 Subject: feat: 添加 pymdownx.snippets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/mkdocs.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 5a52f425..0a5ef568 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -94,7 +94,8 @@ markdown_extensions: # - neoteroi.timeline # - neoteroi.cards # - neoteroi.projects - # - neoteroi.spantable + # - neoteroi.spantabs + - pymdownx.snippets - abbr - admonition - attr_list @@ -179,4 +180,4 @@ nav: - Standard/Term/check/index.md - ability 检定: Standard/Term/check/ability.md - API Reference: - - "API Reference": API/index.md \ No newline at end of file + - "API Reference": API/index.md -- cgit v1.2.3-70-g09d2 From 1015756faae664836583a052feb2775e453f216a Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:30:33 +0800 Subject: feat: add - content.tooltips --- docs/mkdocs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 0a5ef568..2610a929 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -16,6 +16,7 @@ theme: features: - content.action.edit - content.action.view + - content.tooltips - navigation.footer - navigation.tabs # - navigation.tabs.sticky -- cgit v1.2.3-70-g09d2 From 9974be576d70bcd0ad245d8bc4163e85fab848f8 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:32:00 +0800 Subject: refactor: 增加 tooltip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index e951646d..d42cad86 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -4,4 +4,5 @@ icon: material/tooltip-plus status: question --- !!! warning - 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) + 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) :material-tooltip-plus:{ title="我为什么会看到此项内容?" } + -- cgit v1.2.3-70-g09d2 From f21f8b6b0f4e07a3727db273d540108306e3ba54 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:35:42 +0800 Subject: feat: 新增跳转链接 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index d42cad86..5c3fe66e 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -4,5 +4,5 @@ icon: material/tooltip-plus status: question --- !!! warning - 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) :material-tooltip-plus:{ title="我为什么会看到此项内容?" } + 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) :material-tooltip-plus:{ title="我为什么会看到此项内容?" href="#" } -- cgit v1.2.3-70-g09d2 From 4decbedfa2b7cf9aaa064f2e2473b5e9fd60437b Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:38:39 +0800 Subject: feat: 添加文字提示 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index 5c3fe66e..0a988344 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -4,5 +4,6 @@ icon: material/tooltip-plus status: question --- !!! warning - 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) :material-tooltip-plus:{ title="我为什么会看到此项内容?" href="#" } + 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) +*[移步正式术语]: https://HydroRollCore.retrofor.space "我为什么会看到此项内容?" -- cgit v1.2.3-70-g09d2 From ab68e51302eb8e6ccf9ed100ee575a0659c2c8a8 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:41:12 +0800 Subject: refactor: 修正缩进 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index 0a988344..2f204a95 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -6,4 +6,4 @@ status: question !!! warning 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) -*[移步正式术语]: https://HydroRollCore.retrofor.space "我为什么会看到此项内容?" + *[移步正式术语]: https://HydroRollCore.retrofor.space "我为什么会看到此项内容?" -- cgit v1.2.3-70-g09d2 From 470d9889a5d4a4dee448b956cbde3d15ab86c313 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:43:39 +0800 Subject: refactor: 修复链接 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/check/ability.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/docs/Standard/Term/check/ability.md b/docs/docs/Standard/Term/check/ability.md index 2f204a95..ccb28d06 100644 --- a/docs/docs/Standard/Term/check/ability.md +++ b/docs/docs/Standard/Term/check/ability.md @@ -4,6 +4,4 @@ icon: material/tooltip-plus status: question --- !!! warning - 关于这部分内容请移步正式术语[`check 检定`](/Standard/Term/check/) - - *[移步正式术语]: https://HydroRollCore.retrofor.space "我为什么会看到此项内容?" + 关于这部分内容请[移步正式术语](https://HydroRollCore.retrofor.space "我为什么会看到此项内容?"): [`check 检定`](/Standard/Term/check/) -- cgit v1.2.3-70-g09d2 From 7c0030aec276b2e3b0b896ec32b556298e3dab89 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 10:53:00 +0800 Subject: refactor: 修改错别字 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/what-is-rule-package.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/Standard/what-is-rule-package.md b/docs/docs/Standard/what-is-rule-package.md index 84665c09..f5e4b0f2 100644 --- a/docs/docs/Standard/what-is-rule-package.md +++ b/docs/docs/Standard/what-is-rule-package.md @@ -13,7 +13,8 @@ from HydroRolicore import RuLe class MyRule(Rule): """我的自定义规则包 - appniasal函数是必须实现的方法之一 + + check 函数是必须实现的方法之一 name属性是必须实现的属性之一,用来定义这个规则包的名字 priority是可选实现的属性之一,默认0 """ @@ -21,7 +22,7 @@ class MyRule(Rule): name = "我的自定义规则包" priority = 0 # 优先级 - def ability(self): + def check(self): """检定方法 self.result 是需要检定时计算的结果,可以直接使用 -- cgit v1.2.3-70-g09d2 From c1fb87a9ca48fc9667d0e604593c721801158e65 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 30 Jul 2023 11:00:34 +0800 Subject: refactor: 修改错别字 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/what-is-rule-package.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/Standard/what-is-rule-package.md b/docs/docs/Standard/what-is-rule-package.md index f5e4b0f2..05c2921f 100644 --- a/docs/docs/Standard/what-is-rule-package.md +++ b/docs/docs/Standard/what-is-rule-package.md @@ -35,6 +35,6 @@ class MyRule(Rule): ... # 其他的检定情况 ``` -这样就实现了一个水系规则包,当pl使用检定掷骰指令时就会调用ability()方法,如果检定结果数值小于5且大于0那么返回大成功。 +这样就实现了一个水系规则包,当pl使用检定掷骰指令时就会调用check()方法,如果检定结果数值小于5且大于0那么返回大成功。 我们要做的通用规则包标准就是这样一个“到底需要在Rule的子类MyRule里必须实现哪些方法?”的问题。 -- cgit v1.2.3-70-g09d2