抽卡:求贤若渴pick武将按品质算数量

This commit is contained in:
luying
2022-06-27 17:36:11 +08:00
parent ed1586fefe
commit b5c2005192
5 changed files with 51 additions and 14 deletions

View File

@@ -194,12 +194,12 @@ export class GachaHandler {
let resultList: GachaResult[] = [];
for (let h of resultHeroes) {
let result = new GachaResult(contentId);
result.setHero(h.hid);
result.setHero(h.hid, 1);
resultList.push(result);
}
for (let g of goods) {
let result = new GachaResult(contentId);
result.setHero(hero);
result.setHero(hero, 1);
result.transferToPiece(g.id, g.count);
resultList.push(result);
}