寻宝:增加 boss 返回字段;修改领取奖励更新

This commit is contained in:
liangtongchuan
2020-12-02 21:22:40 +08:00
parent aa5daa8a6e
commit ef86623241
5 changed files with 42 additions and 18 deletions

View File

@@ -19,7 +19,7 @@ const olySeidInfo = new Map<number, any>();
const expeditionInfo = new Map<number, any> ();
const comBtlInfo = new Map<number, {quality: number, name: string, assistanceTime: number, assistanceLevel: number}>();
const btlBossHpSum = new Map<number, number>();
const btlBossHp = new Map<number, Array<{dataId: number, hp: number}>>();
const btlBossHp = new Map<number, Array<{dataId: number, hp: number, actorId: number}>>();
const blueprtToWar = new Map<number, number>();
const goodInfo = new Map<number, any>();
const blueprt = new Map<number, Array<number>>();
@@ -364,12 +364,12 @@ export function getBossHpByWarId(warId: number) {
const warInfo = getWarJsons(warId).json;
if (warInfo && warInfo.length) {
warInfo.forEach(hero => {
let { attribute, dataId, relation } = hero;
let { attribute, dataId, relation, actorId } = hero;
if (relation === 2) {
let attriData = decodeIdCntArrayStr(attribute, 1);
const hp = parseInt(attriData.get('1'));
if (hp > 0) {
bossHpArr.push({dataId, hp});
bossHpArr.push({dataId, hp, actorId});
bossHpSum += hp;
}
}