🐞 fix(军团活动): 修改诸侯混战城门计算逻辑
This commit is contained in:
@@ -790,7 +790,11 @@ export async function getCityActivityGateHp(serverId: number, cityId: number) {
|
|||||||
let N = dicCityActivity.hpN;
|
let N = dicCityActivity.hpN;
|
||||||
|
|
||||||
console.log(`getCityActivityGateHp: gateHpBase ${gateHpBase}, N ${N}`);
|
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}`);
|
console.log(`getCityActivityGateHp: gateHp ${gateHp}`);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user