活动:新将抽卡添加固定奖励

This commit is contained in:
qiaoxin
2021-06-24 15:49:40 +08:00
parent 51b96a6853
commit d906392764
6 changed files with 37 additions and 14 deletions

View File

@@ -14,11 +14,13 @@ export class NewHeroGachaItem {
cost: RewardInter[];//每次抽卡消耗资源
floorReward: number = 0;//保底奖励percent下标+1
percent: { id: number, weight: number, goodId: number }[];//奖品百分比 contentId & percent & id(英雄hid物品id)
commonReward: string = "";//固定奖 格式:1&3&1(类型&id&数量) 类型定义:1.英雄2.物品
constructor(data: any) {
this.hid = data.hid;
this.name = data.name;
this.floorCount = data.floorCount;
this.commonReward = data.commonReward;
this.cost = parseGoodStr(data.cost);
this.percent = [];
this.floorReward = data.floorReward - 1;