Difference between revisions of "Module:OTable"

Jump to navigation Jump to search
239 bytes removed ,  13:22, 19 April 2025
m
no edit summary
m
m
 
(One intermediate revision by the same user not shown)
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 ~= 'bsplendour' and k ~= 'tier' then -- Exclude 'bsplendour' and 'tier'... for now
             table.insert(influenceKeys, k)
             table.insert(influenceKeys, k)
             end
             end
Line 62: Line 60:
          
          
           for k, v in pairs(c.influence) do
           for k, v in pairs(c.influence) do
             if k ~= 'perEach splendour' and k ~= 'tier' then
             if k ~= 'bsplendour' and k ~= 'tier' then
             influence = influence .. i.icon(k, v, nil, k, 'en')
             influence = influence .. i.icon(k, v, nil, k, 'en')
             if k ~= lastKey and itemCount > 1 then
             if k ~= lastKey and itemCount > 1 then
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