Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Steam & Steel
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Maps
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
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
Summary:
Please note that all contributions to Steam & Steel are considered to be released under the Creative Commons Attribution (see
SteamAndSteel:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Page included on this page:
Module:Maps/doc
(
edit
)
Search
Search
Editing
Module:Maps
Add topic