TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ArmorPenetration

int Terraria.Projectile.ArmorPenetration
getset

The number of defense points that this projectile can ignore on its own. Cannot be set to negative values. Defaults to 0. On spawn, if this projectile was fired from a weapon, this value has the total armor penetration of the weapon that made the projectile added to itself.

Definition at line 619 of file Projectile.cs.

620 {
621 get
622 {
623 return _armorPenetration;
624 }
625 set
626 {
627 _armorPenetration = Math.Max(0, value);
628 }
629 }

Referenced by Terraria.Projectile.BombsHurtPlayers(), Terraria.Projectile.Damage(), Terraria.Projectile.SetDefaults(), and Terraria.Projectile.Update().