Defense is a statistic that determines the decrease in damage taken per hit. The player's defense can be increased by wearing armor and accessories, and temporarily boosted by various buffs, tile entities, and permanent upgrades. Damage taken by players is reduced by half / 75*3/4 (75%) / 100% of their defense, rounded down. Enemies also have a defense statistic.
No hit can be reduced below 1 damage, regardless of defense (with the exception of a player whose multiplayer ally is wearing a Paladin's Shield).
Some forms of damage are impossible to reduce through defense, e.g. damage from health-draining debuffs like Cursed Inferno or from drowning in water. Damage taken from lava, however, can be reduced through defense.
Players[]
Defense gives a flat reduction in damage, i.e. damage is reduced by a fixed amount per hit (as opposed to a multiplicative damage reduction, which would reduce damage by a percentage). It is calculated after the general ±15% damage randomization.
The formula is:net dmg = ⌊attack dmg - def × factor⌋
, where factor
is 0.5
in Classic Mode, 0.75
in Expert Mode, and 1
in Master Mode.[1]
Examples[]
Enemies[]
Enemies have a defense statistic just like players do, but they do not gain more protection from defense in Expert Mode or Master Mode. They will always reduce incoming damage by 50% of their defense: net dmg = ⌊attack dmg - def × 0.5⌋
.
Critical hits against enemies will double the net damage value. In other words, the crit damage multiplier is taken into account after the attack's damage has already been reduced by defense.
Examples[]
Weapon | Green Slime 0 defense
|
Chaos Elemental 30 defense
|
Paladin 50 defense
|
Sharkron 100 defense
|
---|---|---|---|---|
Gold Broadsword 15 damage
|
15 | 1 (0) | 1 (-10) | 1 (-35) |
Meowmere 200 damage
|
200 | 185 | 175 | 150 |
Boosts[]
Armor and accessories[]
A player's defense score can be increased by equipping armor and accessories. Armor usually consists of three items, granting an additional bonus if all pieces match, the set bonus, which may increase the defense score further. Some accessories grant direct defense boosts (see the following table), but all accessories can also be reforged to a maximum of +4 defense per accessory.
See armor for detailed defense information about every piece of armor.
Item | Acc. defense |
---|---|
Cobalt Shield | 1 |
Obsidian Skull | 1 |
Shackle | 1 |
Obsidian Shield | 2 |
Shield of Cthulhu | 2 |
Ankh Shield | 4 |
Frozen Shield | 6 |
Paladin's Shield | 6 |
Berserker's Glove | 8 |
Flesh Knuckles | 8 |
Hero Shield | 10 |
Item | Accessory defense |
---|---|
Moon Charm | 3 (only during the night) |
Moon Shell | 3 (only during the night) |
Moon Stone | 4 (only during the night) |
Sun Stone | 4 (only during the day) |
Celestial Shell |
4 (during the day) 7 (during the night) |
Frozen Turtle Shell |
Buffs and debuffs[]
Buffs and debuffs can temporarily alter a player's or an enemy's defense. Currently, there is no buff increasing enemies' defense. A player's defense cannot be reduced to fall below 0.
Buff/Debuff | Buff/debuff defense |
---|---|
Well Fed | 2 |
Plenty Satisfied |
3 |
Exquisitely Stuffed |
4 |
The Bast Defense |
5 |
Dryad's Blessing |
8 |
Ironskin | 8 |
Tipsy | −4 |
Weak | −4 |
Ichor | −15 |
Betsy's Curse |
−40 |
Broken Armor | −50% |
Armor penetration []
Armor penetration is a hidden player statistic that determines the amount of the enemy's defense portion that is ignored when dealing damage to it. For instance, a Pixie normally has 20 defense. If the player has the Shark Tooth/Stinger Necklace equipped, then the Pixie will be taken to have 15 defense instead.
The following items grant armor penetration:
Item | Armor penetration | |
---|---|---|
Shark Tooth Necklace |
5 | |
Stinger Necklace |
5 | |
Sharpening Station |
12 (for melee weapons only) |
In addition, the projectiles of certain weapons and accessories have their own armor penetration stat, which is added to the player's armor penetration when inflicting damage upon an enemy with them:[2]
Item | Armor penetration | |
---|---|---|
Blade Staff |
25 | |
Dark Harvest |
50 | |
Cool Whip |
30 | |
Bone Glove |
||
Crystal Vile Shard |
||
Nettle Burst | ||
Wasp Gun | ||
Star Cloakand its upgrades | ||
Arkhalis |
||
Weather Pain |
Maximum defense[]
The highest possible defense can be attained using the setups described in the following sections.
On PC version, Console version, Mobile version, and tModLoader version, the maximum possible defense is 186 / 196 / 204, while on Old-gen console version, Windows Phone version, Old Chinese version, Nintendo version, and tModLoader 1.3-Legacy version, it is 181 / 191 / 199. The setups are the same:
Guarding with the Brand of the Inferno or Sergeant United Shield
tModLoader 1.3-Legacy version[]
The maximum possible defense is 165 / 173:
- Guarding with the Brand of the Inferno
Old-gen console version, Windows Phone version, and Nintendo version[]
The maximum possible defense is 128:
Trivia[]
- Although not possible in-game, if a piece of armor were to gain a modifier, it would apply the effects just like an accessory would. For example, a set of Warding modified armor would add 12 defense total; each piece adding 4 defense to the total.
- Damage dealt by enemies is doubled in Expert Mode
and tripled in Master Modecompared to normal mode. This means that despite the higher factors of defense in those modes, defense is still generally less effective than in normal mode. - If the player somehow has negative defense, they will take more damage according to the damage taken added with half / three quarters / full amount the defense.
See also[]
References[]
- ↑ Information taken from the PC 1.4.1.2 source code, method
CalculateDamagePlayersTake()
inTerraria.Main.cs
. There may be inaccuracies, as the current PC version is 1.4.4.9. - ↑ Information taken from the PC 1.4.2.1 source code, method
Damage()
inTerraria.Projectile.cs
. There may be inaccuracies, as the current PC version is 1.4.4.9.