Difference between revisions of "Template:Metrics/Health"
(Adding battalion's backup health) |
(Changes for the Gunmettle update) |
||
Line 2: | Line 2: | ||
| scout = {{#expr: | | scout = {{#expr: | ||
{{Metrics/Base health|scout}} + | {{Metrics/Base health|scout}} + | ||
− | |||
− | |||
− | |||
− | |||
{{#switch: {{lc:{{{M}}}}} | {{#switch: {{lc:{{{M}}}}} | ||
| sandman = -15 | | sandman = -15 | ||
Line 11: | Line 7: | ||
}} | }} | ||
}} | }} | ||
− | |||
| soldier = {{#expr: | | soldier = {{#expr: | ||
{{Metrics/Base health|soldier}} + | {{Metrics/Base health|soldier}} + | ||
Line 19: | Line 14: | ||
}} | }} | ||
}} | }} | ||
− | |||
| pyro = {{Metrics/Base health|pyro}} | | pyro = {{Metrics/Base health|pyro}} | ||
− | |||
| demoman = {{#expr: | | demoman = {{#expr: | ||
{{Metrics/Base health|demoman}} + | {{Metrics/Base health|demoman}} + | ||
Line 39: | Line 32: | ||
}} | }} | ||
}} | }} | ||
− | |||
| heavy = {{#expr: | | heavy = {{#expr: | ||
{{Metrics/Base health|heavy}} + | {{Metrics/Base health|heavy}} + | ||
Line 52: | Line 44: | ||
}} | }} | ||
}} | }} | ||
− | |||
| engineer = {{#expr: | | engineer = {{#expr: | ||
{{Metrics/Base health|engineer}} + | {{Metrics/Base health|engineer}} + | ||
Line 60: | Line 51: | ||
}} | }} | ||
}} | }} | ||
− | |||
| medic = {{#expr: | | medic = {{#expr: | ||
{{Metrics/Base health|medic}} + | {{Metrics/Base health|medic}} + | ||
Line 68: | Line 58: | ||
}} | }} | ||
}} | }} | ||
− | |||
| sniper = {{#expr: | | sniper = {{#expr: | ||
{{Metrics/Base health|sniper}} + | {{Metrics/Base health|sniper}} + | ||
Line 76: | Line 65: | ||
}} | }} | ||
}} | }} | ||
− | |||
| spy = {{#expr: | | spy = {{#expr: | ||
{{Metrics/Base health|spy}} + | {{Metrics/Base health|spy}} + | ||
{{#switch: {{lc:{{{M}}}}} | {{#switch: {{lc:{{{M}}}}} | ||
− | | conniver's kunai = - | + | | conniver's kunai = -55 |
| big earner = -25 | | big earner = -25 | ||
| 0 | | 0 |
Revision as of 07:28, 2 July 2015
0
This template drops in a classes health, modified by settings that determine what the class has equipped (where appropriate). The C
argument is the only one required, and other arguments and values depend on the class. Defaults to generating 0
if the C
argument is unknown, to avoid causing downstream parsing failures, if used in a equation (such as Template:Math/Overheal).
Arguments
Argument | Meaning |
---|---|
C | Class name |
P | Primary weapon |
S | Secondary weapon |
M | Melee weapon |
H | Heads taken |
Valid argument settings
C | P | S | M | H |
---|---|---|---|---|
scout | sandman | |||
soldier | battalion's backup | |||
pyro | ||||
demoman | ali baba's wee booties bootlegger |
eyelander horseless headless horsemann's headtaker nessie's nine iron |
Positive integer | |
heavy | dalokohs bar fishcake |
|||
engineer | gunslinger | |||
medic | vita-saw | |||
sniper | ||||
spy | conniver's kunai big earner |