miao-plugin/resources/meta/character/宵宫/artis.js

11 lines
434 B
JavaScript
Raw Normal View History

export default function ({ attr, artis, rule, def }) {
2022-09-13 18:47:14 +00:00
// 宵宫纯色流派
2022-09-16 13:16:51 +00:00
if (attr.mastery < 50 && attr.cpct * 2 + attr.cdmg > 320) {
return rule('宵宫-纯火', { atk: 85, cp: 100, cd: 100, dmg: 100 })
2022-09-13 18:47:14 +00:00
}
if (attr.mastery > 200 && artis.is('mastery', 3)) {
2022-09-13 18:47:14 +00:00
return rule('宵宫-精通', { atk: 75, cp: 100, cd: 100, mastery: 100, dmg: 100 })
}
return def({ atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100 })
}