1,124
edits
Line 107: | Line 107: | ||
table.insert(prereq, infoboxData(buildingData.building, 'Building')) | table.insert(prereq, infoboxData(buildingData.building, 'Building')) | ||
table.insert(prereq, infoboxData(buildingData.population, 'Population')) | table.insert(prereq, infoboxData(buildingData.population, 'Population')) | ||
for k,v in pairs(buildingData.influence) do | if buildingData.influence then | ||
for k,v in pairs(buildingData.influence) do | |||
table.insert(prereq, infoboxData(v, k .. 'Influence')) | |||
end | |||
end | end | ||
for k, v in pairs(buildingData.splendor) do | |||
if buildingData.splendor then | |||
for k, v in pairs(buildingData.splendor) do | |||
table.insert(prereq, infoboxData(v, k .. 'Splendor')) | |||
end | |||
end | end | ||