Difference between revisions of "Module:OInfobox-Building"

Jump to navigation Jump to search
m
no edit summary
m
m
Tag: Undo
Line 237: Line 237:
         end
         end
         --/
         --/
                --SECTION-RUNNING-COSTS
        --SECTION-RUNNING-COSTS
         local costData = {}
         local costData = {}


         if buildingData.costs then
         if buildingData.maintenance then
             local maintenanceLabel = i.icon('maintenance cost', nil, nil, 'Maintenance Cost', 'en')
             local maintenanceLabel = i.icon('maintenance cost', nil, nil, 'Maintenance Cost', 'en')
             table.insert(costData, {label = maintenanceLabel, value = buildingData.costs})
             table.insert(costData, {label = maintenanceLabel, value = buildingData.maintenance})
        end
 
        if buildingData.tax then
            local taxLabel = i.icon('coin', nil, nil, 'Tax', 'en')
            table.insert(costData, {label = taxLabel, value = buildingData.tax})
         end
         end


606

edits

Navigation menu