Commit 406320585d3f9b00e1d8501625037208d204b885
1 parent
81032a9c
拆解时钟箱,功能修改后明显的错误
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
src/actions/RoleAction.lua
@@ -440,7 +440,7 @@ function _M.openTimeBoxRpc(agent, data) | @@ -440,7 +440,7 @@ function _M.openTimeBoxRpc(agent, data) | ||
440 | local msg = MsgPack.unpack(data) | 440 | local msg = MsgPack.unpack(data) |
441 | local oper = msg.oper -- 操作 1 - 2 | 441 | local oper = msg.oper -- 操作 1 - 2 |
442 | local slot = msg.slot -- 位置 1 - 6 | 442 | local slot = msg.slot -- 位置 1 - 6 |
443 | - if math.illegalNum(slot, 1, globalCsv.box_timeOpen_maxNum) then return end | 443 | + if math.illegalNum(slot, 1, role:getFuncLv(FuncOpenType.TimeBoxSlot)) then return end |
444 | 444 | ||
445 | local boxL = role:getProperty("boxL") | 445 | local boxL = role:getProperty("boxL") |
446 | local reward | 446 | local reward |
@@ -457,11 +457,11 @@ function _M.openTimeBoxRpc(agent, data) | @@ -457,11 +457,11 @@ function _M.openTimeBoxRpc(agent, data) | ||
457 | 457 | ||
458 | -- 上宝石 | 458 | -- 上宝石 |
459 | local gemId = msg.gem or 0 | 459 | local gemId = msg.gem or 0 |
460 | - local num = randomData[gemId .. "_gem_num"] | ||
461 | - if num then | ||
462 | - if not role:checkItemEnough({[gemId] = 1}) then return end | ||
463 | - role:costItems({[gemId] = 1}) | ||
464 | - end | 460 | + -- local num = randomData[gemId .. "_gem_num"] |
461 | + -- if num then | ||
462 | + -- if not role:checkItemEnough({[gemId] = 1}) then return end | ||
463 | + -- role:costItems({[gemId] = 1}) | ||
464 | + -- end | ||
465 | 465 | ||
466 | boxL[slot].gem = gemId | 466 | boxL[slot].gem = gemId |
467 | elseif oper == 2 then -- 领取 | 467 | elseif oper == 2 then -- 领取 |