miao-plugin/resources/meta-sr/weapon/丰饶/calc.js

40 lines
997 B
JavaScript
Raw Normal View History

export default function (staticIdx, keyIdx) {
return {
一场术后对话: [
staticIdx(1, 'recharge'),
keyIdx('释放终结技时的治疗量提高[qHeal]%', 'qHeal', 2)
],
同一种心情: [
staticIdx(1, 'heal')
],
嘉果: [],
时节不居: [
staticIdx(1, 'hpPct'),
staticIdx(2, 'heal')
],
暖夜不会漫长: [
staticIdx(1, 'hpPct')
],
此时恰好: [
staticIdx(1, 'effDef'),
(tables) => {
return {
2023-09-07 03:23:58 +00:00
title: '基于效果抵抗,提高治疗量[heal]%',
data: {
heal: ({ attr, calc }) => Math.min(tables[3], calc(attr.effDef) * tables[2] / 100)
}
}
}
],
物穰: [
keyIdx('释放战技与终结技时,治疗量提高[eHeal]%', { eHeal: 1, qHeal: 1 })
],
等价交换: [],
2023-06-08 17:59:13 +00:00
蕃息: [],
棺的回响: [
staticIdx(1, 'atkPct'),
keyIdx('释放终结技后,速度提升[speed]', 'speed', 3)
]
}
2023-09-07 03:23:58 +00:00
}