606
edits
m |
m |
||
| Line 48: | Line 48: | ||
local c = buildingList[v] | local c = buildingList[v] | ||
local buildingType = c.type | local buildingType = c.type | ||
local influence = '' | local influence = '' | ||
if c.influence then | if c.influence then | ||
| Line 56: | Line 55: | ||
end | end | ||
local lastKey = influenceKeys[#influenceKeys] | local lastKey = influenceKeys[#influenceKeys] | ||
local itemCount = #influenceKeys | |||
for k, v in pairs(c.influence) do | for k, v in pairs(c.influence) do | ||
influence = influence .. i.icon(k, v, nil, k, 'en') | |||
if k ~= lastKey and itemCount > 1 then | |||
influence = influence .. '<br />' | |||
end | end | ||
end | end | ||
end | end | ||
edits