miao-plugin/resources/meta/character/夜兰/artis.js

18 lines
464 B
JavaScript
Raw Normal View History

2022-09-13 18:47:14 +00:00
export default function ({ attr, weapon, rule, def }) {
let title = []
let mastery = 0
let hp = 80
2023-02-10 05:04:40 +00:00
if (attr.mastery > 80) {
2022-09-13 18:47:14 +00:00
title.push('精通')
mastery = 75
}
if (weapon.name === '若水') {
title.push('若水')
hp = 100
}
if (title.length > 0) {
2023-02-18 18:05:53 +00:00
return rule(`夜兰-${title.join('')}`, { hp, cpct: 100, cdmg: 100, mastery, dmg: 100, recharge: 75 })
2022-09-13 18:47:14 +00:00
}
2023-02-18 18:05:53 +00:00
return def({ hp: 80, cpct: 100, cdmg: 100, dmg: 100, recharge: 75 })
2022-09-13 18:47:14 +00:00
}