Module:EnemyStats2/Infobox/doc
This is the documentation page for Module:EnemyStats2/Infobox
This module renders infoboxes for Enemies in Darkest Dungeon II.
There are two API functions, render
and query
, both with Lua and Wikitext variants. The primary points of access are the _query
(Lua) and query
(Wikitext) functions; render
mostly exists for testing purposes.
One side effect of the infoboxes is that they automatically add the page into the right categories based on Enemy Type, as well as adding the page to the general Category:Enemies (Darkest Dungeon II). Once the types have been passed, category tags should no longer be necessary on the page.
render and _render
Renders the given enemy data into an infobox. In addition to all the enemy attributes (see Template:EnemyStats2/Add), it also accepts the following parameters:
(stat)_cdf
: numeric, for each stat. E.g.hp_cdf
orupgraded_bleed_cdf
. This (optional) value determines the colour of the displayed stat._pageName
: string. This is used to generate an edit link for entries that are loaded from Cargo. (Click on the small "+" button to view it.)
Unlike the case with Heroes, most enemy attributes are optional. See the examples below for more details.
Examples
Test Name | |
---|---|
Stats | |
HP | 1 |
Speed | 3 |
Death Armor | 10 |
Resistances | |
Bleed | 5% |
Blight | 7% |
Burn | 9% |
Stun | 11% |
Move | 13% |
Debuff | 15% |
Low ▪ Medium ▪ High | |
Other Attributes | |
Types | Creature, Plague Eater |
Size | 4 |
Turns per Round | 3 |
Permanent Condition(s) | |
No Optionals | |
---|---|
Stats | |
HP | Invulnerable |
Speed | Invulnerable |
Resistances | |
Bleed | Immune |
Blight | Immune |
Burn | Immune |
Stun | Immune |
Move | Immune |
Debuff | Immune |
Low ▪ Medium ▪ High | |
Other Attributes | |
Types | None |
Size | 1 |
Turns per Round | 2 |
query and _query
As above, but fetches the data from Cargo instead of using arguments.
Examples
The Collector | |
---|---|
Stats | |
HP | 90 |
Speed | 0 |
Death Armor | 1 |
Resistances | |
Bleed | 40% |
Blight | 40% |
Burn | 40% |
Stun | 10% |
Move | 20% |
Debuff | 50% |
Low ▪ Medium ▪ High | |
Other Attributes | |
Types | None |
Size | 1 |
Turns per Round | 1 |
Livestock | |
---|---|
Stats | |
HP | 14 |
Speed | 1 |
Resistances | |
Bleed | 10% |
Blight | 50% |
Burn | 20% |
Stun | 30% |
Move | 10% |
Debuff | 10% |
Low ▪ Medium ▪ High | |
Other Attributes | |
Types | Creature, Plague Eater |
Size | 1 |
Turns per Round | 1 |
Permanent Condition(s) | |
Fallen Templar | |
---|---|
Stats | |
HP | 41 |
Speed | 2 |
Death Armor | 3 |
Resistances | |
Bleed | 50% |
Blight | 30% |
Burn | 10% |
Stun | 40% |
Move | 40% |
Debuff | 30% |
Low ▪ Medium ▪ High | |
Other Attributes | |
Types | Cadaver |
Size | 2 |
Turns per Round | 1 |
Permanent Condition(s) | |
Urchin | |
---|---|
Stats | |
HP | 11 |
Speed | 5 |
Resistances | |
Bleed | 10% |
Blight | 30% |
Burn | 10% |
Stun | 10% |
Move | 10% |
Debuff | 10% |
Low ▪ Medium ▪ High | |
Other Attributes | |
Types | Gaunt |
Size | 1 |
Turns per Round | 1 |