1,124
edits
Line 174: | Line 174: | ||
end | end | ||
--Construction group | |||
if buildingData.construction then | |||
local conList = {} | |||
for k, v in pairs(buildingData.construction) do | |||
local conLabel = i.icon(k, nil, nil, string.gsub(k, | |||
string.sub(k,1,1), string.upper(string.sub(k,1,1)), 1), | |||
'en') | |||
table.insert(conList, infoboxData(v, conLabel)) | |||
end | |||
local conGroup = infoboxGroup(conList, '2', 'Construction Requirements') | |||
for k, v in ipairs(conGroup) do | |||
result:node(v) | |||
end | |||
end | |||
return result | return result | ||
end | end | ||
return p | return p |