Template:EnemyStats2
This template defines the Cargo table EnemyStats2, which stores attributes for Enemies in Darkest Dungeon II. This template itself does nothing except to define the table schema. Functionality is defined in the templates and modules below:
- Template:EnemyStats2/Add adds data to the table.
- Template:EnemyStats2/Infobox and Module:EnemyStats2/Infobox render infoboxes for individual enemies.
- Template:EnemyStats2/Infoboxes and Module:EnemyStats2/Infoboxes does the same, except it renders infoboxes for multiple enemies and puts them together in a tabber.
- Template:EnemyStats2/Table and Module:EnemyStats2/Table render tables of statistics for groups of enemies.
- Module:EnemyStats2/Utils contains various utilities and definitions for enemy stats.
The following tables are linked to, or derived from, the main table in some way:
- Template:EnemyStats2/Types stores enemy types. There is a one-to-many relationship between enemies and their types.
- Template:EnemyStats2/CategoryInfo defines categories used to sort enemies.
- Template:EnemyStats2/Histograms and Module:EnemyStats2/Histograms generate histograms which are used to colour-code enemy stats.
Schema
Note that when adding a new enemy to the table using Template:EnemyStats2/Add, an extra field, types
must be provided which contains a space-separated list of all the enemy's types. However, those types are not stored in this table but in EnemyStats2Types.
Field | Required? | Notes |
---|---|---|
name | Required | Must be unique. |
image | Optional | A full-sized image of the enemy. |
icon | Optional | An icon used to display the enemy in tables. |
article | Required | The enemy page. Required because a lot of times we will link to the enemy from other places, and there are often multiple enemies on one page. E.g. the Shambler Tentacle's article is Shambler (Darkest Dungeon II)#Shambler Tentacle.
|
boss | Required | yes or no . Whether the enemy has the boss tag and is immune from the effect of Murder Weapon, for example.
|
minion_of | Optional | If the enemy only appears in a specific boss fight, then it is a minion_of that boss. This does not correspond to any real in-game value. However it is useful for grouping enemies together when sorting and searching information on the wiki: we want to group all minions together with their bosses, and not with all regular enemies.
|
champion_of | Optional | Some enemies are champion versions of another enemy (e.g. Bullseye Barrett is the champion_of the Arbalist). Again, this has no meaning in the game. However it is useful for sorting enemies: we want champion enemies to be sorted after regular enemies.
|
region | Optional | If an enemy is restricted to a specific region. Currently the only allowed values are valley,sprawl,tangle,foetor,shroud,sluice,mountain . This is used to sort and search information on the wiki and doesn't correspond to any in-game value.
|
category | Required | Each enemy on the wiki must belong to some sort of category. As with the above attributes, this attribute only exists in order for us to sort and organise information on the wiki.
This is mostly used for Module:EnemyStats2/Table. When writing code for the table, I came upon a fundamental problem: how should we sort the enemies correctly? A few issues stood out:
In the end I decided to create a new attribute called category for the purposes of sorting enemies. Each enemy should belong to one and only one category. Currently all categories are defined on Data:Enemies (Darkest Dungeon II), along with their sorting order. They should mostly make sense: This has the benefit that it is very explicit: each enemy should belong in a group somewhere, and However, it has some downsides. The first one is that we must explicitly specify an extra value for each enemy—in particular, a value that has no real in-game meaning. And also category is a term used on the wiki to describe categories of articles; this is possibly a mistake that will create more issues in the long run, but for now I'll just say: let's cross that bridge when we get to it. |
hp | Optional | Unspecified means the enemy is invulnerable. |
speed | Required | |
death_armor | Required | |
bleed | Optional | Unspecified means the enemy is immune. |
blight | Optional | Unspecified means the enemy is immune. |
burn | Optional | Unspecified means the enemy is immune. |
stun | Optional | Unspecified means the enemy is immune. |
move | Optional | Unspecified means the enemy is immune. |
debuff | Optional | Unspecified means the enemy is immune. |
size | Required | |
turns | Required | The number of turns the enemy takes per round, not counting free actions, etc... |
permanent_conditions | Optional | Some enemies have certain conditions. For example, Death deals more damage to bleeding heroes as her health gets lower. A lot of enemies start with Dodge or Block tokens. And so on. |
This template defines the table "EnemyStats2". View table.