Module:EnemyStats2/Infobox/doc

From Darkest Dungeon Wiki
Jump to navigation Jump to search

This is the documentation page for Module:EnemyStats2/Infobox

Template-info.svg Documentation

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 or upgraded_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
Pd wiki.png
Stats
HP HP1
Speed Speed3
Death Armor Death Armor10
Resistances
Bleed Bleed5%
Blight Blight7%
Burn Burn9%
Stun Stun11%
Move Move13%
Debuff Debuff15%
LowMediumHigh
Other Attributes
TypesCreature, Plague Eater
Size4
Turns per Round3
Permanent Condition(s)
On Turn Start:
  • StealthBlock+
  • Test text.
No Optionals
Stats
HP HPInvulnerable
Speed SpeedInvulnerable
Resistances
Bleed BleedImmune
Blight BlightImmune
Burn BurnImmune
Stun StunImmune
Move MoveImmune
Debuff DebuffImmune
LowMediumHigh
Other Attributes
TypesNone
Size1
Turns per Round2

query and _query

As above, but fetches the data from Cargo instead of using arguments.

Examples

The Collector
Collector.png
Stats
HP HP90
Speed Speed0
Death Armor Death Armor1
Resistances
Bleed Bleed40%
Blight Blight40%
Burn Burn40%
Stun Stun10%
Move Move20%
Debuff Debuff50%
LowMediumHigh
Other Attributes
TypesNone
Size1
Turns per Round1
Livestock
Livestock.png
Stats
HP HP14
Speed Speed1
Resistances
Bleed Bleed10%
Blight Blight50%
Burn Burn20%
Stun Stun30%
Move Move10%
Debuff Debuff10%
LowMediumHigh
Other Attributes
TypesCreature, Plague Eater
Size1
Turns per Round1
Permanent Condition(s)
On Combat Start:
Fodderx2
Fallen Templar
Knight b.png
Stats
HP HP41
Speed Speed2
Death Armor Death Armor3
Resistances
Bleed Bleed50%
Blight Blight30%
Burn Burn10%
Stun Stun40%
Move Move40%
Debuff Debuff30%
LowMediumHigh
Other Attributes
TypesCadaver
Size2
Turns per Round1
Permanent Condition(s)
Combat Start:
  • Block
  • Block+ (25%)

While on Death's Door Death's Door:

  • +50% DMG
  • +5 Speed
  • Cannot Gain Weak
Urchin
Urchin.png
Stats
HP HP11
Speed Speed5
Resistances
Bleed Bleed10%
Blight Blight30%
Burn Burn10%
Stun Stun10%
Move Move10%
Debuff Debuff10%
LowMediumHigh
Other Attributes
TypesGaunt
Size1
Turns per Round1