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