miao-plugin/resources/meta-sr/weapon/智识/calc.js

79 lines
2.1 KiB
JavaScript
Raw Normal View History

export default function (staticIdx, keyIdx) {
return {
'「我」的诞生': [
2023-05-23 19:30:30 +00:00
(tables) => {
return {
2023-10-10 18:49:38 +00:00
title: '敌方目标当前生命值百分比小于等于50%追加伤害提高[tDmg]%',
2023-05-23 19:30:30 +00:00
data: {
2023-10-10 18:49:38 +00:00
tDmg: tables[1] + tables[2]
2023-05-23 19:30:30 +00:00
}
}
}
],
今日亦是和平的一日: (tables) => {
return {
title: '根据能量上限提高数据',
data: {
dmg: ({ attr }) => tables[1] * Math.min(attr.sp, 160)
}
}
},
2023-05-23 19:30:30 +00:00
别让世界静下来: [
staticIdx(1, 'recharge'),
keyIdx('终结技造成的伤害提高[qDmg]%', 'qDmg', 2)
],
天才们的休憩: [
staticIdx(1, 'atkPct'),
keyIdx('消灭敌方目标后爆伤提高[cdmg]%', 'cdmg', 2)
],
拂晓之前: [
staticIdx(1, 'cdmg'),
2023-10-10 18:49:38 +00:00
keyIdx('战技和终结技造成的伤害提高[eDmg]%,追加攻击造成的伤害提高[tDmg]%', { eDmg: 2, qDmg: 2, tDmg: 3 })
2023-05-23 19:30:30 +00:00
],
早餐的仪式感: [
staticIdx(1, 'dmg'),
(tables) => {
return {
title: '3层Buff下提高攻击力[atkPct]%',
data: {
atkPct: tables[2] * 3
}
}
}
],
智库: [
keyIdx('使装备者终结技造成的伤害提高[qDmg]%', 'qDmg', 1)
],
灵钥: [],
2023-05-23 19:30:30 +00:00
睿见: [
keyIdx('施放终结技时攻击力提高[atkPct]%', 'atkPct', 1)
],
银河铁道之夜: [
(tables) => {
return {
title: '3个敌方目标提高攻击力[atkPct]%,弱点击破时伤害提高[dmg]%',
data: {
atkPct: tables[1] * 3,
dmg: tables[2]
}
}
}
],
'片刻,留在眼底': [
staticIdx(1, 'cdmg'),
(tables) => {
return {
title: '根据装备者的能量上限提高伤害[qDmg]%',
data: {
qDmg: ({ attr }) => tables[2] * Math.min(attr.sp, 180)
}
}
}
],
银河沦陷日: [
staticIdx(1, 'atkPct'),
keyIdx('提高暴击伤害[cdmg]%', 'cdmg', 2)
2023-05-23 19:30:30 +00:00
]
}
2023-10-10 18:49:38 +00:00
}