Template:Institutions csv

From Against the Storm Official Wiki
Revision as of 15:01, 4 October 2024 by Aeredor (talk | contribs) (Updated data to 1.4.15)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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. Passive effects: Carnivorous Tradition, 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,,,,
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: Brawling,  Luxury. Passive effects: Public Performances.",City Buildings,4,4,4 [Mat Processed] Fabric,16 [Mat Processed] Bricks,,61,8,False,False,Any,Any,Any,,Bloodthirst,Luxury,,,
Guild House,Guild House,"A place where villagers can fulfill their need for: Luxury,  Education. Passive effects: The Guild's Welfare.",City Buildings,4,3,40 [Mat Processed] Planks,4 [Mat Processed] Fabric,,61,8,False,False,Any,Any,Any,,Luxury,Education,,,
Holy Guild House,Holy Guild House,"A place where villagers can fulfill their need for:  Luxury,  Education. Has an additional effect. 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,Education,,,
Holy Market,Holy Market,"A place where villagers can fulfill their need for:  Leisure,  Treatment. Has an additional effect. Passive effects: Ale and Hearty, Market Carts.",City Buildings,4,4,20 [Mat Processed] Planks,12 [Mat Processed] Fabric,,61,8,False,False,Any,Any,,,Leasiure,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: Leisure,  Treatment. Passive effects: Market Carts.",City Buildings,4,4,20 [Mat Processed] Planks,12 [Mat Processed] Fabric,,61,8,False,False,Any,Any,,,Leasiure,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,  Religion. 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,Religion,,,
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,,,