Difference between revisions of "Template:Metrics/Health"
(The demoman's boots are Primary's, i'm an idiot.) |
(Removed old logic for the Darwin's Danger Shield) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#switch:{{lc:{{{C}}}}} | + | {{#switch: {{lc:{{{C}}}}} |
− | |scout={{#expr: | + | | scout = {{#expr: |
− | | | + | {{Metrics/Base health|scout}} + |
− | |pyro | + | {{#switch: {{lc:{{{M}}}}} |
− | |demoman={{#expr: | + | | sandman = -15 |
− | |heavy={{#expr: | + | | 0 |
− | |engineer={{#expr: | + | }} |
− | |medic={{#expr: | + | }} |
− | |sniper={{ | + | | soldier = {{#expr: |
− | |spy={{#expr: | + | {{Metrics/Base health|soldier}} + |
− | |0}}<noinclude> | + | {{#switch: {{lc:{{{S}}}}} |
+ | | battalion's backup = 20 | ||
+ | | 0 | ||
+ | }} | ||
+ | }} | ||
+ | | pyro = {{Metrics/Base health|pyro}} | ||
+ | | demoman = {{#expr: | ||
+ | {{Metrics/Base health|demoman}} + | ||
+ | {{#switch: {{lc:{{{P}}}}} | ||
+ | | ali baba's wee booties | ||
+ | | bootlegger = 25 | ||
+ | | 0 | ||
+ | }} + | ||
+ | {{#switch: {{lc:{{{M}}}}} | ||
+ | | eyelander | ||
+ | | horseless headless horsemann's headtaker | ||
+ | | nessie's nine iron = {{#expr: | ||
+ | -25 + {{#ifexpr: {{{H|0}}} > 4 | 4 | {{{H|0}}} }} * 15 | ||
+ | }} | ||
+ | | 0 | ||
+ | }} | ||
+ | }} | ||
+ | | heavy = {{#expr: | ||
+ | {{Metrics/Base health|heavy}} + | ||
+ | {{#switch: {{lc:{{{S}}}}} | ||
+ | | dalokohs bar | ||
+ | | fishcake = 50 | ||
+ | | 0 | ||
+ | }} | ||
+ | }} | ||
+ | | engineer = {{#expr: | ||
+ | {{Metrics/Base health|engineer}} + | ||
+ | {{#switch: {{lc:{{{M}}}}} | ||
+ | | gunslinger = 25 | ||
+ | | 0 | ||
+ | }} | ||
+ | }} | ||
+ | | medic = {{#expr: | ||
+ | {{Metrics/Base health|medic}} + | ||
+ | {{#switch: {{lc:{{{M}}}}} | ||
+ | | vita-saw = -10 | ||
+ | | 0 | ||
+ | }} | ||
+ | }} | ||
+ | | sniper = {{Metrics/Base health|sniper}} | ||
+ | | spy = {{#expr: | ||
+ | {{Metrics/Base health|spy}} + | ||
+ | {{#switch: {{lc:{{{M}}}}} | ||
+ | | conniver's kunai = -55 | ||
+ | | big earner = -25 | ||
+ | | 0 | ||
+ | }} | ||
+ | }} | ||
+ | | 0 | ||
+ | }}<noinclude> | ||
{{Template doc}} | {{Template doc}} | ||
− | [[Category: | + | [[Category:Game mechanics|{{SUBPAGENAME}}]] |
− |
Latest revision as of 00:17, 26 October 2017
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 |