演武台:修复血量计算方法

This commit is contained in:
luying
2022-05-07 17:57:08 +08:00
parent f0311e3cc8
commit 018d47db8c
2 changed files with 10 additions and 4 deletions

View File

@@ -216,11 +216,13 @@ export async function getBossHp(serverId: number, guildCode: string, dicBossBase
}
let subCe = getBossSubAttrCe(dicWar.secondAttrLevel, bossLv)
console.log(`getBossHp activeCe ${activeCe} subCe ${subCe}`);
let B = (activeCe - subCe)/6/GUILDACTIVITY.GATEACTIVITY_ENEMYCE;
if(B <= 0) B = 1;
console.log(`getBossHp B ${B}`);
let B = (activeCe/6 - subCe)/GUILDACTIVITY.GATEACTIVITY_ENEMYCE;
let bossBaseHp = B * hp;
let bossHp = Math.floor(bossBaseHp * bossHpRatio);
if(bossHp <= 0) bossHp = minBossHp;
if(B < 1) {
B = 1;
bossHp = minBossHp;
}
console.log(`getBossHp B ${B}`);
return { ratio: B, bossHp };
}