🐞 fix(抽卡): 添加多保底

This commit is contained in:
luying
2023-09-19 21:03:13 +08:00
parent 14a01d3d8c
commit 62b84e2c35

View File

@@ -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||[]);
}