mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
新增柚叶伤害计算
This commit is contained in:
parent
46af7f3482
commit
0aff315d5a
7 changed files with 132 additions and 9 deletions
|
|
@ -113,8 +113,10 @@ export function avatar_calc(avatar) {
|
|||
logger.debug('initial_properties', avatar.initial_properties);
|
||||
weapon_buff(avatar.weapon, buffM);
|
||||
set_buff(avatar.equip, buffM);
|
||||
if (m.buffs)
|
||||
buffM.new(m.buffs);
|
||||
if (m.buffs) {
|
||||
const vaildBuffs = m.buffs.filter(v => (v.source && v.source !== '影画') || typeof v.check !== 'number' || v.check <= avatar.rank);
|
||||
buffM.new(vaildBuffs);
|
||||
}
|
||||
if (m.skills)
|
||||
calc.new(m.skills);
|
||||
if (m.calc)
|
||||
|
|
@ -164,8 +166,10 @@ export function set_buff(equips, buffM) {
|
|||
if (!m)
|
||||
continue;
|
||||
buffM.default('name', name);
|
||||
if (m.buffs)
|
||||
buffM.new(m.buffs);
|
||||
if (m.buffs) {
|
||||
const vaildBuffs = m.buffs.filter(v => (v.source && v.source !== '套装') || typeof v.check !== 'number' || v.check <= count);
|
||||
buffM.new(vaildBuffs);
|
||||
}
|
||||
if (m.calc)
|
||||
m.calc(buffM, count);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue