抽卡:修复转盘
This commit is contained in:
@@ -210,7 +210,7 @@ export class GachaHandler {
|
|||||||
// 获得或者转成碎片
|
// 获得或者转成碎片
|
||||||
let heroInfo: { hid: number, count: number }[] = [];
|
let heroInfo: { hid: number, count: number }[] = [];
|
||||||
for (let i = 0; i < count; i++) {
|
for (let i = 0; i < count; i++) {
|
||||||
heroInfo.push({ hid: hero[0], count: 1 })
|
heroInfo.push({ hid: hero, count: 1 })
|
||||||
}
|
}
|
||||||
let { heroes, goods } = await createHeroes(roleId, roleName, sid, serverId, funcs, heroInfo);
|
let { heroes, goods } = await createHeroes(roleId, roleName, sid, serverId, funcs, heroInfo);
|
||||||
let resultList: GachaResult[] = [];
|
let resultList: GachaResult[] = [];
|
||||||
@@ -221,7 +221,7 @@ export class GachaHandler {
|
|||||||
}
|
}
|
||||||
for (let g of goods) {
|
for (let g of goods) {
|
||||||
let result = new GachaResult(contentId);
|
let result = new GachaResult(contentId);
|
||||||
result.setHero(hero[0]);
|
result.setHero(hero);
|
||||||
result.transferToPiece(g.id, g.count);
|
result.transferToPiece(g.id, g.count);
|
||||||
resultList.push(result);
|
resultList.push(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user