模板配置
御魂模板分为两部分:template 负责鉴定或生成时的初始词条,strengthen 负责强化时的成长规则。两个模板 ID 建议保持一致。
生成模板
yaml
template:
模板1:
check-lore: "&7<< 御魂属性待激活 >>"
last-line-lore:
- "定位lore上一行的属性"
next-line-lore:
- "定位lore下一行的属性"
min-entry: 1
max-entry: 4
entry-not-repeated: false
recycle-exp: 100
main-attribute:
攻击力:
min: 10
max: 30
weight: 10
format: "&7攻击力+{value}"
round: "%.0f"
entry-value:
暴击几率:
min: 1
max: 5
weight: 10
format: "&7暴击几率+{value}%"
round: "%.1f"| 字段 | 说明 |
|---|---|
check-lore | 物品 Lore 命中后,会被替换成御魂词条 |
last-line-lore | 生成词条前插入的 Lore |
next-line-lore | 生成词条后插入的 Lore |
min-entry | 最少副词条数量 |
max-entry | 最多副词条数量 |
entry-not-repeated | 副词条是否不重复 |
recycle-exp | 回收该御魂可获得的基础经验 |
main-attribute | 主词条池 |
entry-value | 副词条池 |
警告
开启 entry-not-repeated 时,entry-value 的数量必须大于 max-entry,否则无法正常生成足够的副词条。
词条字段
| 字段 | 说明 |
|---|---|
min | 随机最小值 |
max | 随机最大值 |
weight | 权重,数值越高越容易出现 |
format | 生成到 Lore 的格式,{value} 为随机值 |
round | 数值格式,例如 %.0f、%.1f |
随机值会受 normal-distribution-offset 影响,默认 0.25 通常不需要调整。
强化模板
yaml
strengthen:
模板1:
multiply-value: false
recycle-exp-ratio: 0.1
need-exp:
1: 10
10-15: 100
need-vault:
1: 10
10-15: 100
attribute-up-need-level: 3
main-attribute:
攻击力:
keyword: "&7攻击力"
min: 10
max: 30
weight: 10
command: []
entry-value:
暴击伤害:
keyword: "&7暴击伤害"
min: 3
max: 30
weight: 10
command: []| 字段 | 说明 |
|---|---|
multiply-value | true 为乘法成长,false 为加法成长 |
recycle-exp-ratio | 强化等级回收经验比例 |
need-exp | 每级强化需要的御魂经验 |
need-vault | 每级强化需要的金币 |
attribute-up-need-level | 每提升多少级强化一次随机副词条 |
main-attribute | 主词条强化规则 |
entry-value | 副词条强化规则 |
need-exp 和 need-vault 支持单级写法,也支持 10-15 这种区间写法。
强化字段
| 字段 | 说明 |
|---|---|
keyword | 用于在 Lore 中定位词条 |
min | 本次强化最小增量 |
max | 本次强化最大增量 |
weight | 被随机强化到的权重 |
command | 强化命中该词条时执行的指令列表,可删除 |