Difference between revisions of "Template:Enemy"
Jump to navigation
Jump to search
Defensive stats
Offensive stats
Defensive stats
Offensive stats
old>Realpsojed m (bonus range is not %) |
old>Realpsojed (test - add 100% to Crit Efficiency using #expr:) |
||
Line 1: | Line 1: | ||
<div style="width: 300px;" class="mw-collapsible mw-collapsed" data-expandtext="Show all statistics" data-collapsetext="Hide all statistics"> | |||
<div style="text-align:center;"><br><span style="font-size: 20px;">{{#if:{{:{{ROOTPAGENAME}}|Name}}|{{:{{ROOTPAGENAME}}|Name}}|{{ROOTPAGENAME}}}}</span><br><!-- | <div style="text-align:center;"><br><span style="font-size: 20px;">{{#if:{{:{{ROOTPAGENAME}}|Name}}|{{:{{ROOTPAGENAME}}|Name}}|{{ROOTPAGENAME}}}}</span><br><!-- | ||
-->Level {{:{{ROOTPAGENAME}}|Level}} <!-- | -->Level {{:{{ROOTPAGENAME}}|Level}} <!-- | ||
Line 56: | Line 56: | ||
-->Magic Power <span style="float:right;">{{:{{ROOTPAGENAME}}|MagicPower}}%</span></div><!-- | -->Magic Power <span style="float:right;">{{:{{ROOTPAGENAME}}|MagicPower}}%</span></div><!-- | ||
--><div style="width: 142px; float: left; padding-left: 5px; min-height: 1px;"><!-- | --><div style="width: 142px; float: left; padding-left: 5px; min-height: 1px;"><!-- | ||
-->Crit Efficiency <span style="float:right;">{{:{{ROOTPAGENAME}}|CritEfficiency}}%</span><br><!-- | -->Crit Efficiency <span style="float:right;">{{#expr: {{:{{ROOTPAGENAME}}|CritEfficiency}} + 100}}%</span><br><!-- | ||
-->Bleed Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|BleedChance}}%</span><br><!-- | -->Bleed Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|BleedChance}}%</span><br><!-- | ||
-->Fumble Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|FumbleChance}}%</span><br><!-- | -->Fumble Chance <span style="float:right;">{{:{{ROOTPAGENAME}}|FumbleChance}}%</span><br><!-- |
Revision as of 18:18, 2 May 2021
Magic Enemy%
Defensive stats
Offensive stats
Crit Chance Enemy%
Accuracy Enemy%
Counter Chance Enemy%
Stun Chance Enemy%
Knockb. Chance Enemy%
Life Leech Enemy%
Vision Enemy
Magic Power Enemy%
Accuracy Enemy%
Counter Chance Enemy%
Stun Chance Enemy%
Knockb. Chance Enemy%
Life Leech Enemy%
Vision Enemy
Magic Power Enemy%
</includeonly>
Documentation
[purge]
This is template created for use together with the Template:Tooltip hover box template. Copy this code to a specific Enemy page (for example, Skeleton Swordsman):
{{ {{{1|Tooltip hover box}}}|title= {{Enemy}} }}
It will automatically load the attrbutes from Enemy data and fill them into the format you see below.
You can provide the enemy name as first parameter, otherwise the pagename is used.
Enemy body types
Enemies gain certain additional attributes (mainly Resistances) from their body types. These bonuses are hardcoded in the Enemy template as the "Matter" variable and added to each enemy's base attributes.
Example
Magic Enemy%
Defensive stats
Offensive stats
Crit Chance Enemy%
Accuracy Enemy%
Counter Chance Enemy%
Stun Chance Enemy%
Knockb. Chance Enemy%
Life Leech Enemy%
Vision Enemy
Magic Power Enemy%
Accuracy Enemy%
Counter Chance Enemy%
Stun Chance Enemy%
Knockb. Chance Enemy%
Life Leech Enemy%
Vision Enemy
Magic Power Enemy%