aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-07-28 17:57:13 +0800
committer简律纯 <i@jyunko.cn>2023-07-28 17:57:13 +0800
commit551b0e0893b858afe1a7b0f72794592a3f12f51d (patch)
tree96bc581c688eb2fa8fda17bf3719b977609020f6
parent5b0564b9804293fe7cd79b5e19cda32fc6739f84 (diff)
downloadinfini-551b0e0893b858afe1a7b0f72794592a3f12f51d.tar.gz
infini-551b0e0893b858afe1a7b0f72794592a3f12f51d.zip
fix: 调整检定术语和示例
-rw-r--r--docs/docs/Standard/Term/ability.md (renamed from docs/docs/Standard/Term/appriasal.md)2
-rw-r--r--docs/docs/Standard/what-is-rule-package.md6
-rw-r--r--docs/mkdocs.yml2
3 files changed, 5 insertions, 5 deletions
diff --git a/docs/docs/Standard/Term/appriasal.md b/docs/docs/Standard/Term/ability.md
index 3dba1727..a1e86aa1 100644
--- a/docs/docs/Standard/Term/appriasal.md
+++ b/docs/docs/Standard/Term/ability.md
@@ -1,5 +1,5 @@
---
-title: 鉴定(/检定)
+title: ability/check 检定
---
这是一个可选实现但是建议实现的方法。 \ No newline at end of file
diff --git a/docs/docs/Standard/what-is-rule-package.md b/docs/docs/Standard/what-is-rule-package.md
index 009ec951..b7788db5 100644
--- a/docs/docs/Standard/what-is-rule-package.md
+++ b/docs/docs/Standard/what-is-rule-package.md
@@ -20,15 +20,15 @@ class MyRule(Rule):
name = "我的自定义规则包"
priority = 0 # 优先级
- def appriasal(self):
+ def ability(self):
"""鉴定方法
self.result 是需要鉴定时计算的结果,可以直接使用
- self.appriasal 是Rule类里提供的用于判断鉴定情况的属性
+ self.rule.ability 是Rule类里提供的用于判断鉴定情况的属性
"""
if self.result < 5 and self.result > 0:
- return self.appriasal.success # 返回大成功时骰主自定义的大成功文本
+ return self.rule.ability.success # 返回大成功时骰主自定义的大成功文本
else:
... # 其他的鉴定情况
```
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index f3223ac2..a4f8bbd0 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -167,7 +167,7 @@ nav:
- 为什么要做规则包?: Standard/why-rule-package.md
- 什么是通用规则包标准?: Standard/what-is-standard.md
- 术语表(草案):
- - 鉴定: Standard/Term/appriasal.md
+ - 检定: Standard/Term/ability.md
- ...: #
- API Reference:
- "API Reference": API/index.md \ No newline at end of file