Commit f8ba82b367be25e9768fed4fbf902b2761626d88
1 parent
c8872722
大小写
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/actions/RoleAction.lua
@@ -370,7 +370,7 @@ function _M.openTimeBoxRpc(agent, data) | @@ -370,7 +370,7 @@ function _M.openTimeBoxRpc(agent, data) | ||
370 | if not boxL[slot] then return end | 370 | if not boxL[slot] then return end |
371 | if boxL[slot].time > skynet.timex() then -- 没开完 | 371 | if boxL[slot].time > skynet.timex() then -- 没开完 |
372 | if not quick then return end | 372 | if not quick then return end |
373 | - local cost_pre = globalCsv.box_timeOpen_Diamond:toArray(true, "=") | 373 | + local cost_pre = globalCsv.box_timeOpen_diamond:toArray(true, "=") |
374 | local costD = math.ceil((boxL[slot].time - skynet.timex()) / (cost_pre[1] * 60)) * cost_pre[2] | 374 | local costD = math.ceil((boxL[slot].time - skynet.timex()) / (cost_pre[1] * 60)) * cost_pre[2] |
375 | if not role:checkItemEnough({[ItemId.Diamond] = costD}) then return end | 375 | if not role:checkItemEnough({[ItemId.Diamond] = costD}) then return end |
376 | role:costItems({[ItemId.Diamond] = costD}) | 376 | role:costItems({[ItemId.Diamond] = costD}) |