抽卡:修复新人卡池特殊处理问题

This commit is contained in:
luying
2022-07-08 20:25:28 +08:00
parent d2a17d0cce
commit ab1f779346
5 changed files with 70 additions and 12 deletions

View File

@@ -807,8 +807,11 @@ export function getGachaRemainFloor(gachaId: number, userFloor: Floor[]) {
for(let floorId of dicGacha.floor) {
let dicGachaFloor = gameData.gachaFloor.get(floorId);
console.log('##### floorId', floorId, dicGachaFloor)
if(dicGachaFloor && dicGachaFloor.floorType == GACHA_FLOOR_TYPE.MAIN_FLOOR) {
let myFloor = userFloor.find(cur => cur.id == floorId);
console.log('#### dicGacha#', gachaId, dicGachaFloor.param, (myFloor?.count||0))
return dicGachaFloor.param - (myFloor?.count||0);
}
}