Difference between revisions of "Template:Acquisition"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }}{{#var: name}}s can be {{#switch:{{Q|{{#var: name}}|Type}}|Building=constructed|Mechanoid=gestated|#default=crafted}}{{#if: {{Q|{{#var: name}}|Production Facility 1}}|
+
<includeonly><!--
  {{#if: {{Q|{{#var: name}}|Production Facility 2}}|
+
 
    {{#if: {{Q|{{#var: name}}|Production Facility 3}}|
+
VARIABLES
        {{#vardefine:productionFacilityNumber|3}}|
+
-->{{#vardefine:name     | {{{ 1 | {{PAGENAME}} }}} }}<!--
        {{#vardefine:productionFacilityNumber|2}}
+
-->{{#vardefine:verb      | {{#switch: {{Q|{{#var: name}}|Type}} | Building = constructed | Mechanoid = gestated | #default = crafted}} }}<!--
    }}
+
-->{{#vardefine:prodFac  | {{#if: {{Q|{{#var: name}}|Production Facility 1}} | <nowiki> </nowiki>at a [[{{lc:{{Q|{{#var: name}}|Production Facility 1}} }}]]<!--
  |{{#vardefine:productionFacilityNumber|1}}}}|
+
  -->{{#if: {{Q|{{#var: name}}|Production Facility 3}} | , [[{{lc:{{Q|{{#var: name}}|Production Facility 2}} }}]], or [[{{lc:{{Q|{{#var: name}}|Production Facility 3}} }}]]
  {{#vardefine:productionFacilityNumber|0}}}}{{#switch: {{#var: productionFacilityNumber}}
+
    | {{#if: {{Q|{{#var: name}}|Production Facility 2}} | <nowiki> </nowiki>or [[{{lc:{{Q|{{#var: name}}|Production Facility 2}} }}]] }}
| 0 =
+
}} }} }}<!--
| 1 = <nowiki> </nowiki>at a [[{{Q|{{#var: name}}|Production Facility 1}}]]
+
-->{{#vardefine:tech      | {{lc:{{Q|{{#var:name}}|Required Research}} }} }}<!--
| 2 = <nowiki> </nowiki>at a [[{{Q|{{#var: name}}|Production Facility 1}}]] or [[{{Q|{{#var: name}}|Production Facility 2}}]]
+
-->{{#vardefine:techprint | {{#switch: {{#var:tech}} | Artificial metabolism | Brain wiring | Cataphract armor | Circadian influence | Compact weaponry | Flesh shaping | Healing factors | Jump packs | Molecular analysis | Neural computation | Poison Synthesis | Specialized limbs | Skin hardening = true}} }}<!--
| 3 = <nowiki> </nowiki>at a [[{{Q|{{#var: name}}|Production Facility 1}}]], [[{{Q|{{#var: name}}|Production Facility 2}}]], or [[{{Q|{{#var: name}}|Production Facility 3}}]]
+
-->{{#vardefine: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 | #default = {{Q|{{#var:name}}|Gestation Cycles}} [[gestation cycle]]s taking {{Ticks|1800}} each to initiate}} }}<!--
}}{{#if:{{Q|{{#var: name}}|Required Research}}|<nowiki> </nowiki>once the [[Research#{{Q|{{#var: name}}|Required Research}}|{{Q|{{#var: name}}|Required Research}}]] research project has been completed. {{#switch: {{Q|{{#var: name}}|Required Research}}| Artificial metabolism| Brain wiring| Cataphract armor| 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]].}}}}{{#if:{{Q|{{#var: name}}|Required Research}}|<nowiki> </nowiki>Each requires|, each requiring}} {{Required Resources|{{#var: name}} }}{{#if: {{Q|{{#var: name}}|Skill 1}}|,|<nowiki> </nowiki>and}} {{#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|#default={{Q|{{#var: name}}|Gestation Cycles}} [[gestation cycle]]s taking {{ticks|1800}} each to initiate}}{{#if: {{Q|{{#var: name}}|Skill 1}}|, and a [[{{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. --></includeonly><noinclude>{{Documentation}}</noinclude>
+
 
 +
TEXT
 +
-->{{#var:name}}s can be {{#var:verb}}{{#var:prodFac}}{{#if:{{#var:tech}}|<nowiki> </nowiki>once the [[Research#{{#var:tech}}|{{#var:tech}}]] research project has been completed. {{#if: {{#var:techprint}} | Note that this research requires a [[techprint]].}} }}{{#if:{{#var:tech}}|<nowiki> </nowiki>Each requires|, each requiring}} {{Required Resources|{{#var: name}} }}{{#if: {{Q|{{#var:name}}|Skill 1}}|,|<nowiki> </nowiki>and}} {{#var:gestation}}{{#if: {{Q|{{#var: name}}|Skill 1}}|, and a [[{{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. --></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 00:26, 4 December 2023

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
    • If it requires a mech commander chipCheck.png(hardcoded list)
      • Which?Check.png(hardcoded list)
    • If is Anomaly research Check.png (hardcoded list)
    • 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.

Stool

Stools can be constructed, each requiring Stuff 25 Stuff (Metallic/Woody/Stony, 250 for SMVs) and 450 ticks (7.5 secs) of work.

Cataphract armor

Cataphract armors can be crafted at a fabrication bench once the cataphract armor research project has been completed. 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.

Incinerator

Incinerators can be crafted at a bioferrite shaper once the bioferrite weaponry research project has been completed. Each requires Steel 75 Steel, Component 6 Components, Bioferrite 30 Bioferrite and 48,000 ticks (13.33 mins) of work.

Bandwidth pack

Bandwidth packs can be crafted at a machining table once the standard mechtech research project has been completed. Each requires Steel 50 Steel, Component 8 Components, Signal chip 2 Signal chips, 3,200 ticks (53.33 secs) of work, and a Crafting skill of 4.

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.

Totemic stone tile

Totemic stone tiles can be crafted once the stonecutting research project has been completed. Each requires Stuff 20 Stuff (Stony), 5,000 ticks (1.39 mins) of work, and a Construction skill of 6.

Berserk pulse

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