军团活动:诸侯混战城门血量计算
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user