Template:Farms csv

From Against the Storm Official Wiki

This article was last updated during version 1.4.15. The game is now in 1.6.2. Some information may be out of date. Help us keep the wiki up to date by comparing this article against the patch notes and updating it.

Overview

This template stores the CSV data for farming buildings as provided by the game developers.

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:Farms 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,area,storage,workplace1,workplace2,workplace3,workplace4,recipe1Good,recipe1Grade,recipe1PlantingTime,recipe1HarvestTime,recipe2Good,recipe2Grade,recipe2PlantingTime,recipe2HarvestTime,recipe3Good,recipe3Grade,recipe3PlantingTime,recipe3HarvestTime,recipe4Good,recipe4Grade,recipe4PlantingTime,recipe4HarvestTime,
Grove,Forester's Hut,"Uses nearby farm fields to grow  Resin, Crystalized Dew.",Food Production,2,2,2 [Mat Processed] Planks,,,20,2,True,False,3,20,Any,Any,Any,Any,6 [Mat Raw] Resin,Grade2,30,30,3 [Metal] Crystalized Dew,Grade2,60,60,,,,,,,,,
Hallowed Herb Garden,Hallowed Herb Garden,"Uses nearby farm fields to grow  Roots, Herbs. Has improved efficiency and more worker slots.",Food Production,2,2,2 [Mat Processed] Planks,,,20,2,True,False,3,20,Any,Any,Any,,9 [Food Raw] Roots,Grade3,30,30,9 [Food Raw] Herbs,Grade3,30,30,,,,,,,,,
Hallowed SmallFarm,Hallowed Small Farm,"Uses nearby farm fields to grow  Vegetables, Grain. Has improved efficiency and more worker slots.",Food Production,2,2,2 [Mat Processed] Planks,,,20,3,True,False,3,20,Any,Any,Any,,9 [Food Raw] Vegetables,Grade3,30,30,9 [Food Raw] Grain,Grade3,30,30,,,,,,,,,
Herb Garden,Herb Garden,"Uses nearby farm fields to grow  Roots, Herbs.",Food Production,2,2,2 [Mat Processed] Planks,,,20,2,True,False,3,20,Any,Any,,,3 [Food Raw] Roots,Grade1,30,30,6 [Food Raw] Herbs,Grade2,30,30,,,,,,,,,
Homestead,Homestead,"Uses a large area of nearby farm fields to grow  Grain, Plant Fiber, Vegetables, Mushrooms.",Food Production,3,3,5 [Mat Processed] Planks,2 [Mat Processed] Bricks,2 [Mat Processed] Fabric,50,10,True,False,10,40,Any,Any,Any,Any,9 [Food Raw] Grain,Grade3,30,30,9 [Mat Raw] Plant Fibre,Grade3,30,30,6 [Food Raw] Vegetables,Grade2,30,30,6 [Food Raw] Mushrooms,Grade2,30,30,
Plantation,Plantation,"Uses nearby farm fields to grow  Berries, Plant Fiber.",Food Production,2,2,2 [Mat Processed] Planks,,,20,2,True,False,3,20,Any,Any,,,6 [Food Raw] Berries,Grade2,30,30,6 [Mat Raw] Plant Fibre,Grade2,30,30,,,,,,,,,
SmallFarm,Small Farm,"Uses nearby farm fields to grow  Vegetables, Grain.",Food Production,2,2,2 [Mat Processed] Planks,,,20,3,True,False,3,20,Any,Any,,,3 [Food Raw] Vegetables,Grade1,30,30,6 [Food Raw] Grain,Grade2,30,30,,,,,,,,,