606
edits
Tag: Undo |
m |
||
| 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 | |||
local n = #c.influence -- Exclude splendour bonus??? | |||
local i = 0 | |||
for k, v in pairs(c.influence) do | |||
i = i + 1 | |||
if i < n then | |||
influence = influence .. i.icon(k, v, nil, k, 'en') .. '<br />' | |||
end | |||
end | |||
local l = string.len(influence) | |||
if l > 0 then | |||
influence = string.sub(influence, 1, l -6) | |||
end | |||
end | |||
local unlocks = influence | |||
if c.output then | if c.output then | ||
edits