Template:Farms csv

From Against the Storm Official Wiki
Revision as of 00:55, 21 November 2023 by Aeredor (talk | contribs) (Created to store data on farming buildings)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This article was last updated during version 0.63.2. The game is now in 1.4.17. 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,
Grove,Forester's Hut,"Uses nearby farm fields to produce  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 produce  Roots, Herbs. Has improved production 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 produce  Vegetables, Grain. Has improved production 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 produce  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 produce  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,
Plantation,Plantation,"Uses nearby farm fields to produce  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 a small number of farm fields nearby to produce  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,,,,,