mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
完全重构伤害计算;支持异常伤害计算;支持所有武器、套装计算;新增悠真计算等
This commit is contained in:
parent
f7e1066773
commit
3f8e64af66
99 changed files with 4243 additions and 1615 deletions
43
model/damage/set/模板.js
Normal file
43
model/damage/set/模板.js
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/**
|
||||
* @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,
|
||||
element: ,
|
||||
range: ['']
|
||||
})
|
||||
case (count >= 2):
|
||||
buffM.new({
|
||||
name: name + '2',
|
||||
type: ,
|
||||
value: 0,
|
||||
element: ,
|
||||
range: ['']
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
|
||||
export const buffs = [
|
||||
{
|
||||
type: ,
|
||||
value: 0,
|
||||
check: 2,
|
||||
element: ,
|
||||
range: ['']
|
||||
},
|
||||
{
|
||||
type: ,
|
||||
value: 0,
|
||||
check: 4,
|
||||
element: ,
|
||||
range: ['']
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue