演武台:修复boss血量
This commit is contained in:
@@ -181,9 +181,10 @@ export async function getBossHp(serverId: number, guildCode: string, dicBossBase
|
|||||||
|
|
||||||
let dicWarJson = gameData.warJson.get(warId);
|
let dicWarJson = gameData.warJson.get(warId);
|
||||||
let actorId = gameData.heroIdByWar.get(warId);
|
let actorId = gameData.heroIdByWar.get(warId);
|
||||||
let dicBoss = dicWarJson.find(cur => cur.bossStage == actorId);
|
let dicBoss = dicWarJson.find(cur => cur.actorId == actorId);
|
||||||
let attribute = dicBoss?.attribute||[];
|
let attribute = dicBoss?.attribute||[];
|
||||||
let hp = attribute.find(cur => cur.id == ABI_TYPE.ABI_HP)?.val||0;
|
let hp = attribute.find(cur => cur.id == ABI_TYPE.ABI_HP)?.val||0;
|
||||||
|
console.log(`getBossHp warId ${warId} hp ${hp}`);
|
||||||
|
|
||||||
let activeGuilds = serverRecord.activeGuilds||[];
|
let activeGuilds = serverRecord.activeGuilds||[];
|
||||||
let myGuild = activeGuilds.find(cur => cur.guildCode == guildCode);
|
let myGuild = activeGuilds.find(cur => cur.guildCode == guildCode);
|
||||||
@@ -197,9 +198,12 @@ export async function getBossHp(serverId: number, guildCode: string, dicBossBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
activeCe = reduceCe(activeCe);
|
activeCe = reduceCe(activeCe);
|
||||||
|
|
||||||
|
console.log(`getBossHp activeCe ${activeCe}`);
|
||||||
let B = activeCe/6/GUILDACTIVITY.GATEACTIVITY_ENEMYCE;
|
let B = activeCe/6/GUILDACTIVITY.GATEACTIVITY_ENEMYCE;
|
||||||
|
console.log(`getBossHp B ${B}`);
|
||||||
let bossBaseHp = B * hp;
|
let bossBaseHp = B * hp;
|
||||||
let bossHp = Math.floor(bossBaseHp * bossHpRatio);
|
let bossHp = Math.floor(bossBaseHp * bossHpRatio);
|
||||||
|
if(bossHp == 0) return minBossHp;
|
||||||
return bossHp;
|
return bossHp;
|
||||||
}
|
}
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
"lv": 20,
|
"lv": 20,
|
||||||
"hide": 0,
|
"hide": 0,
|
||||||
"initial_ai": 1,
|
"initial_ai": 1,
|
||||||
"attribute": "2&25000|4&8000|5&8000",
|
"attribute": "1&3202|2&25000|4&8000|5&8000",
|
||||||
"skill": 0,
|
"skill": 0,
|
||||||
"seid": 0,
|
"seid": 0,
|
||||||
"star": 0,
|
"star": 0,
|
||||||
|
|||||||
@@ -157,7 +157,7 @@
|
|||||||
"lv": 20,
|
"lv": 20,
|
||||||
"hide": 0,
|
"hide": 0,
|
||||||
"initial_ai": 1,
|
"initial_ai": 1,
|
||||||
"attribute": "2&25000|4&8000|5&8000",
|
"attribute": "1&3202|2&25000|4&8000|5&8000",
|
||||||
"skill": 0,
|
"skill": 0,
|
||||||
"seid": 0,
|
"seid": 0,
|
||||||
"star": 0,
|
"star": 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user