diff options
Diffstat (limited to 'docs/Standard')
| -rw-r--r-- | docs/Standard/Term/DefaultDice/_counts.md | 10 | ||||
| -rw-r--r-- | docs/Standard/Term/DefaultDice/_sides.md | 7 | ||||
| -rw-r--r-- | docs/Standard/Term/DefaultDice/index.md | 11 | ||||
| -rw-r--r-- | docs/Standard/Term/PlayerCard/index.md | 11 | ||||
| -rw-r--r-- | docs/Standard/Term/check/ability.md | 10 | ||||
| -rw-r--r-- | docs/Standard/Term/check/index.md | 14 | ||||
| -rw-r--r-- | docs/Standard/Term/duration/campaign.md | 0 | ||||
| -rw-r--r-- | docs/Standard/Term/duration/index.md | 1 | ||||
| -rw-r--r-- | docs/Standard/Term/duration/module.md | 0 | ||||
| -rw-r--r-- | docs/Standard/Term/duration/sene.md | 0 | ||||
| -rw-r--r-- | docs/Standard/Term/scenario.md | 0 | ||||
| -rw-r--r-- | docs/Standard/Term/setting.md | 0 | ||||
| -rw-r--r-- | docs/Standard/what-is-rule-package.md | 40 | ||||
| -rw-r--r-- | docs/Standard/what-is-standard.md | 0 | ||||
| -rw-r--r-- | docs/Standard/why-rule-package.md | 0 |
15 files changed, 0 insertions, 104 deletions
diff --git a/docs/Standard/Term/DefaultDice/_counts.md b/docs/Standard/Term/DefaultDice/_counts.md deleted file mode 100644 index bb6fa83a..00000000 --- a/docs/Standard/Term/DefaultDice/_counts.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: _counts 骰子个数 ---- - -!!! tip - 这是一个必须的值,根据不同规则书的要求设置相对应的值 - -### 属性说明 - -用于规定默认投掷时骰子的个数
\ No newline at end of file diff --git a/docs/Standard/Term/DefaultDice/_sides.md b/docs/Standard/Term/DefaultDice/_sides.md deleted file mode 100644 index a5543278..00000000 --- a/docs/Standard/Term/DefaultDice/_sides.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: _sides 骰子面数 ---- - -### 属性说明 - -用于规定默认投掷时骰子的面数
\ No newline at end of file diff --git a/docs/Standard/Term/DefaultDice/index.md b/docs/Standard/Term/DefaultDice/index.md deleted file mode 100644 index 812f9504..00000000 --- a/docs/Standard/Term/DefaultDice/index.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: DefaultDice 默认骰子 -status: new ---- - -!!! tip - 这是一个必须的类,根据不同规则书的要求设置相对应的值 - -### 类说明 - -用于规定默认投掷时骰子的各种属性,例如默认骰子数量,面数
\ No newline at end of file diff --git a/docs/Standard/Term/PlayerCard/index.md b/docs/Standard/Term/PlayerCard/index.md deleted file mode 100644 index f647b284..00000000 --- a/docs/Standard/Term/PlayerCard/index.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: PlayerCard 人物卡 -status: new ---- - -!!! tip - 这是一个可选实现但是{==建议尽量必须实现==}的方法,主要表现在规则书正是检定方法不同而有所不同上。 - -### 类说明 - -用于规定人物卡的格式,包括人物属性,属性之间的计算关系等
\ No newline at end of file diff --git a/docs/Standard/Term/check/ability.md b/docs/Standard/Term/check/ability.md deleted file mode 100644 index 13e3d83a..00000000 --- a/docs/Standard/Term/check/ability.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: ability 检定 -status: deprecated ---- -!!! info - 关于这部分内容请[移步正式术语][redirect]: [`check 检定`](/Standard/Term/check/) - - [redirect]: https://infini.retrofor.space "我为什么会看到此项内容?" - -这部分其实已经移除。 diff --git a/docs/Standard/Term/check/index.md b/docs/Standard/Term/check/index.md deleted file mode 100644 index ced50585..00000000 --- a/docs/Standard/Term/check/index.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: check 检定 ---- - -!!! tip - 这是一个可选实现但是{==建议尽量必须实现==}的方法,主要表现在规则书正是检定方法不同而有所不同上。 - -### 方法说明 - -使用`check`或者`ability`方法, 必须对检定结果设定一个完整的输出判定范围。 - -### 检定结果表 - -如[`方法`](#_1)所言,你必须为检定的结果设计一个完整的输出判定范围,因此你需要严格并且合理的分配划分界限,保证所有情况都在允许范围内有一个类似”成功””失败”的输出。 diff --git a/docs/Standard/Term/duration/campaign.md b/docs/Standard/Term/duration/campaign.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/Standard/Term/duration/campaign.md +++ /dev/null diff --git a/docs/Standard/Term/duration/index.md b/docs/Standard/Term/duration/index.md deleted file mode 100644 index e2c14ebe..00000000 --- a/docs/Standard/Term/duration/index.md +++ /dev/null @@ -1 +0,0 @@ -# duration (时长) diff --git a/docs/Standard/Term/duration/module.md b/docs/Standard/Term/duration/module.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/Standard/Term/duration/module.md +++ /dev/null diff --git a/docs/Standard/Term/duration/sene.md b/docs/Standard/Term/duration/sene.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/Standard/Term/duration/sene.md +++ /dev/null diff --git a/docs/Standard/Term/scenario.md b/docs/Standard/Term/scenario.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/Standard/Term/scenario.md +++ /dev/null diff --git a/docs/Standard/Term/setting.md b/docs/Standard/Term/setting.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/Standard/Term/setting.md +++ /dev/null diff --git a/docs/Standard/what-is-rule-package.md b/docs/Standard/what-is-rule-package.md deleted file mode 100644 index da402b6a..00000000 --- a/docs/Standard/what-is-rule-package.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: "什么是规则包?" ---- - -规则包是水系核心用来加载的对象,可以理解为水系核心加载的一个一个规则实例。 - -规则包更类似于插件的设计,所以规则包也可以是一个Python文件或者一个Python包,但它必须像插件那样继承一个像Plugin这样的类(不然无法读取,我们姑且叫这个类为Rule),以及在Rule的子类里实现一些像handle()或者rule()这样必须实现的方法(也叫函数),而这些必须实现的方法,就是我们要讨论的,一个通用规则包标准就是明确了一个继承自Rule类的子类它本身应该实现什么方法。 - -举个例子(随便写的,其中一些必须实现的属性或者类名都是不确定的,以后或许会改): - -``` python -from HydroRolicore import RuLe - -class MyRule(Rule): - """我的自定义规则包 - - check 函数是必须实现的方法之一 - name属性是必须实现的属性之一,用来定义这个规则包的名字 - priority是可选实现的属性之一,默认0 - """ - - name = "我的自定义规则包" - priority = 0 # 优先级 - - def check(self): - """检定方法 - - self.result 是需要检定时计算的结果,可以直接使用 - self.rule.ability 是Rule类里提供的用于判断检定情况的属性 - """ - - if self.result < 5 and self.result > 0: - return self.rule.ability.success # 返回大成功时骰主自定义的大成功文本 - else: - ... # 其他的检定情况 -``` - -这样就实现了一个水系规则包,当pl使用检定掷骰指令时就会调用check()方法,如果检定结果数值小于5且大于0那么返回大成功。 - -我们要做的通用规则包标准就是这样一个“到底需要在Rule的子类MyRule里必须实现哪些方法?”的问题。 diff --git a/docs/Standard/what-is-standard.md b/docs/Standard/what-is-standard.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/Standard/what-is-standard.md +++ /dev/null diff --git a/docs/Standard/why-rule-package.md b/docs/Standard/why-rule-package.md deleted file mode 100644 index e69de29b..00000000 --- a/docs/Standard/why-rule-package.md +++ /dev/null |
