Difference between revisions of "Template:Acquisition"

From RimWorld Wiki
Jump to navigation Jump to search
m
(added support for up to 3 Required Research projects. So afaik the maximum is 2 at the moment)
Line 9: Line 9:
 
}} }} }}<!--
 
}} }} }}<!--
 
-->{{#vardefine:tech          | {{Q|{{#var:name}}|Required Research}} }}<!--
 
-->{{#vardefine:tech          | {{Q|{{#var:name}}|Required Research}} }}<!--
-->{{#vardefine:techprintNote  | {{#switch: {{#var:tech}} | Artificial metabolism | Brain wiring | Circadian influence | Compact weaponry | flesh shaping | healing factors | Jump packs | Molecular analysis | Neural computation | Poison synthesis | Specialized limbs | Skin hardening = Note that this research requires a [[techprint]]. | Cataphract armor = Note that this research requires two [[techprint]]s.}} }}<!--
+
-->{{#vardefine:tech1          | {{#explode:{{#var:tech}}|,|0}} }}<!--
 +
-->{{#vardefine:tech2          | {{#explode:{{#var:tech}}|,|1}} }}<!--
 +
-->{{#vardefine:tech3          | {{#explode:{{#var:tech}}|,|2}} }}<!--
 +
-->{{#vardefine:techprintNote  | {{#if: {{#pos:Artificial metabolism, Brain wiring, Circadian influence, Compact weaponry, Flesh shaping, Healing factors, Jump packs, Molecular analysis, Neural computation, Poison synthesis, Specialized limbs, Skin hardening | {{#var:tech}} }} | Note that this research requires a [[techprint]]. | {{#if: {{#pos:Cataphract armor | {{#var:tech}} }} | Note that this research requires two [[techprint]]s.}} }} }}<!--
 
-->{{#vardefine:work/gestation | {{#switch: {{#expr:{{Q|{{#var:name}}|Gestation Cycles}}-1}} | 0 = 1 [[gestation cycle]] taking {{Ticks|1800}} to initiate | -1 = {{Ticks|{{Q|{{#var:name}}|Work To Make}} }} of work {{#ifeq:{{Q|{{#var:name}}|Resource 1}}|Stuff|(depending on the material)}} | #default = {{Q|{{#var:name}}|Gestation Cycles}} [[gestation cycle]]s taking {{Ticks|1800}} each to initiate}} }}<!--
 
-->{{#vardefine:work/gestation | {{#switch: {{#expr:{{Q|{{#var:name}}|Gestation Cycles}}-1}} | 0 = 1 [[gestation cycle]] taking {{Ticks|1800}} to initiate | -1 = {{Ticks|{{Q|{{#var:name}}|Work To Make}} }} of work {{#ifeq:{{Q|{{#var:name}}|Resource 1}}|Stuff|(depending on the material)}} | #default = {{Q|{{#var:name}}|Gestation Cycles}} [[gestation cycle]]s taking {{Ticks|1800}} each to initiate}} }}<!--
  
 
TEXT
 
TEXT
-->{{Plural||{{#var:name}} }} can be {{#var:verb}}{{#var:prodFac}}{{#if:{{#var:tech}}|<nowiki> </nowiki>once the [[Research#{{#var:tech}}|{{lc:{{#var:tech}} }}]] research project has been completed. {{#var:techprintNote}} Each requires|, each requiring}} {{Required Resources|{{#var:name}} }}{{#if: {{Q|{{#var:name}}|Skill 1}}|,|<nowiki> </nowiki>and}} {{#var:work/gestation}}{{#if: {{Q|{{#var:name}}|Skill 1}}|, and a [[{{lc:{{Q|{{#var:name}}|Skill 1}} }}]] skill of {{Q|{{#var:name}}|Skill 1 Level}} }}. {{#if:{{Q|{{#var:name}}|Bandwidth}}| They take up {{Q|{{#var:name}}|Bandwidth}} [[bandwidth]] from their linked mechanitor.}}<!--Sleep accelerators can only be constructed by colonist with an [[Ideoligion]] containing the [[Ideoligion#Transhumanist|Transhumanist]] meme. -->{{#ifeq: {{Q|{{#var:name}}|Minifiable}} | false | <nowiki> </nowiki>
+
-->{{Plural||{{#var:name}} }} can be {{#var:verb}}{{#var:prodFac}}{{#if:{{#var:tech1}}|<nowiki> </nowiki>once the [[Research#{{#var:tech1}}|{{lc:{{#var:tech1}} }}]]{{#if: {{#var:tech3}} | , [[Research#{{#var:tech3}}|{{lc:{{#var:tech3}} }}]]}}{{#if: {{#var:tech2}} | <nowiki> </nowiki>and [[Research#{{#var:tech2}}|{{lc:{{#var:tech2}} }}]]}} research {{#if: {{#var:tech2}} | projects have | project has}} been completed. {{#var:techprintNote}} Each requires|, each requiring}} {{Required Resources|{{#var:name}} }}{{#if: {{Q|{{#var:name}}|Skill 1}}|,|<nowiki> </nowiki>and}} {{#var:work/gestation}}{{#if: {{Q|{{#var:name}}|Skill 1}}|, and a [[{{lc:{{Q|{{#var:name}}|Skill 1}} }}]] skill of {{Q|{{#var:name}}|Skill 1 Level}} }}. {{#if:{{Q|{{#var:name}}|Bandwidth}}| They take up {{Q|{{#var:name}}|Bandwidth}} [[bandwidth]] from their linked mechanitor.}}<!--Sleep accelerators can only be constructed by colonist with an [[Ideoligion]] containing the [[Ideoligion#Transhumanist|Transhumanist]] meme. -->{{#ifeq: {{Q|{{#var:name}}|Minifiable}} | false | <nowiki> </nowiki>
  
 
Once constructed, they cannot be re-installed, they can only be deconstructed.}}{{#if: {{Q|{{#var:name}}|TradeTags}} | <nowiki> </nowiki>
 
Once constructed, they cannot be re-installed, they can only be deconstructed.}}{{#if: {{Q|{{#var:name}}|TradeTags}} | <nowiki> </nowiki>

Revision as of 22:56, 10 January 2024

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Goal is to be able to automate the initial paragraph of acquisition. Not finished.

  1. Whether it can be build or crafted. Check.png
    • Handle things that can be mined Ex.png
    • Handle things that can't be made by the player Ex.png
  2. Workbench/es Check.png
  3. Research Check.png
    • Up to three Check.png
    • Techprint Check.png (hardcoded list)
      • Number of techprints Check.png (hardcoded list)
  4. Required resources Check.png
  5. Crafting time Check.png
  6. Minimum skill Check.png
  7. Gestation cycles Check.png
  8. Ideoligion requirements Ex.png (requires infobox update)
  9. Note when it can't be minified. Check.png
  10. Whether it can be bought from traders. Check.png/Ex.png (a lot of pages are missing the Property:TradeTags though, and not every thing with TradeTags is actually purchasable)
    • Which traders it can be bought from Ex.png
  • Mech resurrection? Ex.png?

Examples

Flak vest

Flak vests can be crafted at a machining table once the flak armor research project has been completed. Each requires Steel 60 Steel, Cloth 30 Cloth, Component 1 Component, 9,000 ticks (2.5 mins) of work, and a crafting skill of 4.

Machining table

Machining tables can be constructed once the machining research project has been completed. Each requires Steel 150 Steel, Component 5 Components, 3,000 ticks (50 secs) of work, and a construction skill of 4.

War mask

War masks can be crafted at a crafting spot, hand tailor bench, or electric tailor bench, each requiring Stuff 25 Stuff (Woody) and 3,000 ticks (50 secs) of work (depending on the material).

War masks can also be bought from traders.

Stool

Stools can be constructed, each requiring Stuff 25 Stuff (Metallic/Woody/Stony) and 450 ticks (7.5 secs) of work (depending on the material).

Cataphract armor

Cataphract armors can be crafted at a fabrication bench once the cataphract armor research project has been completed. Note that this research requires two techprints. Each requires Plasteel 150 Plasteel, Uranium 50 Uranium, Advanced component 6 Advanced components, 75,000 ticks (20.83 mins) of work, and a crafting skill of 8.

Cataphract armors can also be bought from traders.

Centurion

Centurions can be gestated at a large mech gestator once the ultra mechtech research project has been completed. Each requires Steel 300 Steel, Plasteel 200 Plasteel, Advanced component 2 Advanced components, Powerfocus chip 1 Powerfocus chip, High subcore 1 High subcore and 12 gestation cycles taking 1,800 ticks (30 secs) each to initiate. They take up 5 bandwidth from their linked mechanitor.

Berserk pulse

Berserk pulses can be crafted, each requiring and Expression error: Unexpected < operator. of work.