Template:Collectors csv

From Against the Storm Official Wiki
Revision as of 02:40, 9 October 2024 by Aeredor (talk | contribs) (forgot to change the ids)


Overview

This template stores the CSV data for rain catchers, as provided by the game developers, and manual data entry for geyser pumps and mines.

Examples

You can use this wiki's data templates to retrieve the game data for use in any Lua module on this wiki. A utility module, CsvUtils processes the document for you, giving you just the CSV data, if you need to parse it yourself. Or, the utility module can split it for you into a Lua table.

To do this, you need these two lines in your Lua code:

  1. local CsvUtils = require("Module:CsvUtils")
  2. local luaTable, headerLookup = CsvUtils.extractTables(Template:Collectors csv)

If you need the raw CSV code for some reason, to process it differently, the method extractTables is a shortcut method that calls two methods you can instead call directly: extractCSV and luaTableFromCSV. However, this is not advised.

Data

What follows on the rest of this wiki page is the only content that gets transcluded, the raw data enclosed in a <pre> block:

id,displayName,description,category,sizeX,sizeY,requiredGood1,requiredGood2,requiredGood3,constructionTime,cityScore,movable,initiallyEssential,storage,workplace1,workplace2,workplace3,workplace4,recipe1Good,recipe1Grade,recipe1ProductionTime,recipe2Good,recipe2Grade,recipe2ProductionTime,recipe3Good,recipe3Grade,recipe3ProductionTime
Water Extractor,Geyser Pump,"Used to extract and pump infused rainwater through underground pipes to production buildings, where it can be used to increase productivity. Must be placed on an active geyser. Has a tank capacity of 50.",Resource Gathering,2,2,6 [Mat Processed] Planks,4 [Mat Processed] Pipe,,5,2,FALSE,FALSE,50,Any,Any,,,2 [Water] Drizzle Water,Water T3,7,2 [Water] Clearance Water,Water T3,7,2 [Water] Storm Water,Water T3,7
Mine,Mine,Can only be placed on coal and ore veins. Digs up copper ore and  coal.,Resource Gathering,3,3,2 [Mat Processed] Planks,4 [Mat Processed] Bricks,2 [Mat Processed] Parts,16,5,FALSE,FALSE,10,Any,Any,Any,Any,1 [Crafting] Coal,Coal T2,40,1 [Metal] Copper Ore,Copper Ore T2,40,,,
Advanced Rain Catcher,Advanced Rain Collector,Can collect rainwater used for crafting and powering Rain Engines in production buildings. The type of collected rainwater depends on the season. Has a tank capacity of 100.,Resource Gathering,2,3,5 [Mat Processed] Pipe,3 [Mat Processed] Parts,5 [Mat Processed] Planks,20,0,FALSE,FALSE,100,Any,Any,Any,,4 [Water] Drizzle Water,Water T2,20,4 [Water] Clearance Water,Water T2,20,4 [Water] Storm Water,Water T2,20
Rain Catcher,Rain Collector,Can collect rainwater used for crafting and powering Rain Engines in production buildings. The type of collected rainwater depends on the season. Has a tank capacity of 50.,Resource Gathering,2,2,2 [Mat Processed] Planks,3 [Mat Processed] Parts,,20,0,FALSE,TRUE,50,Any,Any,,,2 [Water] Drizzle Water,Water T2,20,2 [Water] Clearance Water,Water T2,20,2 [Water] Storm Water,Water T2,20