diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 38b5f79..b17ac1e 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -370,7 +370,7 @@ function _M.openTimeBoxRpc(agent, data) if not boxL[slot] then return end if boxL[slot].time > skynet.timex() then -- 没开完 if not quick then return end - local cost_pre = globalCsv.box_timeOpen_Diamond:toArray(true, "=") + local cost_pre = globalCsv.box_timeOpen_diamond:toArray(true, "=") local costD = math.ceil((boxL[slot].time - skynet.timex()) / (cost_pre[1] * 60)) * cost_pre[2] if not role:checkItemEnough({[ItemId.Diamond] = costD}) then return end role:costItems({[ItemId.Diamond] = costD}) -- libgit2 0.21.2