Difference between revisions of "Template:Apparel Protection Chart/doc"

From RimWorld Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Displayed the effective damage percentage (i.e. what percentage of given attacks damage would get through the layer) for a range of APs.  
 
Displayed the effective damage percentage (i.e. what percentage of given attacks damage would get through the layer) for a range of APs.  
  
==Parameters==
+
== Parameters ==
It takes 4 parameters, each a different armor value that will then be applied as different layers per [[Apparel#Protection]]
+
It takes two sets of 4 parameters, each a different armor value that will then be applied as different layers per [[Apparel#Protection]], and a name for each set.
  
==Examples==
+
* set1name = The title for the first armor set to put in the legend
<nowiki>{{Apparel Protection Chart|100}}</nowiki>
+
* set1armor1 = The armor rating of the 1st layer of the first armor set.
{{Apparel Protection Chart|100}}
+
* set1armor2 = The armor rating of the 2nd layer of the first armor set.
 +
* set1armor3 = The armor rating of the 3rd layer of the first armor set.
 +
* set1armor4 = The armor rating of the 4th layer of the first armor set.
  
<nowiki>{{Apparel Protection Chart|100|100}}</nowiki>
+
Replace "set1", with "set2" to "set7" for additional sets.
{{Apparel Protection Chart|100|100}}
 
  
  <nowiki>{{Apparel Protection Chart|100|100|100|100}}</nowiki>
+
* xAxisMax = 140 for maximum length
{{Apparel Protection Chart|100|100|100|100}}
+
 
 +
[[Template:Apparel Protection Chart/Quality Generator]] can be used to instead to automatically display each quality of the armor for a given damage class.
 +
 
 +
This template is dependant on [[Template:Apparel AP Calculation]]
 +
== Examples ==
 +
  <nowiki>{{Apparel Protection Chart|set1name= Flak Vest | set1armor1=100}}</nowiki>
 +
{{Apparel Protection Chart|set1name= Flak Vest | set1armor1=100}}
 +
 
 +
<nowiki>{{Apparel Protection Chart|set1name= Flak Vest and Devil Duster | set1armor1=42| set1armor2=100| set2name= Marine armor | set2armor1= 106 }}</nowiki>
 +
{{Apparel Protection Chart|set1name= Flak Vest and Devilstrand Duster | set1armor1=42| set1armor2=100| set2name= Marine armor | set2armor1= 106 }}
 +
 
 +
<nowiki>{{Apparel Protection Chart
 +
|xAxisMax=140
 +
|set1name= Awful Marine Armor (Sharp)      | set1armor1= 63.6
 +
|set2name= Poor Marine Armor (Sharp)      | set2armor1= 84.8
 +
|set3name= Normal Marine Armor (Sharp)    | set3armor1= 106
 +
|set4name= Good Marine Armor (Sharp)      | set4armor1= 121.9
 +
|set5name= Excellent Marine Armor (Sharp)  | set5armor1= 137.8
 +
|set6name= Masterwork Marine Armor (Sharp) | set6armor1= 153.7
 +
|set7name= Legendary Marine Armor (Sharp)  | set7armor1= 190.8
 +
}}
 +
</nowiki>
 +
{{Apparel Protection Chart
 +
|xAxisMax=140
 +
|set1name= Awful Marine Armor (Sharp)      | set1armor1= 63.6
 +
|set2name= Poor Marine Armor (Sharp)      | set2armor1= 84.8
 +
|set3name= Normal Marine Armor (Sharp)    | set3armor1= 106
 +
|set4name= Good Marine Armor (Sharp)      | set4armor1= 121.9
 +
|set5name= Excellent Marine Armor (Sharp)  | set5armor1= 137.8
 +
|set6name= Masterwork Marine Armor (Sharp) | set6armor1= 153.7
 +
|set7name= Legendary Marine Armor (Sharp)  | set7armor1= 190.8
 +
}}
 +
 
 +
<nowiki>{{Apparel Protection Chart/Quality Generator|Flak vest|Blunt}}
 +
</nowiki>
 +
{{Apparel Protection Chart/Quality Generator|Flak vest|Blunt}}
 +
 
 +
<includeonly>[[Category:Graph templates]]</includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 23:23, 1 November 2024

Displayed the effective damage percentage (i.e. what percentage of given attacks damage would get through the layer) for a range of APs.

Parameters[edit]

It takes two sets of 4 parameters, each a different armor value that will then be applied as different layers per Apparel#Protection, and a name for each set.

  • set1name = The title for the first armor set to put in the legend
  • set1armor1 = The armor rating of the 1st layer of the first armor set.
  • set1armor2 = The armor rating of the 2nd layer of the first armor set.
  • set1armor3 = The armor rating of the 3rd layer of the first armor set.
  • set1armor4 = The armor rating of the 4th layer of the first armor set.

Replace "set1", with "set2" to "set7" for additional sets.

  • xAxisMax = 140 for maximum length

Template:Apparel Protection Chart/Quality Generator can be used to instead to automatically display each quality of the armor for a given damage class.

This template is dependant on Template:Apparel AP Calculation

Examples[edit]

{{Apparel Protection Chart|set1name= Flak Vest | set1armor1=100}}
{{Apparel Protection Chart|set1name= Flak Vest and Devil Duster | set1armor1=42| set1armor2=100| set2name= Marine armor | set2armor1= 106 }}
{{Apparel Protection Chart
|xAxisMax=140
|set1name= Awful Marine Armor (Sharp)      | set1armor1= 63.6
|set2name= Poor Marine Armor (Sharp)       | set2armor1= 84.8 
|set3name= Normal Marine Armor (Sharp)     | set3armor1= 106 
|set4name= Good Marine Armor (Sharp)       | set4armor1= 121.9 
|set5name= Excellent Marine Armor (Sharp)  | set5armor1= 137.8 
|set6name= Masterwork Marine Armor (Sharp) | set6armor1= 153.7 
|set7name= Legendary Marine Armor (Sharp)  | set7armor1= 190.8 
}} 
 
{{Apparel Protection Chart/Quality Generator|Flak vest|Blunt}}