From 406320585d3f9b00e1d8501625037208d204b885 Mon Sep 17 00:00:00 2001 From: chenyueqi <1056825054@qq.com> Date: Fri, 17 Jan 2020 20:02:04 +0800 Subject: [PATCH] 拆解时钟箱,功能修改后明显的错误 --- src/actions/RoleAction.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index d250193..d107d5c 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -440,7 +440,7 @@ function _M.openTimeBoxRpc(agent, data) local msg = MsgPack.unpack(data) local oper = msg.oper -- 操作 1 - 2 local slot = msg.slot -- 位置 1 - 6 - if math.illegalNum(slot, 1, globalCsv.box_timeOpen_maxNum) then return end + if math.illegalNum(slot, 1, role:getFuncLv(FuncOpenType.TimeBoxSlot)) then return end local boxL = role:getProperty("boxL") local reward @@ -457,11 +457,11 @@ function _M.openTimeBoxRpc(agent, data) -- 上宝石 local gemId = msg.gem or 0 - local num = randomData[gemId .. "_gem_num"] - if num then - if not role:checkItemEnough({[gemId] = 1}) then return end - role:costItems({[gemId] = 1}) - end + -- local num = randomData[gemId .. "_gem_num"] + -- if num then + -- if not role:checkItemEnough({[gemId] = 1}) then return end + -- role:costItems({[gemId] = 1}) + -- end boxL[slot].gem = gemId elseif oper == 2 then -- 领取 -- libgit2 0.21.2