diff --git a/src/actions/CarAction.lua b/src/actions/CarAction.lua index 8d8c2f0..6dded5b 100644 --- a/src/actions/CarAction.lua +++ b/src/actions/CarAction.lua @@ -65,7 +65,7 @@ function _M.equipUpRpc( agent, data ) local nextEquip = dataSet[nextLv] if not nextEquip then return 23 end - local limit = csvdb["ItemCsv"][nextEquip.id].limit ~= 0 and csvdb["ItemCsv"][nextEquip.id].limit or math.huge + local limit = csvdb["itemCsv"][nextEquip.id].limit ~= 0 and csvdb["itemCsv"][nextEquip.id].limit or math.huge if math.illegalNum(count, 1, limit) then return 0 end @@ -122,7 +122,7 @@ function _M.runeUpRpc( agent, data ) return true end -function _M.Car_saleEquipRpc(agent, data ) +function _M.saleEquipRpc(agent, data ) local role = agent.role local msg = MsgPack.unpack(data) diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 7b45181..7abc386 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -529,7 +529,7 @@ function RolePlugin.bind(Role) end if not next(relations) then return {} end local result = {} - for _, data in ipairs(csvdb["unit_relationCsv"]) do + for _, data in pairs(csvdb["unit_relationCsv"]) do local ok = true for typ, count in pairs(data.relation:toNumMap()) do if (relations[typ] or 0) < count then -- libgit2 0.21.2