606
edits
m Tag: Undo |
m |
||
| Line 172: | Line 172: | ||
end | end | ||
--/ | --/ | ||
--SECTION- | --SECTION-PREQUISITES | ||
local prereqData = {} | local prereqData = {} | ||
| Line 195: | Line 195: | ||
end | end | ||
--/ | --/ | ||
---SECTION-UNLOCKING | |||
if buildingData.influence then | |||
local unlockData = {} | |||
for resource, amount in pairs(buildingData.influence) do | |||
local resourceIcon = i.icon(resource, nil, nil, com.firstUpper({resource}), 'en') | |||
if buildingData. | table.insert(unlockData, {label = resourceIcon, value = amount}) | ||
local | |||
for | |||
end | end | ||
if # | if #unlockData > 0 then | ||
addSection(infobox, | addSection(infobox, unlockData, 'Unlocking Conditions', 2) | ||
end | end | ||
end | end | ||
| Line 220: | Line 217: | ||
if #constructionData > 0 then | if #constructionData > 0 then | ||
addSection(infobox, constructionData, 'Construction | addSection(infobox, constructionData, 'Construction Resources', 2) | ||
end | end | ||
end | end | ||
edits