演武台,处理当没有玩家的情况

This commit is contained in:
luying
2022-05-27 19:00:20 +08:00
parent db17a4c480
commit a25dcc5e00

View File

@@ -215,6 +215,8 @@ export async function getBossHp(serverId: number, guildCode: string, dicBossBase
playerCnt ++;
}
}
if(playerCnt == 0) return { ratio: 1, bossHp: zoomInDamage(minBossHp) };
let subCe = getBossSubAttrCe(dicWar.secondAttrLevel, bossLv)
console.log(`getBossHp activeCe ${activeCe} playerCnt ${playerCnt} subCe ${subCe}`);
let B = (activeCe/playerCnt/6 - subCe)/GUILDACTIVITY.GATEACTIVITY_ENEMYCE;