From 09582aac48e804392b6d7cb39c619177d1451649 Mon Sep 17 00:00:00 2001 From: liguanghui Date: Tue, 16 Mar 2021 16:07:12 +0800 Subject: [PATCH] 海港贸易相关bug修复 --- src/actions/SeaportAction.lua | 2 +- src/models/RolePlugin.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/SeaportAction.lua b/src/actions/SeaportAction.lua index f41736c..ab09b39 100644 --- a/src/actions/SeaportAction.lua +++ b/src/actions/SeaportAction.lua @@ -198,7 +198,7 @@ function _M.taskRpc(agent, data) local carbonCsv = csvdb["idle_battleCsv"] local expCarbonId = role:getProperty("hangInfo").expCarbonId local coidCarbonId = role:getProperty("hangInfo").carbonId - if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end + if not carbonCsv[expCarbonId] or not carbonCsv[coidCarbonId] then return 7 end local totalCoef = 0 for _, heroId in ipairs(collect.team:toArray(true,"=")) do diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index e22528b..e825e87 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -1279,7 +1279,7 @@ function RolePlugin.bind(Role) local teams = collect[slot].team local time = collect[slot].time if time + data.time <= endTime then - if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end + if not carbonCsv[expCarbonId] or not carbonCsv[coidCarbonId] then break end local totalCoef = 0 for _, heroId in ipairs(teams:toArray(true,"=")) do -- libgit2 0.21.2