From 56763ca7cce97e6b843e59979656f9ce9d33c3bf Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Thu, 27 May 2021 11:21:43 +0800 Subject: [PATCH] fix: 拆解术士模块的bug,充能重置运行时间,领取已经获得的奖励,不进行加速。 --- src/actions/RoleAction.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 5ef85f2..87e5daa 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -665,9 +665,8 @@ function _M.openTimeBoxRpc(agent, data) if not role:checkItemEnough({[ItemId.Jade] = costKey}) then return 5 end role:costItems({[ItemId.Jade] = costKey}, {log = {desc = "openTimeBox", int1 = slot, int2 = oper}}) else - stopTime = math.min(nowTime,time + globalCsv.box_productLine_time * 3600) + stopTime = math.min(nowTime,time + globalCsv.box_productLine_time * 3600 + role:getBnousDismantlingMaximum()) end - stopTime = stopTime + role:getBnousDismantlingMaximum() role:pushCancel({type = "box", slot = slot}) -- libgit2 0.21.2