mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 13:47:44 +00:00
新增「席德」伤害计算;新增拂晓生花、月光骑士颂套装计算;新增狸法七变化、机巧心种音擎计算
This commit is contained in:
parent
219edc91de
commit
9e0f95a71b
14 changed files with 208 additions and 19 deletions
|
|
@ -71,7 +71,7 @@ export class BuffManager {
|
|||
buff.source = oriBuff.source = '核心被动';
|
||||
else if (buff.name.includes('额外能力'))
|
||||
buff.source = oriBuff.source = '额外能力';
|
||||
else if (buff.name.includes('影'))
|
||||
else if (/^\d影/.test(buff.name))
|
||||
buff.source = oriBuff.source = '影画';
|
||||
else if (buff.name.includes('技'))
|
||||
buff.source = oriBuff.source = '技能';
|
||||
|
|
@ -88,8 +88,8 @@ export class BuffManager {
|
|||
const oriCheck = typeof buff.check === 'function' && buff.check;
|
||||
buff.check = ({ avatar, buffM, calc }) => professionCheck(avatar) && (!oriCheck || oriCheck({ avatar, buffM, calc }));
|
||||
}
|
||||
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