mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
新增「扳机」伤害计算
This commit is contained in:
parent
952961c49a
commit
b256890166
8 changed files with 132 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue