Difference between revisions of "Template:Apparel Protection Chart"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly> {{#vardefine: string | {{Apparel AP Iterator|{{{1|{{PAGENAME}} }}}|{{lc:{{{2|Normal}}}}}|{{{3|1}}}}} }}<!--
+
<includeonly>{{GraphChart|width=400
-->{{#vardefine: x | {{#explode: {{#var: string }} | && |0 }} }}<!--
 
-->{{#vardefine: y | {{#explode: {{#var: string }} | && |1 }} }}<!--
 
-->{{GraphChart|width=400
 
 
|height=200
 
|height=200
 
|type=area
 
|type=area
Line 11: Line 8:
 
|yAxisMax = 100
 
|yAxisMax = 100
 
|yAxisTitle= Effective Damage (%)
 
|yAxisTitle= Effective Damage (%)
|x= {{#var: x}}
+
|x= 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140
|y1= {{#var: y}}  
+
|y1= {{Apparel AP Calculation|{{{1|0}}}|0}}, {{Apparel AP Calculation|{{{1|0}}}|1}}, {{Apparel AP Calculation|{{{1|0}}}|2}}, {{Apparel AP Calculation|{{{1|0}}}|3}}, {{Apparel AP Calculation|{{{1|0}}}|4}}, {{Apparel AP Calculation|{{{1|0}}}|5}}, {{Apparel AP Calculation|{{{1|0}}}|6}}, {{Apparel AP Calculation|{{{1|0}}}|7}}, {{Apparel AP Calculation|{{{1|0}}}|8}}, {{Apparel AP Calculation|{{{1|0}}}|9}}, {{Apparel AP Calculation|{{{1|0}}}|10}}, {{Apparel AP Calculation|{{{1|0}}}|11}}, {{Apparel AP Calculation|{{{1|0}}}|12}}, {{Apparel AP Calculation|{{{1|0}}}|13}}, {{Apparel AP Calculation|{{{1|0}}}|14}}, {{Apparel AP Calculation|{{{1|0}}}|15}}, {{Apparel AP Calculation|{{{1|0}}}|16}}, {{Apparel AP Calculation|{{{1|0}}}|17}}, {{Apparel AP Calculation|{{{1|0}}}|18}}, {{Apparel AP Calculation|{{{1|0}}}|19}}, {{Apparel AP Calculation|{{{1|0}}}|20}}, {{Apparel AP Calculation|{{{1|0}}}|21}}, {{Apparel AP Calculation|{{{1|0}}}|22}}, {{Apparel AP Calculation|{{{1|0}}}|23}}, {{Apparel AP Calculation|{{{1|0}}}|24}}, {{Apparel AP Calculation|{{{1|0}}}|25}}, {{Apparel AP Calculation|{{{1|0}}}|26}}, {{Apparel AP Calculation|{{{1|0}}}|27}}, {{Apparel AP Calculation|{{{1|0}}}|28}}, {{Apparel AP Calculation|{{{1|0}}}|29}}, {{Apparel AP Calculation|{{{1|0}}}|30}}, {{Apparel AP Calculation|{{{1|0}}}|31}}, {{Apparel AP Calculation|{{{1|0}}}|32}}, {{Apparel AP Calculation|{{{1|0}}}|33}}, {{Apparel AP Calculation|{{{1|0}}}|34}}, {{Apparel AP Calculation|{{{1|0}}}|35}}, {{Apparel AP Calculation|{{{1|0}}}|36}}, {{Apparel AP Calculation|{{{1|0}}}|37}}, {{Apparel AP Calculation|{{{1|0}}}|38}}, {{Apparel AP Calculation|{{{1|0}}}|39}}, {{Apparel AP Calculation|{{{1|0}}}|40}}, {{Apparel AP Calculation|{{{1|0}}}|41}}, {{Apparel AP Calculation|{{{1|0}}}|42}}, {{Apparel AP Calculation|{{{1|0}}}|43}}, {{Apparel AP Calculation|{{{1|0}}}|44}}, {{Apparel AP Calculation|{{{1|0}}}|45}}, {{Apparel AP Calculation|{{{1|0}}}|46}}, {{Apparel AP Calculation|{{{1|0}}}|47}}, {{Apparel AP Calculation|{{{1|0}}}|48}}, {{Apparel AP Calculation|{{{1|0}}}|49}}, {{Apparel AP Calculation|{{{1|0}}}|50}}, {{Apparel AP Calculation|{{{1|0}}}|51}}, {{Apparel AP Calculation|{{{1|0}}}|52}}, {{Apparel AP Calculation|{{{1|0}}}|53}}, {{Apparel AP Calculation|{{{1|0}}}|54}}, {{Apparel AP Calculation|{{{1|0}}}|55}}, {{Apparel AP Calculation|{{{1|0}}}|56}}, {{Apparel AP Calculation|{{{1|0}}}|57}}, {{Apparel AP Calculation|{{{1|0}}}|58}}, {{Apparel AP Calculation|{{{1|0}}}|59}}, {{Apparel AP Calculation|{{{1|0}}}|60}}, {{Apparel AP Calculation|{{{1|0}}}|61}}, {{Apparel AP Calculation|{{{1|0}}}|62}}, {{Apparel AP Calculation|{{{1|0}}}|63}}, {{Apparel AP Calculation|{{{1|0}}}|64}}, {{Apparel AP Calculation|{{{1|0}}}|65}}, {{Apparel AP Calculation|{{{1|0}}}|66}}, {{Apparel AP Calculation|{{{1|0}}}|67}}, {{Apparel AP Calculation|{{{1|0}}}|68}}, {{Apparel AP Calculation|{{{1|0}}}|69}}, {{Apparel AP Calculation|{{{1|0}}}|70}}, {{Apparel AP Calculation|{{{1|0}}}|71}}, {{Apparel AP Calculation|{{{1|0}}}|72}}, {{Apparel AP Calculation|{{{1|0}}}|73}}, {{Apparel AP Calculation|{{{1|0}}}|74}}, {{Apparel AP Calculation|{{{1|0}}}|75}}, {{Apparel AP Calculation|{{{1|0}}}|76}}, {{Apparel AP Calculation|{{{1|0}}}|77}}, {{Apparel AP Calculation|{{{1|0}}}|78}}, {{Apparel AP Calculation|{{{1|0}}}|79}}, {{Apparel AP Calculation|{{{1|0}}}|80}}, {{Apparel AP Calculation|{{{1|0}}}|81}}, {{Apparel AP Calculation|{{{1|0}}}|82}}, {{Apparel AP Calculation|{{{1|0}}}|83}}, {{Apparel AP Calculation|{{{1|0}}}|84}}, {{Apparel AP Calculation|{{{1|0}}}|85}}, {{Apparel AP Calculation|{{{1|0}}}|86}}, {{Apparel AP Calculation|{{{1|0}}}|87}}, {{Apparel AP Calculation|{{{1|0}}}|88}}, {{Apparel AP Calculation|{{{1|0}}}|89}}, {{Apparel AP Calculation|{{{1|0}}}|90}}, {{Apparel AP Calculation|{{{1|0}}}|91}}, {{Apparel AP Calculation|{{{1|0}}}|92}}, {{Apparel AP Calculation|{{{1|0}}}|93}}, {{Apparel AP Calculation|{{{1|0}}}|94}}, {{Apparel AP Calculation|{{{1|0}}}|95}}, {{Apparel AP Calculation|{{{1|0}}}|96}}, {{Apparel AP Calculation|{{{1|0}}}|97}}, {{Apparel AP Calculation|{{{1|0}}}|98}}, {{Apparel AP Calculation|{{{1|0}}}|99}}, {{Apparel AP Calculation|{{{1|0}}}|100}}, {{Apparel AP Calculation|{{{1|0}}}|101}}, {{Apparel AP Calculation|{{{1|0}}}|102}}, {{Apparel AP Calculation|{{{1|0}}}|103}}, {{Apparel AP Calculation|{{{1|0}}}|104}}, {{Apparel AP Calculation|{{{1|0}}}|105}}, {{Apparel AP Calculation|{{{1|0}}}|106}}, {{Apparel AP Calculation|{{{1|0}}}|107}}, {{Apparel AP Calculation|{{{1|0}}}|108}}, {{Apparel AP Calculation|{{{1|0}}}|109}}, {{Apparel AP Calculation|{{{1|0}}}|110}}, {{Apparel AP Calculation|{{{1|0}}}|111}}, {{Apparel AP Calculation|{{{1|0}}}|112}}, {{Apparel AP Calculation|{{{1|0}}}|113}}, {{Apparel AP Calculation|{{{1|0}}}|114}}, {{Apparel AP Calculation|{{{1|0}}}|115}}, {{Apparel AP Calculation|{{{1|0}}}|116}}, {{Apparel AP Calculation|{{{1|0}}}|117}}, {{Apparel AP Calculation|{{{1|0}}}|118}}, {{Apparel AP Calculation|{{{1|0}}}|119}}, {{Apparel AP Calculation|{{{1|0}}}|120}}, {{Apparel AP Calculation|{{{1|0}}}|121}}, {{Apparel AP Calculation|{{{1|0}}}|122}}, {{Apparel AP Calculation|{{{1|0}}}|123}}, {{Apparel AP Calculation|{{{1|0}}}|124}}, {{Apparel AP Calculation|{{{1|0}}}|125}}, {{Apparel AP Calculation|{{{1|0}}}|126}}, {{Apparel AP Calculation|{{{1|0}}}|127}}, {{Apparel AP Calculation|{{{1|0}}}|128}}, {{Apparel AP Calculation|{{{1|0}}}|129}}, {{Apparel AP Calculation|{{{1|0}}}|130}}, {{Apparel AP Calculation|{{{1|0}}}|131}}, {{Apparel AP Calculation|{{{1|0}}}|132}}, {{Apparel AP Calculation|{{{1|0}}}|133}}, {{Apparel AP Calculation|{{{1|0}}}|134}}, {{Apparel AP Calculation|{{{1|0}}}|135}}, {{Apparel AP Calculation|{{{1|0}}}|136}}, {{Apparel AP Calculation|{{{1|0}}}|137}}, {{Apparel AP Calculation|{{{1|0}}}|138}}, {{Apparel AP Calculation|{{{1|0}}}|139}}, {{Apparel AP Calculation|{{{1|0}}}|140}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 05:25, 22 March 2021

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

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

Parameters

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

{{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}}