活动:新将抽卡添加固定奖励
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user