Commit 6a89ff2037548ed0f8ac659b2ef4e224370b5970
1 parent
5404ee7d
拆解时钟箱消耗的加速道具更改
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
src/GlobalVar.lua
src/actions/RoleAction.lua
... | ... | @@ -471,8 +471,8 @@ function _M.openTimeBoxRpc(agent, data) |
471 | 471 | if not quick then return end |
472 | 472 | local cost_pre = globalCsv.box_timeOpen_diamond:toArray(true, "=") |
473 | 473 | local costD = math.ceil((boxL[slot].time - skynet.timex()) / (cost_pre[1] * 60)) * cost_pre[2] |
474 | - if not role:checkItemEnough({[ItemId.Diamond] = costD}) then return end | |
475 | - role:costItems({[ItemId.Diamond] = costD}) | |
474 | + if not role:checkItemEnough({[ItemId.BoxKey] = costD}) then return end | |
475 | + role:costItems({[ItemId.BoxKey] = costD}) | |
476 | 476 | end |
477 | 477 | |
478 | 478 | local itemData = csvdb["itemCsv"][boxL[slot].id] | ... | ... |