抽卡:逻辑修复

This commit is contained in:
luying
2022-05-20 13:16:22 +08:00
parent 72739ee9cf
commit 14788c23b5
3 changed files with 25 additions and 12 deletions

View File

@@ -141,13 +141,13 @@ export class GachaResult {
}
setHidOrGid(id: number, count?: number) {
let dicGachaContent = gameData.gachaContent.get(id);
let dicGachaContent = gameData.gachaContent.get(this.contentId);
if(!dicGachaContent) return;
if(dicGachaContent.type == GACHA_CONTENT_TYPE.HERO) {
this.setHero(id);
} else {
this.setItem(id, count);
this.setItem(id, count||dicGachaContent.count);
}
}