Skip to content

模板配置

御魂模板分为两部分: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-valuetrue 为乘法成长,false 为加法成长
recycle-exp-ratio强化等级回收经验比例
need-exp每级强化需要的御魂经验
need-vault每级强化需要的金币
attribute-up-need-level每提升多少级强化一次随机副词条
main-attribute主词条强化规则
entry-value副词条强化规则

need-expneed-vault 支持单级写法,也支持 10-15 这种区间写法。

强化字段

字段说明
keyword用于在 Lore 中定位词条
min本次强化最小增量
max本次强化最大增量
weight被随机强化到的权重
command强化命中该词条时执行的指令列表,可删除