Commit 6a89ff2037548ed0f8ac659b2ef4e224370b5970
1 parent
5404ee7d
拆解时钟箱消耗的加速道具更改
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
src/GlobalVar.lua
| @@ -95,6 +95,7 @@ ItemId = { | @@ -95,6 +95,7 @@ ItemId = { | ||
| 95 | LunchFragment = 23, | 95 | LunchFragment = 23, |
| 96 | HeroFC = {700, 701, 702, 703}, -- 通用角色碎片 | 96 | HeroFC = {700, 701, 702, 703}, -- 通用角色碎片 |
| 97 | AdvKey = 80, -- 冒险钥匙 | 97 | AdvKey = 80, -- 冒险钥匙 |
| 98 | + BoxKey = 60, -- 拆解工具 | ||
| 98 | } | 99 | } |
| 99 | --客户端不需要知道这个 | 100 | --客户端不需要知道这个 |
| 100 | AdvSpecialStage = { | 101 | AdvSpecialStage = { |
src/actions/RoleAction.lua
| @@ -471,8 +471,8 @@ function _M.openTimeBoxRpc(agent, data) | @@ -471,8 +471,8 @@ function _M.openTimeBoxRpc(agent, data) | ||
| 471 | if not quick then return end | 471 | if not quick then return end |
| 472 | local cost_pre = globalCsv.box_timeOpen_diamond:toArray(true, "=") | 472 | local cost_pre = globalCsv.box_timeOpen_diamond:toArray(true, "=") |
| 473 | local costD = math.ceil((boxL[slot].time - skynet.timex()) / (cost_pre[1] * 60)) * cost_pre[2] | 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 | end | 476 | end |
| 477 | 477 | ||
| 478 | local itemData = csvdb["itemCsv"][boxL[slot].id] | 478 | local itemData = csvdb["itemCsv"][boxL[slot].id] |