606
edits
m |
m |
||
| Line 50: | Line 50: | ||
local influence = '' | local influence = '' | ||
if c.influence then | if c.influence then | ||
local influenceKeys = {} | |||
for k in pairs(c.influence) do | |||
if k ~= 'perEach splendour' then | |||
table.insert(influenceKeys, k) | |||
end | |||
end | |||
local lastKey = influenceKeys[#influenceKeys] | |||
local itemCount = #influenceKeys | |||
for k, v in pairs(c.influence) do | |||
if k ~= 'perEach splendour' then | |||
influence = influence .. i.icon(k, v, nil, k, 'en') | |||
if k ~= lastKey and itemCount > 1 then | |||
influence = influence .. '<br />' | |||
end | |||
end | |||
end | |||
end | |||
local unlocks = influence | |||
local production = '' | local production = '' | ||
edits