Template:Institutions csv

From Against the Storm Official Wiki
Revision as of 18:39, 20 November 2023 by Aeredor (talk | contribs) (Created to store data on service 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 services-providing 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:Institutions 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,workplace1,workplace2,workplace3,workplace4,recipe1,recipe2,recipe3,recipe4,
Bath House,Bath House,"A place where villagers can fulfill their need for: Treatment. Passive effects: Regular Baths, Good Health.",City Buildings,4,3,10 [Mat Processed] Planks,8 [Mat Processed] Bricks,8 [Mat Processed] Fabric,61,8,False,False,Any,Any,Any,,Treatment,,,,
Clan Hall,Clan Hall,"A place where villagers can fulfill their need for: Brawling,  Religion. Passive effects: Ancient Ways.",City Buildings,4,3,20 [Mat Processed] Planks,8 [Mat Processed] Bricks,4 [Mat Processed] Fabric,61,8,False,False,Any,Any,Any,,Bloodthirst,Religion,,,
Explorers Lodge,Explorers' Lodge,"A place where villagers can fulfill their need for: Brawling,  Education. Passive effects: The Crown Chronicles.",City Buildings,3,3,20 [Mat Processed] Planks,4 [Mat Processed] Bricks,8 [Mat Processed] Fabric,61,8,False,False,Any,Any,Any,,Bloodthirst,Education,,,
Forum,Forum,"A place where villagers can fulfill their need for: Leisure,  Education. Passive effects: Public Lectures.",City Buildings,4,4,4 [Mat Processed] Fabric,16 [Mat Processed] Bricks,,61,8,False,False,Any,Any,Any,,Leasiure,Education,,,
Guild House,Guild House,"A place where villagers can fulfill their need for: Luxury. Passive effects: Guild House, The Guild's Welfare.",City Buildings,4,3,40 [Mat Processed] Planks,4 [Mat Processed] Fabric,,61,8,False,False,Any,Any,Any,,Luxury,,,,
Holy Market,Holy Market,"A place where villagers can fulfill their need for:  Luxury,  Treatment. Has an additional effect. Passive effects: Land of Luxury, Market Carts.",City Buildings,4,4,20 [Mat Processed] Planks,12 [Mat Processed] Fabric,,61,8,False,False,Any,Any,,,Luxury,Treatment,,,
Holy Temple,Holy Temple,"A place where villagers can fulfill their need for:  Religion,  Education. Has an additional effect. Passive effects: Sacrament of the Flame, Consecrated Scrolls.",City Buildings,3,3,10 [Mat Processed] Planks,8 [Mat Processed] Bricks,8 [Mat Processed] Fabric,61,8,False,False,Any,Any,Any,,Religion,Education,,,
Market,Market,"A place where villagers can fulfill their need for: Luxury,  Treatment. Passive effects: Market Carts.",City Buildings,4,4,20 [Mat Processed] Planks,12 [Mat Processed] Fabric,,61,8,False,False,Any,Any,,,Luxury,Treatment,,,
Monastery,Monastery,"A place where villagers can fulfill their need for: Religion,  Leisure. Passive effects: The Green Brew.",City Buildings,3,3,20 [Mat Processed] Bricks,,,61,8,False,False,Any,Any,Any,,Religion,Leasiure,,,
Tavern,Tavern,"A place where villagers can fulfill their need for: Leisure,  Luxury. Passive effects: Gleeman's Tales.",City Buildings,3,3,20 [Mat Processed] Planks,4 [Mat Processed] Bricks,8 [Mat Processed] Fabric,61,8,False,False,Any,Any,Any,,Leasiure,Luxury,,,
Tea Doctor,Tea Doctor,"A place where villagers can fulfill their need for: Treatment,  Brawling. Passive effects: Vitality.",City Buildings,4,3,10 [Mat Processed] Planks,8 [Mat Processed] Bricks,8 [Mat Processed] Fabric,61,8,False,False,Any,Any,Any,,Treatment,Bloodthirst,,,
Temple,Temple,"A place where villagers can fulfill their need for: Religion,  Education. Passive effects: Sacrament of the Flame.",City Buildings,3,3,10 [Mat Processed] Planks,8 [Mat Processed] Bricks,8 [Mat Processed] Fabric,61,8,False,False,Any,Any,Any,,Religion,Education,,,