Commit 09582aac48e804392b6d7cb39c619177d1451649

Authored by liguanghui
1 parent e820b3f3

海港贸易相关bug修复

src/actions/SeaportAction.lua
@@ -198,7 +198,7 @@ function _M.taskRpc(agent, data) @@ -198,7 +198,7 @@ function _M.taskRpc(agent, data)
198 local carbonCsv = csvdb["idle_battleCsv"] 198 local carbonCsv = csvdb["idle_battleCsv"]
199 local expCarbonId = role:getProperty("hangInfo").expCarbonId 199 local expCarbonId = role:getProperty("hangInfo").expCarbonId
200 local coidCarbonId = role:getProperty("hangInfo").carbonId 200 local coidCarbonId = role:getProperty("hangInfo").carbonId
201 - if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end 201 + if not carbonCsv[expCarbonId] or not carbonCsv[coidCarbonId] then return 7 end
202 202
203 local totalCoef = 0 203 local totalCoef = 0
204 for _, heroId in ipairs(collect.team:toArray(true,"=")) do 204 for _, heroId in ipairs(collect.team:toArray(true,"=")) do
src/models/RolePlugin.lua
@@ -1279,7 +1279,7 @@ function RolePlugin.bind(Role) @@ -1279,7 +1279,7 @@ function RolePlugin.bind(Role)
1279 local teams = collect[slot].team 1279 local teams = collect[slot].team
1280 local time = collect[slot].time 1280 local time = collect[slot].time
1281 if time + data.time <= endTime then 1281 if time + data.time <= endTime then
1282 - if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end 1282 + if not carbonCsv[expCarbonId] or not carbonCsv[coidCarbonId] then break end
1283 1283
1284 local totalCoef = 0 1284 local totalCoef = 0
1285 for _, heroId in ipairs(teams:toArray(true,"=")) do 1285 for _, heroId in ipairs(teams:toArray(true,"=")) do