-
Notifications
You must be signed in to change notification settings - Fork 2
属性列表
IzzelAliz edited this page Aug 8, 2020
·
5 revisions
属性的 id 为 插件:名称
,在编写配置文件和编写拓展时,可仅使用名称。
本篇中的属性 id 皆为 mesmerize:<id>
增加攻击伤害,分别代表所有攻击、对玩家的攻击、对非玩家的攻击、远程攻击(弓箭等)。
可以使用范围数值。
example:
damage: 10 # 增加 10 的伤害
pvp_damage: [2, 5] # 随机增加 2 到 5 点伤害
pve_damage: '+50%' # 增加 50% 伤害
range_damage: ['+20%', '+50%'] 随机增加 20% 到 50% 的伤害
增加防御。同上
分别增加暴击伤害和暴击几率。暴击伤害比例按攻击伤害计算。
example:
# 50% 几率打出 1.5 倍伤害
crit_chance: '+50%'
crit_damage: '+50%'
荆棘,也即所谓反弹、反甲。对攻击者造成伤害。
分别为对所有攻击、对近战攻击、对远程攻击的荆棘,和荆棘的触发几率。
吸血。对敌人造成伤害后为攻击者恢复血量。
example:
lifesteal: '2' # 恢复两点
lifesteal: '20%' # 恢复造成伤害的 20% 血量
lifesteal_chance: '10%'
攻击距离限制。
example:
attack_range: '-20%'
命中,抵消躲避属性。
躲避,抵消命中属性。
箭矢追踪。数值意义为 每 tick 向目标偏向的度数(角度)。
example:
tracing: 0.5
箭矢加速。会减弱追踪属性。
example:
accelerate: '+50%'
引用其他属性集。
# data/test.yml
example1:
damage: 2
example2:
stats_set: 'test.example1'
damage: 3
拥有某权限后指定属性生效,stats
也可以引用其他属性集。
example:
permission:
node: 'some.vip'
stats:
damage: 2
增加生命上限。
持续地回复生命。
战斗经验掉落加成和其他(挖矿、钓鱼)经验掉落加成。
整数值,不允许相对值(N%
)。
移动速度。
飞行速度。
武器攻击速度。
注意,本篇中所有概率判断属性,如
thorns_chance
,在进行概率计算时,以下方公式进行计算P = 1 * (1 + N%) * (1 + M%) ... - 1
即,两个
thorns_chance: '20%'
后的概率为44%