606
modifications
m Balise : Annulation |
m |
||
| Ligne 172 : | Ligne 172 : | ||
end | end | ||
--/ | --/ | ||
--SECTION- | --SECTION-PREQUISITES | ||
local prereqData = {} | local prereqData = {} | ||
| Ligne 195 : | Ligne 195 : | ||
end | end | ||
--/ | --/ | ||
---SECTION-UNLOCKING | |||
if buildingData.influence then | |||
local unlockData = {} | |||
for resource, amount in pairs(buildingData.influence) do | |||
local resourceIcon = i.icon(resource, nil, nil, com.firstUpper({resource}), 'en') | |||
if buildingData. | table.insert(unlockData, {label = resourceIcon, value = amount}) | ||
local | |||
for | |||
end | end | ||
if # | if #unlockData > 0 then | ||
addSection(infobox, | addSection(infobox, unlockData, 'Unlocking Conditions', 2) | ||
end | end | ||
end | end | ||
| Ligne 220 : | Ligne 217 : | ||
if #constructionData > 0 then | if #constructionData > 0 then | ||
addSection(infobox, constructionData, 'Construction | addSection(infobox, constructionData, 'Construction Resources', 2) | ||
end | end | ||
end | end | ||
modifications