Module:HeroStats2/Infobox/doc
Jump to navigation
Jump to search
This is the documentation page for Module:HeroStats2/Infobox
Documentation
[purge]
This module renders infoboxes for Heroes in Darkest Dungeon II.
There are two API functions, render
and query
, both with Lua and Wikitext variants. The primary point of access is the _query
function; other functions mostly exist for testing purposes.
render and _render
Renders the given hero data into an infobox. In addition to all the hero attributes (see Template:HeroStats2/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.)
default_name
and permanent_conditions
are both optional.
Examples
Test Custom Hero | ||
---|---|---|
Default Name | ||
Test Default Name | ||
Stats | ||
Base | Upgraded | |
HP | 1 | 1 |
Speed | 3 | 4 |
Resistances | ||
Bleed | 5% | 6% |
Blight | 7% | 8% |
Burn | 9% | 9% |
Disease | 17% | 18% |
Stun | 11% | 12% |
Move | 13% | 14% |
Debuff | 15% | 15% |
Deathblow | 19% | 19% |
Low ▪ Medium ▪ High ▪ Upgraded | ||
Movement | ||
21 forward, 22 backward | ||
Permanent Condition(s) | ||
No Optionals | |
---|---|
Stats | |
HP | 1 |
Speed | 3 |
Resistances | |
Bleed | 5% |
Blight | 7% |
Burn | 9% |
Disease | 17% |
Stun | 11% |
Move | 13% |
Debuff | 15% |
Deathblow | 19% |
Low ▪ Medium ▪ High |
query and _query
As above, but fetches the data from Cargo instead of using arguments.
Examples
Bounty Hunter | |
---|---|
Stats | |
HP | 48 |
Speed | 3 |
Resistances | |
Bleed | 30% |
Blight | 30% |
Burn | 30% |
Disease | 40% |
Stun | 40% |
Move | 30% |
Debuff | 40% |
Deathblow | 75% |
Low ▪ Medium ▪ High | |
Movement | |
2 forward, 2 backward | |
Permanent Condition(s) | |
Grave Robber | ||
---|---|---|
Default Name | ||
Audrey | ||
Stats | ||
Base | Upgraded | |
HP | 29 | 29 |
Speed | 5 | 7 |
Resistances | ||
Bleed | 30% | 30% |
Blight | 30% | 40% |
Burn | 30% | 30% |
Disease | 30% | 30% |
Stun | 20% | 20% |
Move | 20% | 20% |
Debuff | 30% | 30% |
Deathblow | 60% | 75% |
Low ▪ Medium ▪ High ▪ Upgraded | ||
Movement | ||
2 forward, 2 backward |
Leper | ||
---|---|---|
Default Name | ||
Baldwin | ||
Stats | ||
Base | Upgraded | |
HP | 44 | 52 |
Speed | 2 | 2 |
Resistances | ||
Bleed | 10% | 10% |
Blight | 10% | 10% |
Burn | 20% | 20% |
Disease | 30% | 30% |
Stun | 30% | 30% |
Move | 20% | 30% |
Debuff | 20% | 20% |
Deathblow | 60% | 75% |
Low ▪ Medium ▪ High ▪ Upgraded | ||
Movement | ||
1 forward | ||
Permanent Condition(s) | ||