This commit is contained in:
luying
2022-05-20 11:02:47 +08:00
parent 3dd37ffc7b
commit 72739ee9cf
7 changed files with 326 additions and 350 deletions

View File

@@ -78,13 +78,11 @@ export class NewHeroGachaHandler {
return resResult(STATUS.ACTIVITY_DATA_ERROR);
}
let { lv } = await RoleModel.findByRoleId(roleId);
let userHeroes = await HeroModel.findByRole(roleId);
let gachaPull = new GachaPull(GACHA_ID.TIMELIMIT, lv, userHeroes);
let gachaPull = new GachaPull(GACHA_ID.TIMELIMIT);
gachaPull.setByActivity(item);
let { items, heroInfo, resultList, activityData } = gachaPull.pull(count);
let { items, heroInfo, resultList } = gachaPull.pull(count, userHeroes);
let { hasGetFloor, floorCount } = gachaPull.getActivityParam();
// 消耗东西