镇念塔:修复加速次数

This commit is contained in:
luying
2021-08-19 12:01:06 +08:00
parent 13b0cf18d0
commit c17afa200e
3 changed files with 4 additions and 6 deletions
@@ -111,10 +111,9 @@ export class TowerBattleHandler {
}
const spdUpRec = await HangUpSpdUpRecModel.updateRec(roleId, roleName, msg.speedUpCnt, endLv, needReceiveGoods);
const goods = await addItems(roleId, roleName, sid, timeReward);
let num = getManyHangSpdUpCostGold(spdUpResult.hangUpSpdUpCnt, 1);
let nextCostGold = getHangSpdUpCostGold(num);
let nextCostGold = getManyHangSpdUpCostGold(spdUpResult.hangUpSpdUpCnt, 1);
return resResult(STATUS.SUCCESS, { goods, hangUpSpdUpCnt, nextCostGold, hangUpPassTime: Math.floor(deltaTime/1000), rewardLv: endLv, costGold });
return resResult(STATUS.SUCCESS, { goods, hangUpSpdUpCnt: spdUpResult.hangUpSpdUpCnt, nextCostGold, hangUpPassTime: Math.floor(deltaTime/1000), rewardLv: endLv, costGold });
}
async getTasks(msg: {}, session: BackendSession) {