寻宝:修改掉落逻辑

This commit is contained in:
luying
2021-08-09 17:07:50 +08:00
parent fbe9e08aa1
commit 207695bf17
5 changed files with 42 additions and 43 deletions

View File

@@ -343,8 +343,8 @@ export function getWarByBlueprtId(blueprtId: number) {
}
export function getRewardByBlueprtId(blueprtId: number) {
let { fixReward } = getWarByBlueprtId(blueprtId);
return fixReward;
let { fixReward, teammateReward } = getWarByBlueprtId(blueprtId);
return { fixReward, teammateReward };
}
function parseComBtlLvRange() {

View File

@@ -32,6 +32,8 @@ export interface DicWar {
readonly dispatchJsonId: number;
// 寻宝奖励
readonly jackpotReward: Array<{id: number, weight: number}>;
// 寻宝队友奖励
readonly teammateReward: Array<{id: number, count: number}>;
}
export const dicWar = new Map<number, DicWar>();
@@ -48,6 +50,7 @@ export function loadWar() {
o.parseRandomReward = parseRandomReward(o.parseRandomReward);
o.detailUIBg = parseDetailUIBg(o.detailUIBg);
o.jackpotReward = parseJackpotReward(o.jackpotReward);
o.teammateReward = parseFixReward(o.teammateReward);
dicWar.set(o.war_id, o);
if(o.warType == WAR_TYPE.PVP) {