军团活动:诸侯混战城门血量计算

This commit is contained in:
luying
2022-05-27 19:27:03 +08:00
parent f9ec0d782b
commit 42f1988c2f
6 changed files with 32 additions and 24 deletions

View File

@@ -784,13 +784,9 @@ export async function getCityActivityGateHp(serverId: number, cityId: number) {
if(serverRecord.activePlayers?.length > 0) activeTopPlayerCnt = serverRecord.activePlayers?.length;
if(serverRecord.activeGuildCodes?.length > 0) activeGuildCnt = serverRecord.activeGuildCodes?.length;
}
console.log(`getCityActivityGateHp: activePlayerCnt ${activePlayerCnt}, activePlayerCe ${activePlayerCe}, activeTopPlayerCnt ${activeTopPlayerCnt} activeGuildCnt ${activeGuildCnt}`);
let dicWarJson = gameData.warJson.get(dicCityActivity.warid);
let dicDoor = dicWarJson.find(cur => cur.actorId == CITY_ACTIVITY_DOOR);
let attribute = dicDoor.attribute.find(cur => cur.id == ABI_TYPE.ABI_ATK);
let atk = attribute? attribute.val: 0;
let atk = dicCityActivity.atkTemplate||0;
console.log(`getCityActivityGateHp: atk ${atk}`);
let A = activePlayerCe/activeTopPlayerCnt/6/GUILDACTIVITY.GATEACTIVITY_ENEMYCE;