Commit cb8d4368809968ca369fe438087198208f9a46d8
1 parent
de1a55b4
拆解术式充能的时候领取道具,获得个数计算错误
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -607,6 +607,8 @@ function _M.openTimeBoxRpc(agent, data) |
607 | 607 | local costKey = math.ceil((stopTime - nowTime) / (cost_pre[1] * 60)) * cost_pre[2] |
608 | 608 | if not role:checkItemEnough({[ItemId.Diamond] = costKey}) then return 5 end |
609 | 609 | role:costItems({[ItemId.Diamond] = costKey}, {log = {desc = "openTimeBox", int1 = slot}}) |
610 | + else | |
611 | + stopTime = math.min(nowTime,time + globalCsv.box_productLine_time * 3600) | |
610 | 612 | end |
611 | 613 | role:pushCancel({type = "box", slot = slot}) |
612 | 614 | ... | ... |