Difference between revisions of "Template:Acquisition"

From RimWorld Wiki
Jump to navigation Jump to search
(Adding anomaly research note)
Line 16: Line 16:
 
-->{{#vardefine:tech2          | {{#explode:{{#var:tech}}|,|1}} }}<!--
 
-->{{#vardefine:tech2          | {{#explode:{{#var:tech}}|,|1}} }}<!--
 
-->{{#vardefine:tech3          | {{#explode:{{#var:tech}}|,|2}} }}<!--
 
-->{{#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:extraResearchRequirementNote | {{#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.| {{#if: {{#pos:Bioferrite harvesting, Bioferrite shaping, Bioferrite weaponry, Bioferrite generator, Void sculptures, Insanity weaponry, Mutation weaponry, Atmospheric heater, Frenzy inducer, Sleep suppressor, Entity containment, Electroharvester, Disruptor flares, Proximity detector, Void provocation, Draw animals, Draw shamblers, Chronophagy, Psychophagy, Skip abduction, Summon fleshbeasts, Advanced psychic rituals, Provoke pit gate, Death refusal, Philophagy, Pleasure pulse, Neurosis pulse, Blood rain, Brainwipe, Serum synthesis, Metalblood serum, Mind-numb serum, Juggernaut serum, Bliss lobotomy, Ghoul infusion, Ghoul enhancements, Ghoul resurrection, Deadlife dust, Revenant invisibility}}| {{#var:tech}} }} | Note that this research requires [[Research#Anomaly|dark study]] to unlock.}} }}<!--
 
-->{{#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 modified by the {{#switch: {{#var:verb}} | constructed = [[construction speed]] of the builder | crafted = [[{{Q|{{#var:name}}|Work Speed Stat|General Labor Speed}}|{{lc:{{Q|{{#var:name}}|Work Speed Stat|general labor speed}} }}]] of the crafter}}{{#ifeq:{{Q|{{#var:name}}|Resource 1}}|Stuff|<nowiki></nowiki> and the {{#switch: {{#var:verb}} | constructed = [[Property:Work To Build Factor|work to build factor]] and [[Property:Work To Build Offset|offset]] | crafted = [[Property:Work To Make Factor|work to make factor]]}} of 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 modified by the {{#switch: {{#var:verb}} | constructed = [[construction speed]] of the builder | crafted = [[{{Q|{{#var:name}}|Work Speed Stat|General Labor Speed}}|{{lc:{{Q|{{#var:name}}|Work Speed Stat|general labor speed}} }}]] of the crafter}}{{#ifeq:{{Q|{{#var:name}}|Resource 1}}|Stuff|<nowiki></nowiki> and the {{#switch: {{#var:verb}} | constructed = [[Property:Work To Build Factor|work to build factor]] and [[Property:Work To Build Offset|offset]] | crafted = [[Property:Work To Make Factor|work to make factor]]}} of 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: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>
+
-->{{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:extraResearchRequirementNote}} 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.}}<!--NOT ALL TRADE TAGGED THINGS ARE PURCHASABLE {{#if: {{Q|{{#var:name}}|TradeTags}} | <nowiki> </nowiki>
 
Once constructed, they cannot be re-installed, they can only be deconstructed.}}<!--NOT ALL TRADE TAGGED THINGS ARE PURCHASABLE {{#if: {{Q|{{#var:name}}|TradeTags}} | <nowiki> </nowiki>
  
 
{{Plural||{{#var:name}} }} can also be bought from [[traders]].}}-->}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
{{Plural||{{#var:name}} }} can also be bought from [[traders]].}}-->}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 09:48, 30 April 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

{{#ifeq:Gear|Psycast|There are two ways to acquire Flak vest:

  1. A randomly selected level psycast is granted to the psycaster when they gain psylink level . Flak vest is one of the options that may be selected. Note that this occurs regardless of how the psylink level is gained.
  2. Flak vest can also be acquired from a psytrainer naming it. See the psytrainer page for further details.

|

Machining table

{{#ifeq:Building|Psycast|There are two ways to acquire Machining table:

  1. A randomly selected level psycast is granted to the psycaster when they gain psylink level . Machining table is one of the options that may be selected. Note that this occurs regardless of how the psylink level is gained.
  2. Machining table can also be acquired from a psytrainer naming it. See the psytrainer page for further details.

|

War mask

{{#ifeq:Gear|Psycast|There are two ways to acquire War mask:

  1. A randomly selected level psycast is granted to the psycaster when they gain psylink level . War mask is one of the options that may be selected. Note that this occurs regardless of how the psylink level is gained.
  2. War mask can also be acquired from a psytrainer naming it. See the psytrainer page for further details.

|

Stool

{{#ifeq:Building|Psycast|There are two ways to acquire Stool:

  1. A randomly selected level psycast is granted to the psycaster when they gain psylink level . Stool is one of the options that may be selected. Note that this occurs regardless of how the psylink level is gained.
  2. Stool can also be acquired from a psytrainer naming it. See the psytrainer page for further details.

|

Cataphract armor

{{#ifeq:Gear|Psycast|There are two ways to acquire Cataphract armor:

  1. A randomly selected level psycast is granted to the psycaster when they gain psylink level . Cataphract armor is one of the options that may be selected. Note that this occurs regardless of how the psylink level is gained.
  2. Cataphract armor can also be acquired from a psytrainer naming it. See the psytrainer page for further details.

|

Centurion

{{#ifeq:Mechanoid|Psycast|There are two ways to acquire Centurion:

  1. A randomly selected level psycast is granted to the psycaster when they gain psylink level . Centurion is one of the options that may be selected. Note that this occurs regardless of how the psylink level is gained.
  2. Centurion can also be acquired from a psytrainer naming it. See the psytrainer page for further details.

|

Berserk pulse

{{#ifeq:Psycast|Psycast|There are two ways to acquire Berserk pulse:

  1. A randomly selected level 6 psycast is granted to the psycaster when they gain psylink level 6. Berserk pulse is one of the options that may be selected. Note that this occurs regardless of how the psylink level is gained.
  2. Berserk pulse can also be acquired from a psytrainer naming it. See the psytrainer page for further details.

|