寻宝:增加 boss 返回字段;修改领取奖励更新
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user