Template:Infobox unit/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
LVL (talk | contribs)
mNo edit summary
LVL (talk | contribs)
Added damage resist
Line 9: Line 9:
|max_health = 5500
|max_health = 5500
|health_regen = 0
|health_regen = 0
|damage_resist = 75 → -50
|bullet_resist = 0
|bullet_resist = 0
|spirit_resist = 0
|spirit_resist = 0
Line 28: Line 29:
|max_health = 5500
|max_health = 5500
|health_regen = 0
|health_regen = 0
|damage_resist = 75 → -50
|bullet_resist = 0
|bullet_resist = 0
|spirit_resist = 0
|spirit_resist = 0
Line 95: Line 97:
"description": "Unit Health Regen (if applicable)",
"description": "Unit Health Regen (if applicable)",
"type": "number"
"type": "number"
},
"damage_resist": {
"description": "Unit Damage Resistance %",
"type": "string"
},
},
"bullet_resist": {
"bullet_resist": {
Line 167: Line 173:
"max_health",
"max_health",
"health_regen",
"health_regen",
"damage_resist",
"bullet_resist",
"bullet_resist",
"spirit_resist",
"spirit_resist",

Revision as of 18:16, 6 December 2025

Usage

This infobox template is used for NPCs. It should be placed at the top of the page. For the hero infobox, see {{Infobox hero}}.

Examples

{{Infobox unit
|name= Guardian
|Image= Guardian Icon.png
|max_health = 5500
|health_regen = 0
|damage_resist = 75 → -50
|bullet_resist = 0
|spirit_resist = 0
|dps = 28
|bullet_damage = 16
|melee_damage = 200
|stationary =
|move_speed = 0
|stamina = 0
|sprint_speed = 0
|attack_range = 1500
|soul_orbs = 4
|soul_value = 100
}}
Guardian
Stats
Health
Base Health: 5500
Health Regen: 0
Damage Resist: 75 → -50%
Bullet Resist: 0%
Spirit Resist: 0%
Damage
Damage: 16
DPS: 28
Range: 1500
Melee Damage: 200
Souls
Total Souls: Souls100
Soul Orbs: 4


{{Infobox unit
|can_move=true
|name=Ranged Trooper
|Image=Trooper Icon.png
|max_health=300
|health_regen=0
|bullet_resist=0
|spirit_resist=0
|dps=28
|bullet_damage=36
|attack_range=1000
|melee_damage=25
|move_speed=2.4
|sprint_speed=4.33
|soul_value=75
|soul_orbs=1
}}
Ranged Trooper
Stats
Health
Base Health: 300
Health Regen: 0
Bullet Resist: 0%
Spirit Resist: 0%
Damage
Damage: 36
DPS: 28
Range: 1000
Melee Damage: 25
Movement
Move Speed: 2.4 m/s
Sprint Speed: 4.33 m/s
Souls
Total Souls: Souls75
Soul Orbs: 1


Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

Name of the unit

Example
Guardian
Unknownrequired
ImageImage

Image file for the unit. Do not include the File: prefix.

Suggested values
Guardian Icon.png
Default
Guardian Icon.png
Filerequired
max_healthmax_health

Unit Health

Example
5500
Numberoptional
health_regenhealth_regen

Unit Health Regen (if applicable)

Numberoptional
damage_resistdamage_resist

Unit Damage Resistance %

Stringoptional
bullet_resistbullet_resist

Unit Bullet Resistance %

Numberoptional
spirit_resistspirit_resist

Unit Spirit Resistance %

Numberoptional
dpsdps

Player DPS Value of the Unit

Numberoptional
bullet_damagebullet_damage

Individual attack damage

Numberoptional
attack_rangeattack_range

Maximum Attack Range

Numberoptional
melee_damagemelee_damage

Unit melee damage (if applicable)

Numberoptional
move_speedmove_speed

Unit walk speed (if applicable)

Numberoptional
sprint_speedsprint_speed

Unit sprint speed (if applicable)

Numberoptional
soul_valuesoul_value

How many Souls the unit grants in total (Including Base Amount + Soul Orbs)

Numberoptional
soul_orbssoul_orbs

Number of Soul Orbs spawned by the unit on death

Numberoptional
font-sizefont-size

no description

Unknownoptional
can_movecan_move

adds movement boxes

Unknownoptional
voice_actorvoice_actor

voice actor

Unknownoptional
quotesquotes

link to quotes page

Unknownoptional
informationinformation

Information box

Suggested values
true
Unknownoptional