Difference between revisions of "Template:Infobox weapon"

From RimWorld Wiki
Jump to navigation Jump to search
(After many revisions, finally time to upload it)
 
 
(3 intermediate revisions by the same user not shown)
Line 111: Line 111:
 
| weapontags        = {{{weapontags|}}}
 
| weapontags        = {{{weapontags|}}}
 
| tradetags          = {{{tradetags|}}}
 
| tradetags          = {{{tradetags|}}}
 +
<!-- Technical -->
 +
| graphicaltexpath  = {{{graphicaltexpath|}}}
 +
| soundeffect        = {{{soundeffect|}}}
 
}}<!-- }}don't forget me! --><!--
 
}}<!-- }}don't forget me! --><!--
 
     ===  #vardefine to use variables outside the infobox  ===
 
     ===  #vardefine to use variables outside the infobox  ===
Line 142: Line 145:
 
{{#if: {{{maxhitpoints|}}} | {{!}} <div>Hit points</div> {{!!}} {{{maxhitpoints}}} HP }}
 
{{#if: {{{maxhitpoints|}}} | {{!}} <div>Hit points</div> {{!!}} {{{maxhitpoints}}} HP }}
 
|-
 
|-
{{#if: {{{deteriorationrate|}}} | {{!}} <div>Deterioration</div> {{!!}} {{{deteriorationrate}}}/day}}
+
{{#if: {{{deteriorationrate|}}} | {{!}} <div>Deterioration</div> {{!!}} {{{deteriorationrate}}} HP/day}}
 
|-
 
|-
 
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{#expr:{{{flammability}}}*100}}% }}
 
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{#expr:{{{flammability}}}*100}}% }}
Line 165: Line 168:
 
{{#if: {{{burstshotcount|}}} | {{!}} <div>Projectiles</div> {{!!}} {{{burstshotcount}}} per burst }}
 
{{#if: {{{burstshotcount|}}} | {{!}} <div>Projectiles</div> {{!!}} {{{burstshotcount}}} per burst }}
 
|-
 
|-
{{#if: {{{burstshotinterval|}}} | {{!}} <div>Interval</div> {{!!}} {{#expr:{{{burstshotinterval}}}/60 round 3}} secs between projectiles }}
+
{{#if: {{{burstshotinterval|}}} | {{!}} <div>Interval</div> {{!!}} {{#expr:{{{burstshotinterval}}}/60 round 2}} seconds ({{#expr:3600/{{{burstshotinterval}}} round 0 }} rpm) }}
 
|-
 
|-
{{#if: {{{movespeedoffset|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeedoffset}}} tiles/sec }}
+
{{#if: {{{movespeedoffset|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeedoffset}}} tiles/second }}
 
|-
 
|-
 
{{#if: {{{forcedmissradius|}}} | {{!}} <div>Miss radius</div> {{!!}} {{{forcedmissradius}}} tiles }}
 
{{#if: {{{forcedmissradius|}}} | {{!}} <div>Miss radius</div> {{!!}} {{{forcedmissradius}}} tiles }}
Line 182: Line 185:
 
{{#if: {{{armorpenetration|}}} | {{!}} <div>Armor penetration</div> {{!!}} {{#expr:{{{armorpenetration}}}*100}}% }}
 
{{#if: {{{armorpenetration|}}} | {{!}} <div>Armor penetration</div> {{!!}} {{#expr:{{{armorpenetration}}}*100}}% }}
 
|-
 
|-
{{#if: {{{speed|}}} | {{!}} <div>Speed</div> {{!!}} {{{speed}}} tiles/sec}}
+
{{#if: {{{speed|}}} | {{!}} <div>Speed</div> {{!!}} {{{speed}}} tiles/second}}
 
|-
 
|-
 
{{#if: {{{explosionradius|}}} | {{!}} <div>Explosion radius</div> {{!!}} {{{explosionradius}}} tiles }}
 
{{#if: {{{explosionradius|}}} | {{!}} <div>Explosion radius</div> {{!!}} {{{explosionradius}}} tiles }}
Line 197: Line 200:
 
{{#if: {{{workspeedstat|}}} | {{!}} <div>Workspeed stat</div> {{!!}} {{{workspeedstat}}} }}
 
{{#if: {{{workspeedstat|}}} | {{!}} <div>Workspeed stat</div> {{!!}} {{{workspeedstat}}} }}
 
|-
 
|-
{{#if: {{{crafting_req|}}} | {{!}} <div>Crafting skill</div> {{!!}} {{{crafting_req}}} required }}
+
{{#if: {{{crafting_req|}}} | {{!}} <div>Crafting skill</div> {{!!}} Level {{{crafting_req}}} required }}
 
|-
 
|-
{{#if: {{{stuffcategories|}}} | {{!}} <div>Allowed material</div> {{!!}} {{#if:{{#pos: {{{stuffcategories}}} |,}} | {{#arraymap:{{{stuffcategories|}}}|,|x|* x|\n}} | {{{stuffcategories}}} }} }}
+
{{#if: {{{stuffcategories|}}} | {{!}} <div>Allowed materials</div> {{!!}} {{#if:{{#pos: {{{stuffcategories}}} |,}} | {{#arraymap:{{{stuffcategories|}}}|,|x|* x|\n}} | {{{stuffcategories}}} }} }}
 
|-
 
|-
{{#if: {{{disallowedmaterial|}}} | {{!}} <div>Disallowed material</div> {{!!}} {{#if:{{#pos: {{{disallowedmaterial}}} |,}} | {{#arraymap:{{{disallowedmaterial|}}}|,|x|* x|\n}} | {{{disallowedmaterial}}} }} }}
+
{{#if: {{{disallowedmaterial|}}} | {{!}} <div>Disallowed materials</div> {{!!}} {{#if:{{#pos: {{{disallowedmaterial}}} |,}} | {{#arraymap:{{{disallowedmaterial|}}}|,|x|* x|\n}} | {{{disallowedmaterial}}} }} }}
 
|-
 
|-
 
{{#if: {{{recipeusers|}}} | {{!}} <div>Craft with</div> {{!!}} {{#if:{{#pos: {{{recipeusers}}} |,}} | {{#arraymap:{{{recipeusers|}}}|,|x|* x|\n}} | {{{recipeusers}}} }} }}
 
{{#if: {{{recipeusers|}}} | {{!}} <div>Craft with</div> {{!!}} {{#if:{{#pos: {{{recipeusers}}} |,}} | {{#arraymap:{{{recipeusers|}}}|,|x|* x|\n}} | {{{recipeusers}}} }} }}

Latest revision as of 18:52, 4 August 2019

This template defines the table "Weapon". This table has not been created yet.

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

Usage[edit]

{{Infobox weapon
| name               = 
| defname            = 
| image              = 
| description        = 
| description_markup = 
| type               = 
| subtype            = 
<!--   General   -->
| marketvalue        = 
| techlevel          = 
| mass               = 
| sellpricefactor    = 
| maxhitpoints       = 
| flammability       = 
| deteriorationrate  = 
| beauty             = 
| weapon_range       = 
| damageamount       = 
<!--   Weapon (statbases)  -->
| accuracytouch      = 
| accuracyshort      = 
| accuracymedium     = 
| accuracylong       = 
| warmup             = 
| cooldown           = 
| burstshotcount     = 
| burstshotinterval  = 
| movespeedoffset    = 
| forcedmissradius   = 
| targetlocations    = 
<!-- Projectile  -->
| damagedef          = 
| stoppingpower      = 
| armorpenetration   = 
| speed              = 
| explosionradius    = 
| explosiondelay     = 
<!--   Crafting   -->
| worktomake         = 
| workspeedstat      = 
| workskill          = 
| crafting_req       = 
| stuffcategories    = 
| disallowedmaterial = 
| recipeusers        = 
| researchprereq     = 
<!-- Other -->
| weapontags         =  
| tradetags          =  
<!-- Technical -->
| graphicaltexpath   = 
| soundeffect        =  
}}