606
edits
m |
m |
||
| (One intermediate revision by the same user not shown) | |||
| Line 48: | Line 48: | ||
local c = buildingList[v] | local c = buildingList[v] | ||
local buildingType = c.type | local buildingType = c.type | ||
local influence = '' | |||
if c.influence then | if c.influence then | ||
local influenceKeys = {} | local influenceKeys = {} | ||
for k in pairs(c.influence) do | for k in pairs(c.influence) do | ||
if k ~= ' | if k ~= 'bsplendour' and k ~= 'tier' then -- Exclude 'bsplendour' and 'tier'... for now | ||
table.insert(influenceKeys, k) | table.insert(influenceKeys, k) | ||
end | end | ||
| Line 62: | Line 60: | ||
for k, v in pairs(c.influence) do | for k, v in pairs(c.influence) do | ||
if k ~= ' | if k ~= 'bsplendour' and k ~= 'tier' then | ||
influence = influence .. i.icon(k, v, nil, k, 'en') | influence = influence .. i.icon(k, v, nil, k, 'en') | ||
if k ~= lastKey and itemCount > 1 then | if k ~= lastKey and itemCount > 1 then | ||
| Line 68: | Line 66: | ||
end | end | ||
end | end | ||
end | end | ||
end | end | ||
edits