Commit 912f7d2c0caba91ab1a1fbf91bfbad0a477177b2

Authored by zhouhaihai
1 parent a41b9076

bug

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
src/actions/CarAction.lua
... ... @@ -65,7 +65,7 @@ function _M.equipUpRpc( agent, data )
65 65 local nextEquip = dataSet[nextLv]
66 66 if not nextEquip then return 23 end
67 67  
68   - local limit = csvdb["ItemCsv"][nextEquip.id].limit ~= 0 and csvdb["ItemCsv"][nextEquip.id].limit or math.huge
  68 + local limit = csvdb["itemCsv"][nextEquip.id].limit ~= 0 and csvdb["itemCsv"][nextEquip.id].limit or math.huge
69 69  
70 70 if math.illegalNum(count, 1, limit) then return 0 end
71 71  
... ... @@ -122,7 +122,7 @@ function _M.runeUpRpc( agent, data )
122 122 return true
123 123 end
124 124  
125   -function _M.Car_saleEquipRpc(agent, data )
  125 +function _M.saleEquipRpc(agent, data )
126 126 local role = agent.role
127 127 local msg = MsgPack.unpack(data)
128 128  
... ...
src/models/RolePlugin.lua
... ... @@ -529,7 +529,7 @@ function RolePlugin.bind(Role)
529 529 end
530 530 if not next(relations) then return {} end
531 531 local result = {}
532   - for _, data in ipairs(csvdb["unit_relationCsv"]) do
  532 + for _, data in pairs(csvdb["unit_relationCsv"]) do
533 533 local ok = true
534 534 for typ, count in pairs(data.relation:toNumMap()) do
535 535 if (relations[typ] or 0) < count then
... ...