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

◆ CritChance

int Terraria.Projectile.CritChance
getset

The critical strike chance modifier of this projectile. Cannot be set to negative values. Defaults to 0. On spawn, if this projectile was fired from a weapon, this value has the total critical strike chance of the weapon that made the projectile added to itself.

Definition at line 635 of file Projectile.cs.

636 {
637 get
638 {
639 return _crit;
640 }
641 set
642 {
643 _crit = Math.Max(0, value);
644 }
645 }

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