Module:BuildingData
From Corsair Cove Official Wiki
This module provides data for all buildings in the game to be used by other modules.
It provides information in a nested data structure in the lua format. You can change building data and add new buildings by copy-pasting existing buildings and modifying the data appropiately. Please note that any text should be enclosed inside "" and any numeric values should not be enclosed in "" (to match the native lua format for strings and integers).
This Module is used in:
- Module:BuildingTable
- Module:BuildingInfoboxGenerator
- Template:Building
- Template:Building infobox
- Template:Building icon
return {
ExampleBuilding = {
name = "Example Building",
building_icon_filename = "",
category = "",
theme = "",
description = "",
-- Unlocking
unlocked_by_1 = "",
unlocked_by_2 = "",
unlocked_by_3 = "",
-- Housing
housing = 0,
-- Workers
hands_builders = 0,
hands_fetchers = 0,
hands_masterhands = 0,
-- Worker upkeep
hands_upkeep_1 = "",
hands_upkeep_1_qty = 0,
hands_upkeep_2 = "",
hands_upkeep_2_qty = 0,
hands_upkeep_3 = "",
hands_upkeep_3_qty = 0,
-- Construction
construction = {
{ resource = "", qty = 0 },
{ resource = "", qty = 0 },
{ resource = "", qty = 0 },
-- { resource = "", qty = 0 },
-- { resource = "", qty = 0 },
-- { resource = "", qty = 0 },
},
construction_requires_fertile_area = true,
-- Production
production_input= {
{ resource = "", qty = 0 },
{ resource = "", qty = 0 },
},
production_output = "",
production_output_qty = 0,
production_base_per_min = 0,
production_booster_1 = "",
production_booster_2 = "",
production_output_storage = 0,
-- Community upkeep
community_upkeep_1 = "",
community_upkeep_1_qty = 0,
community_upkeep_2 = "",
community_upkeep_2_qty = 0,
community_upkeep_3 = "",
community_upkeep_3_qty = 0,
community_upkeep_4 = "",
community_upkeep_4_qty = 0,
},
}


