Difference between revisions of "Template:Metrics/Health"

From Team Fortress Wiki
Jump to: navigation, search
(Warrior's Spirit, removed health penalty)
(Removed old logic for the Darwin's Danger Shield)
 
(One intermediate revision by the same user not shown)
Line 28: Line 28:
 
                                             -25 + {{#ifexpr: {{{H|0}}} > 4 | 4 | {{{H|0}}} }} * 15
 
                                             -25 + {{#ifexpr: {{{H|0}}} > 4 | 4 | {{{H|0}}} }} * 15
 
                                           }}
 
                                           }}
                  | claidheamh mòr    = -15
 
 
                   | 0
 
                   | 0
 
                 }}
 
                 }}
Line 54: Line 53:
 
                 }}
 
                 }}
 
               }}
 
               }}
   | sniper  = {{#expr:
+
   | sniper  = {{Metrics/Base health|sniper}}
                {{Metrics/Base health|sniper}} +
 
                {{#switch: {{lc:{{{S}}}}}
 
                  | darwin's danger shield = 25
 
                  | 0
 
                }}
 
              }}
 
 
   | spy      = {{#expr:
 
   | spy      = {{#expr:
 
                 {{Metrics/Base health|spy}} +
 
                 {{Metrics/Base health|spy}} +

Latest revision as of 00:17, 26 October 2017

0

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

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