mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-25 09:27:34 +00:00
22 lines
660 B
JavaScript
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['希诺宁'])
|
|
}
|