mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
新增「席德」伤害计算;新增拂晓生花、月光骑士颂套装计算;新增狸法七变化、机巧心种音擎计算
This commit is contained in:
parent
219edc91de
commit
9e0f95a71b
14 changed files with 208 additions and 19 deletions
|
|
@ -152,7 +152,7 @@ export class BuffManager {
|
|||
if (!buff.source) {
|
||||
if (buff.name.includes('核心') || buff.name.includes('天赋')) buff.source = oriBuff.source = '核心被动'
|
||||
else if (buff.name.includes('额外能力')) buff.source = oriBuff.source = '额外能力'
|
||||
else if (buff.name.includes('影')) buff.source = oriBuff.source = '影画'
|
||||
else if (/^\d影/.test(buff.name)) buff.source = oriBuff.source = '影画'
|
||||
else if (buff.name.includes('技')) buff.source = oriBuff.source = '技能'
|
||||
}
|
||||
if (!buff.name || !buff.value || !buff.source || !buffTypeEnum[buffTypeEnum[buff.type]])
|
||||
|
|
@ -167,8 +167,8 @@ export class BuffManager {
|
|||
const oriCheck = typeof buff.check === 'function' && buff.check
|
||||
buff.check = ({ avatar, buffM, calc }) => professionCheck(avatar) && (!oriCheck || oriCheck({ avatar, buffM, calc }))
|
||||
// 影画buff影画数检查
|
||||
} else if (buff.source === '影画') {
|
||||
buff.check ??= oriBuff.check = +buff.name.match(/\d/)!?.[0]
|
||||
} else if (buff.source === '影画' && !buff.check) {
|
||||
buff.check = oriBuff.check = +buff.name[0]
|
||||
}
|
||||
this.buffs.push(buff)
|
||||
return this.buffs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue