From a997a3b080eaa1bac3ca18426b4e1f329894726f Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Thu, 29 Jul 2021 14:33:44 +0800 Subject: [PATCH] fix: 一番赏 打开消耗票的功能 --- src/actions/CapsuleAction.lua | 4 ++-- src/models/Capsule.lua | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/actions/CapsuleAction.lua b/src/actions/CapsuleAction.lua index 4703ac7..75d3d52 100644 --- a/src/actions/CapsuleAction.lua +++ b/src/actions/CapsuleAction.lua @@ -122,8 +122,8 @@ function _M.drawRpc(agent, data) end cost[token[1]] = drawsNum * token[2] - --if not role:checkItemEnough(cost) then return 2 end - --role:costItems(cost, {log = {desc = "CapsuleCoinCost", int1 = token[1], int2 = cost[token[1]]}}) + if not role:checkItemEnough(cost) then return 2 end + role:costItems(cost, {log = {desc = "CapsuleCoinCost", int1 = token[1], int2 = cost[token[1]]}}) --开始抽奖 if typ == 1 then diff --git a/src/models/Capsule.lua b/src/models/Capsule.lua index 2b878fd..6f78c13 100644 --- a/src/models/Capsule.lua +++ b/src/models/Capsule.lua @@ -530,21 +530,16 @@ function Capsule:checkSpecialReward( now) local notify = self:getTop(record, recordAmount,now) or {} - dump(notify) local coreReward = self:getCore(record, recordAmount, now) - dump(coreReward) rewardToNtyFunc(notify, coreReward) local lastReward = self:getLast(record, now) - dump(lastReward) rewardToNtyFunc(notify, lastReward) local jokerReward = self:getJoker(record, now) - dump(jokerReward) rewardToNtyFunc(notify, jokerReward) local kingReward = self:getKing(record, now) - dump(kingReward) rewardToNtyFunc(notify, kingReward) -- libgit2 0.21.2