🐞 fix(抽卡): 添加多保底
This commit is contained in:
@@ -55,6 +55,7 @@ export class GachaListReturn {
|
||||
point: number = 0; // 积分
|
||||
turntable: Turntable[] = []; // 转盘记录
|
||||
pickHero: number = 0; // 玩家选择的武将
|
||||
floor: { id: number, count: number }[] = []
|
||||
|
||||
constructor(dicGacha: DicGacha, userGacha: UserGachaType) {
|
||||
this.gachaId = dicGacha.id;
|
||||
@@ -68,6 +69,9 @@ export class GachaListReturn {
|
||||
this.point = userGacha.point;
|
||||
this.turntable = userGacha.turntable;
|
||||
this.pickHero = userGacha.pickHero;
|
||||
for(let { id, count } of (userGacha.floor||[])) {
|
||||
this.floor.push({ id, count })
|
||||
}
|
||||
}
|
||||
this.remainFloor = getGachaRemainFloor(this.gachaId, userGacha?.floor||[]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user