Difference between revisions of "Template:Apparel AP Calculation"
Jump to navigation
Jump to search
(Created page with "The armor rating is reduced by the armor penetration value, dependent on the weapon. This gives the "effective armor rating" The effective armor rating is then compared agains...") |
|||
Line 1: | Line 1: | ||
− | + | {{#vardefine: effectiveArmor |{{#expr: {{{1|armor}}} - {{{2|ap}}}}} }}<!-- | |
− | |||
− | |||
− | |||
− | |||
− | {{#vardefine: effectiveArmor | | + | -->{{#vardefine: effectiveArmor | 150 }} <!-- |
− | {{#vardefine: effectiveArmor | | + | -->{{#ifexpr: {{#var: effectiveArmor}} < 0| {{#vardefine: effectiveArmor | 0 }} }}<!-- |
− | |||
− | + | -->{{#expr: ({{#ifexpr: (100-{{#var: effectiveArmor}}) > 0 | {{#expr:100-{{#var: effectiveArmor}}}} | 0}}/100.0) + ({{#ifexpr: ({{#var: effectiveArmor}}/2.0) < (100.0-{{#var: effectiveArmor}}/2.0) | {{#expr:{{#var: effectiveArmor}}/2.0}} | {{#expr:100.0-{{#var: effectiveArmor}}/2.0}} }}/100)* 0.5}} | |
− | {{#expr: ({{#ifexpr: (100-{{#var: effectiveArmor}}) > 0 | {{#expr:100-{{#var: effectiveArmor}}}} | 0}}/100.0) + ({{#ifexpr: ({{#var: effectiveArmor}}/2.0) < (100.0-{{#var: effectiveArmor}}/2.0) | {{#expr:{{#var: effectiveArmor}}/2.0}} | {{#expr:100.0-{{#var: effectiveArmor}}/2.0}} }}/100)* 0.5}} |
Revision as of 05:22, 22 March 2021
0.125