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

◆ IsDamageDodgable()

bool Terraria.Projectile.IsDamageDodgable ( )
inline

Definition at line 13860 of file Projectile.cs.

13861 {
13862 int num = type;
13863 if (((uint)(num - 871) <= 3u || num == 919 || (uint)(num - 923) <= 1u) && damage == 9999)
13864 {
13865 return false;
13866 }
13867 return true;
13868 }
int damage
This will always be set in Projectile.NewProjectile based on the weapons damage and player stat modif...
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...

References Terraria.Projectile.damage, and Terraria.Projectile.type.

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

+ Here is the caller graph for this function: