mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
完全重构伤害计算;支持异常伤害计算;支持所有武器、套装计算;新增悠真计算等
This commit is contained in:
parent
f7e1066773
commit
3f8e64af66
99 changed files with 4243 additions and 1615 deletions
42
model/damage/set/折枝剑歌.js
Normal file
42
model/damage/set/折枝剑歌.js
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
// 函数导出:
|
||||
|
||||
/**
|
||||
* @param {import('../BuffManager.ts').BuffManager} buffM
|
||||
* @param {number} count 套装数量
|
||||
*/
|
||||
// export function calc(buffM, count) {
|
||||
// const name = buffM.defaultBuff.name
|
||||
// switch (true) {
|
||||
// case (count >= 4):
|
||||
// buffM.new({
|
||||
// name: name + '4',
|
||||
// type: '暴击伤害',
|
||||
// value: 0.3,
|
||||
// isForever: true,
|
||||
// check: ({ buffM, calc }) => calc.get_AnomalyMastery() >= 115
|
||||
// })
|
||||
// buffM.new({
|
||||
// name: name + '4',
|
||||
// type: '暴击率',
|
||||
// value: 0.12
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
|
||||
// 直接导出:
|
||||
|
||||
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
|
||||
export const buffs = [
|
||||
{
|
||||
name: '折枝剑歌4',
|
||||
type: '暴击伤害',
|
||||
value: 0.3,
|
||||
isForever: true,
|
||||
check: ({ buffM, calc }) => buffM.setCount.折枝剑歌 >= 4 && calc.get_AnomalyMastery() >= 115
|
||||
},
|
||||
{
|
||||
type: '暴击率',
|
||||
value: 0.12,
|
||||
check: 4
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue