Defesa

Fonte: Terraria Wiki
Saltar para a navegação Saltar para a pesquisa
Guide.png
Página marcada para tradução.
Se você conhece um pouco de inglês, ajude traduzindo a página aqui.
Última edição por PedroX em 2024-01-07 15:49:33.
Defense.png
(Versões para Computador, Console e Celular)
The defense icon in-game.

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/decreased by various buffs/debuffs. Enemies also have a defense statistic.

Defense cannot be reduced to below 0.[1] Furthermore, the damage dealt to an entity will always be at least 1, 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 damage over time debuffs like Cursed Inferno or from drowning in water. Damage taken from lava, however, can be reduced through defense.

Some items have the ability of armor penetration, which, in most cases, allows them to ignore some or all of the target's defense when calculating damage.

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 = \lfloorattack dmg - def × factor\rfloor, where factor is 0.5 in Classic Mode, 0.75 in Modo Perito(Versões para Computador, Console e Celular), and 1 in Modo Mestre(Versões para Computador, Console e Celular). When calculating damage in PvP, the factor is always 0.5, regardless of difficulty.[2]

Examples

Atk. dmg Def. Net damage
Classic mode icon.png Classic Expert mode icon.png Expert Master mode icon.png Master
40 20 30
<floor40 - 20 * 0.5\rfloor = 30
25
<floor40 - 20 * 0.75\rfloor = 25
20
<floor40 - 20 * 1\rfloor = 20
40 30 25
<floor40 - 30 * 0.5\rfloor = 25
17
<floor40 - 30 * 0.75\rfloor = 17
10
<floor40 - 30 * 1\rfloor = 10
75 20 65
<floor75 - 20 * 0.5\rfloor = 65
60
<floor75 - 20 * 0.75\rfloor = 60
55
<floor75 - 20 * 1\rfloor = 55
75 30 60
<floor75 - 30 * 0.5\rfloor = 60
52
<floor75 - 30 * 0.75\rfloor = 52
45
<floor75 - 30 * 1\rfloor = 45

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 = \lfloorattack dmg - def × 0.5\rfloor.

Examples

Weapon Geleia verdeGeleia verde0 defense Elemental do CaosElemental do Caos30 defense PaladinoPaladino50 defense Tubarão-dragãoTubarão-dragão100 defense
Espada Larga de OuroEspada Larga de Ouro15 damage 15 1 (0) 1 (-10) 1 (-35)
Espada-GatoEspada-Gato200 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 have defense-increasing modifiers.

See armor for detailed defense information about every piece of armor.

Item Accessory defense
Caveira de ObsidianaCaveira de Obsidiana2
Escudo CongeladoEscudo Congelado(Versões para Computador, Console e Celular)6
Item Accessory defense
Amuleto da LuaAmuleto da Lua 3 (only during the night)
Concha da LuaConcha da Lua 3 (only during the night)
Pedra da LuaPedra da Lua 4 (only during the night)
Pedra do SolPedra do Sol 4 (only during the day)
Casco CelestialCasco Celestial(Versões para Computador, Console e Celular) 4 (during the day)
7 (during the night)
Casco de Tartaruga CongeladaCasco de Tartaruga Congelada (Versões para Old-gen console e 3DS) 30 (when below 25% health)
Modifier Defense
Hard 1
Guarding 2
Armored 3
Warding 4

Buffs and debuffs

Buffs and debuffs can temporarily alter a player's or an enemy's defense. The defense of enemies cannot be increased, only decreased.

Buff/Debuff Buff/debuff defense
Bem alimentadoBem alimentado 2
Muito satisfeitoMuito satisfeito(Versões para Computador, Console e Celular) 3
Extremamente satisfeitoExtremamente satisfeito(Versões para Computador, Console e Celular) 4
A melhor defesaA melhor defesa(Versões para Computador, Console e Celular) 5
Bênção da DríadeBênção da Dríade(Versões para Computador, Console e Celular) 8
Pele de ferroPele de ferro 8
TontoTonto −4
FracoFraco −4
Ichor (debuff)Ichor (Versões para Computador, Console e Celular)−15 (only for players) / (Versões para Old-gen console e 3DS)−20
Armadura quebradaArmadura quebrada −50%
Armadura RessecadaArmadura Ressecada(Versões para Computador, Console e Celular) −50%

Other

These miscellaneous effects increase the player's defense.

Item Defense
Fruta AegisFruta Aegis(Versões para Computador, Console e Celular) 4 (permanently)
Marca do InfernoMarca do Inferno(Versões para Computador, Console e Celular) 20 (while guarding)
Escudo do Sargento UnidoEscudo do Sargento Unido(Versões para Computador, Console e Celular) 20 (while guarding)

Armor penetration

Versão para ComputadorVersão para ConsoleVersão para Celular
Conteúdo exclusivo para Computador/Console/Celular Estas informações desta seção se aplicam somente às versões para Computador, Console e Celular do Terraria.

Armor penetration is a hidden player statistic that determines the effective amount of the enemy's defense portion that is ignored when dealing damage to it. It works by increasing the damage dealt as follows:[3]

  • If the player's total armor penetration is greater than the enemy's defense, the damage is increased by half of the enemy's defense. This means that the entirety of the enemy's defense is effectively ignored (as the enemy's damage reduction by half its defense – see above – is canceled out).
  • If the player's total armor penetration is lower than or equal to the enemy's defense, the damage is increased by half of the armor penetration value. This means that any amount between nearly none and all of the enemy's defense is effectively ignored, depending on the specific values.

See below for examples.

All following armor penetration values are stackable with each other, and all decimals are rounded down in damage calculations.

The following debuffs increases armor penetration when calculating damage towards affected entities:

Debuff Armor penetration
Ichor (debuff) Ichor 15
Maldição de Betsy Maldição de Betsy 40

The following items grant armor penetration:

Item Armor penetration
Colar do Dente de Tubarão Colar do Dente de Tubarão 5
Colar de Ferrão Colar de Ferrão 5
Estação de Afiar Estação de Afiar 12 (only while holding a melee weapon)
Pacote de Colmeias Pacote de Colmeias 5 (for Wasp Gun only)

In addition, the projectiles of certain weapons and accessories have an own armor penetration stat, which is added to the player's armor penetration when inflicting damage upon an enemy with them:[4]

Item Armor penetration
Cajado com Lâminas Cajado com Lâminas 25
Colheita Maldita Colheita Maldita("dark energy") 50
Chicote Gelado Chicote Gelado(snowflake) 30
Destruidor da Luz Destruidor da Luz(slash of darkness) 5
Folha de Grama Folha de Grama(projectile) 20
Muramasa Muramasa(slash) 5
Luva de Osso Luva de Osso 25
Fragmento de Cristal Infame Fragmento de Cristal Infame 10
Explosão de Urtiga Explosão de Urtiga 10
Pistola de Vespas Pistola de Vespas 10
Manto das Estrelas Manto das Estrelasand its upgrades 25
Arkhalis Arkhalis 20
Veleta Dolorosa Veleta Dolorosa 10
Lança-Chamas Lança-Chamas 15
Incinerador de Elfos Incinerador de Elfos 15

Examples

Enemy Player
AP
Increased
damage
Explanation
Geleia verdeGeleia verde0 defense 0 0 AP ≤ defense, so increase is AP/2
10 0 AP > defense, so increase is defense/2
Elemental do CaosElemental do Caos30 defense 0 0 AP ≤ defense, so increase is AP/2 (0% of defense ignored)
10 5 AP ≤ defense, so increase is AP/2 (33.33% of defense ignored)
40 15 AP > defense, so increase is defense/2 (100% of defense ignored)
Tubarão-dragão
Tubarão-dragão
100 defense
5 2 AP ≤ defense, so increase is AP/2 (4% of defense ignored)
10 5 AP ≤ defense, so increase is AP/2 (10% of defense ignored)
40 20 AP ≤ defense, so increase is AP/2 (40% of defense ignored)
100 50 AP ≤ defense, so increase is AP/2 (100% of defense ignored)
(This is a theoretical example, as it is possible but impractical to maintain 100 AP.)

Maximum defense

The highest possible defense can be attained using the setups described in the following sections.

Versão para Computador Versão para Computador, Versão para Console Versão para Console e Versão para Celular Versão para Celular

The maximum possible defense is 190 / 200 / 208:

Armor (82 defense)
  • Elmo das Chamas do SolElmo das Chamas do Sol or Máscara ConsagradaMáscara Consagrada
  • Peitoral das Chamas do SolPeitoral das Chamas do Sol
  • Grevas do Cavaleiro de ValhallaGrevas do Cavaleiro de Valhalla
Accessories (59 / 69 / 77 defense)
  • At night, when not submerged in water
  • Warding modifiers on all accessories
Buffs (25 defense)
Other (24 defense)

Guarding with the Marca do InfernoMarca do Inferno or Escudo do Sargento UnidoEscudo do Sargento Unido
Consuming an Fruta AegisFruta Aegis

Versão para Console old-gen Versão para Console old-gen e Versão para Nintendo 3DSVersão para Nintendo 3DS

The maximum possible defense is 128:

Armor (76 defense)
  • Máscara de dragãoMáscara de dragão
  • Concha de BesouroConcha de Besouro
  • Calças de BesouroCalças de Besouro
Accessories (42 defense)
  • Escudo do PaladinoEscudo do Paladino
  • Escudo de AnkhEscudo de Ankh
  • Pedra da LuaPedra da Lua or Pedra do SolPedra do Sol
  • Casco de Tartaruga CongeladaCasco de Tartaruga Congelada
  • Pedra CelestialPedra Celestial
  • At night or day (depending on Moon/Sun Stone), at low health
  • Warding modifiers on all accessories
Buffs (10 defense)
  • Pele de ferroPele de ferro
  • Bem alimentadoBem alimentado

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 Modo Perito(Versões para Computador, Console e Celular) and tripled in Modo Mestre(Versões para Computador, Console e Celular) compared to Classic Mode. This means that despite the higher factors of defense in those modes, players will still take more damage than they would in Classic 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

  • Damage reduction

References

  1. Informação obtida do código fonte da Versão para Computador Computador 1.4.3.6, method StrikeNPC() in Terraria.NPC.cs. Podem existir imprecisões, já que a versão atual da Versão para Computador Versão para Computador é 1.4.4.9.
  2. Informação obtida do código fonte da Versão para Computador Computador 1.4.4.9, methods CalculateDamagePlayersTake() in Terraria.Main.cs e CalculateDamagePlayersTakeInPVP() in Terraria.Main.cs.
  3. Informação obtida do código fonte da Versão para Computador Computador 1.4.4.9, method checkArmorPenetration() in Terraria.NPC.cs.
  4. Informação obtida do código fonte da Versão para Computador Computador 1.4.2.1, method Damage() in Terraria.Projectile.cs. Podem existir imprecisões, já que a versão atual da Versão para Computador Versão para Computador é 1.4.4.9.