抽卡:逻辑修复
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user