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

◆ PopAllAttachedProjectilesAndTakeDamageForThem()

void Terraria.NPC.PopAllAttachedProjectilesAndTakeDamageForThem ( )
inline

Definition at line 13798 of file NPC.cs.

13799 {
13801 for (int i = 0; i < 1000; i++)
13802 {
13803 Projectile projectile = Main.projectile[i];
13804 if (projectile.active && projectile.owner == Main.myPlayer && isAnNPCAttachedExplosive[projectile.type] && projectile.IsAttachedTo(this))
13805 {
13806 projectile.Kill();
13807 }
13808 }
13809 }
static bool[] IsAnNPCAttachedExplosive
If true for a given projectile type (F:Terraria.Projectile.type), then that projectile is an explosiv...

References Terraria.Entity.active, Terraria.ID.ProjectileID.Sets.IsAnNPCAttachedExplosive, Terraria.Projectile.IsAttachedTo(), Terraria.Projectile.Kill(), Terraria.Main.myPlayer, Terraria.Projectile.owner, Terraria.Main.projectile, and Terraria.Projectile.type.

Referenced by Terraria.NPC.VanillaAI_Inner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: