装备:一键装备顺序

This commit is contained in:
luying
2021-08-03 14:26:22 +08:00
parent ac2c18dff8
commit 3fb0e80272
4 changed files with 24 additions and 17 deletions

View File

@@ -156,15 +156,6 @@ export class AttributeCal {
return ce > 0? ce: 1;
}
// 计算未装备的装备的简易战力公式
public calEquipCe() {
let attrMap = this.getRealAttrToMap();
let attrs = new Attribute();
attrs.setByMap(attrMap);
let { hp, atk, def, mdef } = attrs;
return hp * 1 + atk * 3 + def * 2 + mdef * 2;
}
public calCelAndReduce() {
return Math.floor(this.calCe() / HERO_CE_RATIO / HERO_CE_RATIO);
}