Difference between revisions of "Module:Tables"

Jump to navigation Jump to search
No change in size ,  19:06, 17 August 2022
no edit summary
Line 32: Line 32:
:done()
:done()
for k, v in pairs (dataTable) do
for k, v in ipairs(dataTable) do
local c = buildingList[v]
local c = buildingList[v]
local getPreReq = {}
local getPreReq = {}
Line 38: Line 38:
table.insert(getPreReq, c.population)
table.insert(getPreReq, c.population)
if c.splendor then
if c.splendor then
for k, v in pairs(v.splendor) do
for k, v in pairs(c.splendor) do
table.insert(getPreReq, i.icon(k .. ' splendor', v, nil, nil, 'en'))
table.insert(getPreReq, i.icon(k .. ' splendor', v, nil, nil, 'en'))
end
end
Line 44: Line 44:
if c.influence then
if c.influence then
for k, v in pairs(v.influence) do
for k, v in pairs(c.influence) do
table.insert(getPreReq, i.icon(k .. ' influence', v, nil, nil, 'en'))
table.insert(getPreReq, i.icon(k .. ' influence', v, nil, nil, 'en'))
end
end

Navigation menu