Difference between revisions of "Template:Apparel AP Calculation"
Jump to navigation
Jump to search
m (Temporary solution for armor ratings 0~2 instead of 0~200: multiply by 100) |
m |
||
Line 9: | Line 9: | ||
Temporary solution for armor ratings 0~2 instead of 0~200: multiply by 100 | Temporary solution for armor ratings 0~2 instead of 0~200: multiply by 100 | ||
-->{{#ifexpr: {{#var: effectiveArmor1}} < 2| {{#vardefine: effectiveArmor1 | {{#expr: {{#var: effectiveArmor1}} * 100 }} }} }} <!-- | -->{{#ifexpr: {{#var: effectiveArmor1}} < 2| {{#vardefine: effectiveArmor1 | {{#expr: {{#var: effectiveArmor1}} * 100 }} }} }} <!-- | ||
− | -->{{#ifexpr: {{#var: effectiveArmor2}} < 2| {{#vardefine: effectiveArmor2 | {{#var: | + | -->{{#ifexpr: {{#var: effectiveArmor2}} < 2| {{#vardefine: effectiveArmor2 | {{#expr: {{#var: effectiveArmor1}} * 100 }} }} }} }} <!-- |
− | -->{{#ifexpr: {{#var: effectiveArmor3}} < 2| {{#vardefine: effectiveArmor3 | {{#var: | + | -->{{#ifexpr: {{#var: effectiveArmor3}} < 2| {{#vardefine: effectiveArmor3 | {{#expr: {{#var: effectiveArmor1}} * 100 }} }} }} }} <!-- |
− | -->{{#ifexpr: {{#var: effectiveArmor4}} < 2| {{#vardefine: effectiveArmor4 | {{#var: | + | -->{{#ifexpr: {{#var: effectiveArmor4}} < 2| {{#vardefine: effectiveArmor4 | {{#expr: {{#var: effectiveArmor1}} * 100 }} }} }} }} <!-- |
-->{{#expr:100*(({{#ifexpr: (100-{{#var: effectiveArmor1}}) > 0 | {{#expr:100-{{#var: effectiveArmor1}}}} | 0}}/100.0) + ({{#ifexpr: ({{#var: effectiveArmor1}}/2.0) < (100.0-{{#var: effectiveArmor1}}/2.0) | {{#expr:{{#var: effectiveArmor1}}/2.0}} | {{#expr:100.0-{{#var: effectiveArmor1}}/2.0}} }}/100)* 0.5) | -->{{#expr:100*(({{#ifexpr: (100-{{#var: effectiveArmor1}}) > 0 | {{#expr:100-{{#var: effectiveArmor1}}}} | 0}}/100.0) + ({{#ifexpr: ({{#var: effectiveArmor1}}/2.0) < (100.0-{{#var: effectiveArmor1}}/2.0) | {{#expr:{{#var: effectiveArmor1}}/2.0}} | {{#expr:100.0-{{#var: effectiveArmor1}}/2.0}} }}/100)* 0.5) |
Revision as of 17:03, 31 October 2024
}} }} }} 100
This page has been marked as needing documentation of its function and purpose. You can help RimWorld Wiki by creating it here |