🐞 fix(军团活动): 修改诸侯混战城门计算逻辑

This commit is contained in:
luying
2023-03-10 16:18:19 +08:00
parent 47c842bb0f
commit 8edb0095d4

View File

@@ -790,7 +790,11 @@ export async function getCityActivityGateHp(serverId: number, cityId: number) {
let N = dicCityActivity.hpN;
console.log(`getCityActivityGateHp: gateHpBase ${gateHpBase}, N ${N}`);
let gateHp = Math.floor(gateHpBase * (activePlayerCnt/activeGuildCnt) * N);
let playerGuildRatio = activePlayerCnt/activeGuildCnt;
if(playerGuildRatio < 10) playerGuildRatio = 10;
let gateHp = Math.floor(gateHpBase * playerGuildRatio * N);
console.log(`getCityActivityGateHp: gateHp ${gateHp}`);