Difference between revisions of "Module:OTable"

Jump to navigation Jump to search
m
no edit summary
m
m
Line 48: Line 48:
local c = buildingList[v]
local c = buildingList[v]
local buildingType = c.type
local buildingType = c.type
local influence = ''
local influence = ''
           if c.influence then
           if c.influence then
           local influenceKeys = {}
           local influenceKeys = {}
          local tierValue = c.influence.tier
       
           for k in pairs(c.influence) do
           for k in pairs(c.influence) do
             if k ~= 'perEach splendour' and k ~= 'tier' then -- Exclude 'perEach splendour' and 'tier'
             if k ~= 'perEach splendour' and k ~= 'tier' then -- Exclude 'perEach splendour' and 'tier'... for now
             table.insert(influenceKeys, k)
             table.insert(influenceKeys, k)
             end
             end
Line 68: Line 66:
             end
             end
             end
             end
          end
       
          -- Append the tier in brackets if it exists
          if tierValue then
            influence = influence .. ' (' .. tierValue .. ')'
           end
           end
           end
           end
606

edits

Navigation menu