新增「扳机」伤害计算

This commit is contained in:
UCPr 2025-04-01 13:25:48 +08:00
parent 952961c49a
commit b256890166
8 changed files with 132 additions and 19 deletions

View file

@ -44,8 +44,8 @@ let depth = 0, weakMapCheck = new WeakMap();
export class BuffManager {
avatar;
buffs = [];
setCount = Object.create(null);
defaultBuff = Object.create(null);
setCount = {};
defaultBuff = {};
constructor(avatar) {
this.avatar = avatar;
}
@ -60,7 +60,7 @@ export class BuffManager {
buff = _.merge({
status: true,
isForever: false,
is: Object.create(null),
is: {},
...this.defaultBuff
}, buff);
if (buff.isForever)