mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-30 18:59:14 +00:00
c6a70b3a6d
修正圣遗物流派判定的部分错误
11 lines
446 B
JavaScript
11 lines
446 B
JavaScript
export default function ({ attr, artis, rule, def }) {
|
|
// 宵宫纯色流派
|
|
if (attr.mastery < 50 && attr.cpct * 2 + attr.cdmg > 320) {
|
|
return rule('宵宫-纯火', { atk: 85, cpct: 100, cdmg: 100, dmg: 100 })
|
|
}
|
|
if (attr.mastery > 200 && artis.is('mastery', 3)) {
|
|
return rule('宵宫-精通', { atk: 75, cpct: 100, cdmg: 100, mastery: 100, dmg: 100 })
|
|
}
|
|
return def({ atk: 75, cpct: 100, cdmg: 100, mastery: 75, dmg: 100 })
|
|
}
|