feat(军团): 修改boss和城门血条逻辑

This commit is contained in:
luying
2023-09-19 20:13:56 +08:00
parent e8ba038bb5
commit 9797f41652
10 changed files with 330 additions and 89 deletions

View File

@@ -1,4 +1,4 @@
import { getAtrrNameById, ABI_TYPE_MAIN } from '../../consts';
import { getAtrrNameById, ABI_TYPE_MAIN, ABI_TYPE } from '../../consts';
import { gameData } from '../../pubUtils/data';
import { decodeArrayListStr } from '../../pubUtils/util';
import { ATTRIBUTE } from '../../pubUtils/dicParam';
@@ -116,6 +116,10 @@ export class AttributeCal {
public calSubAttrCe() {
return Math.floor(this.calCe(3));
}
public getAtk() {
return this.attrs.get(ABI_TYPE.ABI_ATK)||0;
}
}
export class Attribute {