Commit c887272280edf4210002dab46651819b8c0a9bef
1 parent
9b35bf6e
返回
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -375,7 +375,7 @@ function _M.openTimeBoxRpc(agent, data) |
375 | 375 | if not role:checkItemEnough({[ItemId.Diamond] = costD}) then return end |
376 | 376 | role:costItems({[ItemId.Diamond] = costD}) |
377 | 377 | end |
378 | - | |
378 | + | |
379 | 379 | local itemData = csvdb["itemCsv"][boxL[slot].id] |
380 | 380 | local randomData = csvdb["item_randomCsv"][tonumber(itemData.use_effect)] |
381 | 381 | reward = randomData.gift:toNumMap() -- 固定奖励 |
... | ... | @@ -407,6 +407,7 @@ function _M.openTimeBoxRpc(agent, data) |
407 | 407 | self:setProperty("boxL") --刷新 |
408 | 408 | self:changeUpdates({{type = "boxL", field = slot, value = boxL[slot], isOnlyToC = true}}) -- 通知客户端 |
409 | 409 | SendPacket(actionCodes.Role_openTimeBoxRpc, MsgPack.pack({reward = reward})) |
410 | + return true | |
410 | 411 | end |
411 | 412 | |
412 | 413 | function _M.storyBookRewardRpc(agent, data) | ... | ... |