新武将:修改字段

This commit is contained in:
luying
2022-08-01 20:06:37 +08:00
parent e2dd6852af
commit 53ab0098e1
3 changed files with 9 additions and 3 deletions

View File

@@ -114,4 +114,8 @@ export class GuideGachaData extends ActivityBase {
}
return false;
}
public neverChoose() {
return this.stage == GUIDE_GACHA_STAGE.DECIDE && this.candidates.length <= 0;
}
}

View File

@@ -23,7 +23,8 @@ export class NewHeroGachaData extends ActivityBase {
bg: string;
uiType: number;
pickHero: number = 0;
pullCnt: number = 0;
count: number = 0;
freeCount: number = 0;
constructor(activityData: ActivityModelType, createTime: number, serverTime: number) {
super(activityData, createTime, serverTime)
@@ -47,7 +48,8 @@ export class NewHeroGachaData extends ActivityBase {
public setPlayerRecords(data: UserGachaType) {
if (!data) return;
this.pickHero = data.pickHero;
this.pullCnt = data.pullCnt;
this.count = data.count;
this.freeCount = data.freeCount;
}
public isPickHero(hid: number) {