miao-plugin/resources/meta-gs/character/希诺宁/artis.js
2024-10-10 21:15:53 +08:00

22 lines
660 B
JavaScript

import { usefulAttr } from "../../artifact/artis-mark.js"
export default function ({ attr, weapon, rule, def }) {
let title = []
let particularAttr = { ...usefulAttr['希诺宁'] }
if (weapon.name === '西风剑') {
title.push('西风剑')
particularAttr.cpct = 100
}
if (attr.cpct * 2 + attr.cdmg > 240) {
title.push('战斗')
particularAttr.cpct = 100
particularAttr.cdmg = 100
particularAttr.recharge = 55
particularAttr.heal = 70
}
if (title.length > 0) {
return rule(`希诺宁-${title.join('')}`, particularAttr)
}
return def(usefulAttr['希诺宁'])
}