Différences entre les versions de « Module:OInfobox-Building »

Aller à la navigation Aller à la recherche
374 octets ajoutés ,  19 avril 2025 à 11:18
m
aucun résumé de modification
m
m
Ligne 206 : Ligne 206 :
                 end
                 end
                 local resourceIcon = i.icon(resource, nil, nil, com.firstUpper({resource}), 'en')
                 local resourceIcon = i.icon(resource, nil, nil, com.firstUpper({resource}), 'en')
table.insert(unlockData, {label = resourceIcon, value = "(" .. displayAmount .. ")"})
local tierPosition = string.find(displayAmount, "tier", nil, true) -- Find the last occurrence of "tier"
            end
if tierPosition then
  local beforeTier = string.sub(displayAmount, 1, tierPosition - 1)
  local theTier = string.sub(displayAmount, tierPosition)
  table.insert(unlockData, {label = resourceIcon, value = beforeTier .. "(" .. theTier .. ")"})
else
  table.insert(unlockData, {label = resourceIcon, value = displayAmount})
end
end


             if #unlockData > 0 then
             if #unlockData > 0 then
606

modifications

Menu de navigation