Module:Maps
Appearance
Documentation for this module may be created at Module:Maps/doc
local module = {}
module.maps = {
["Coal Valley"] = {
industries = {
-- TODO: update these to use the actual industry count
["Farm"] = 1,
["Forest Camp"] = 1,
["Distillery"] = 1,
["Lumber Mill"] = 1,
["Slaughterhouse"] = 1,
["Iron Mine"] = 1,
["Quarry"] = 1,
["Tannery"] = 1,
["Copper Mine"] = 1,
["Smelter"] = 1,
["Coal Mine"] = 1,
["Copper Works"] = 1,
["Machine Shop"] = 1,
}
},
["Badlands"] = {
industries = {
["Ranch"] = 1,
["Cactus Camp"] = 1,
["Lumber Mill"] = 1,
["Slaughterhouse"] = 1,
["Gold Mine"] = 1,
["Iron Mine"] = 1,
["Quarry"] = 1,
["Tannery"] = 1,
["Copper Mine"] = 1,
["Iron Works"] = 1,
["Gold Smith"] = 1,
["Coal Mine"] = 1,
["Copper Works"] = 1,
["Machine Shop"] = 1,
["Oil Well"] = 1,
["Oil Refinery"] = 1,
}
},
["Gold Rush"] = {
industries = {
["Ranch"] = 1,
["Cactus Camp"] = 1,
["Lumber Mill"] = 1,
["Slaughterhouse"] = 1,
["Gold Mine"] = 1,
["Iron Mine"] = 1,
["Quarry"] = 1,
["Tannery"] = 1,
["Copper Mine"] = 1,
["Gold Smith"] = 1,
["Smeltery"] = 1,
["Copper Works"] = 1,
["Coal Mine"] = 1,
["Machine Shop"] = 1,
["Oil Well"] = 1,
["Oil Refinery"] = 1,
}
},
["Scarlet Heights"] = {
industries = {}
},
["Maple Ridge"] = {
industries = {
["Farm"] = 1,
["Forest Camp"] = 1,
["Lumber Mill"] = 1,
["Distillery"] = 1,
["Slaughterhouse"] = 1,
["Bauxite Mine"] = 1,
["Iron Mine"] = 1,
["Quarry"] = 1,
["Tannery"] = 1,
["Aluminium Plant"] = 1,
["Iron Works"] = 1,
["Coal Mine"] = 1,
["Machine Shop"] = 1,
}
},
["Stormy Coast"] = {
industries = {
["Fishery"] = 2,
["Forest Camp"] = 2,
["Farm"] = 2,
["Clay Pit"] = 1,
["Sand Bar"] = 1,
["Brickworks"] = 1,
["Food Factory"] = 1,
["Bauxite Mine"] = 2,
["Lumber Mill"] = 2,
["Quarry"] = 1,
["Distillery"] = 1,
["Iron Mine"] = 1,
["Coal Mine"] = 3,
["Aluminium Plant"] = 1,
["Slaughterhouse"] = 1,
["Tannery"] = 1,
["Shipyard"] = 1,
["Machine Shop"] = 1,
}
},
["Misty Summit"] = {
industries = {}
},
["Hazel Sierra"] = {
industries = {
["Forest Camp"] = 3,
["Farm"] = 3,
["Clay Pit"] = 1,
["Water Pumping Station"] = 1,
["Distillery"] = 1,
["Lumber Mill"] = 3,
["Food Factory"] = 3,
["Slaughterhouse"] = 2,
["Tannery"] = 1,
["Quarry"] = 2,
["Iron Mine"] = 2,
["Copper Mine"] = 2,
["Coal Mine"] = 1,
["Copper Works"] = 2,
["Smelter"] = 2,
["Machine Shop"] = 2,
["Brickworks"] = 1,
["Pulp Mill"] = 1,
["Paper Mill"] = 1,
}
},
}
function module.getMapCount()
-- we cant use getn or # because its the keys arent integers
local mapcount = 0
for _ in pairs(module.maps) do
mapcount = mapcount + 1
end
return tostring(mapcount)
end
return module