diff --git a/game-server/app/services/guildActivity/guildActivityService.ts b/game-server/app/services/guildActivity/guildActivityService.ts index 3f0457e2e..a46110aba 100644 --- a/game-server/app/services/guildActivity/guildActivityService.ts +++ b/game-server/app/services/guildActivity/guildActivityService.ts @@ -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}`);