Template:CalcEnemyStats
Jump to navigation
Jump to search
1
The above template is based on the following function: ceil(base * (1 + 0.2 * level))
, where:
- base – starting value of an enemy's health / damage, equal to 1 if not specified;
- level – level of an enemy, equal to 0 if not specified.
The template syntax:
{{CalcEnemyStats|base=value|level=value}}
Examples:
{{CalcEnemyStats|base=140|level=13}}
gives 504;{{CalcEnemyStats|base=35}}
gives 35;{{CalcEnemyStats|level=12}}
gives 4.
The functions can parse non-integer and negative numbers, but realistically there's no need to ever use such values.
Entering a non-number value, or leaving a parameter field empty (i.e., {{CalcEnemyStats|base=}}
) will cause the function to return a whitespace.