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

◆ OnHitNPCWithProj()

static void Terraria.ModLoader.CombinedHooks.OnHitNPCWithProj ( Projectile projectile,
NPC nPC,
in NPC::HitInfo hit,
int damageDone )
inlinestatic

Definition at line 185 of file CombinedHooks.cs.

186 {
187 ProjectileLoader.OnHitNPC(projectile, nPC, in hit, damageDone);
188 NPCLoader.OnHitByProjectile(nPC, projectile, in hit, damageDone);
189 if (projectile.TryGetOwner(out Player player))
190 {
191 PlayerLoader.OnHitNPCWithProj(player, projectile, nPC, in hit, damageDone);
192 }
193 }

References Terraria.ModLoader.NPCLoader.OnHitByProjectile(), Terraria.ModLoader.ProjectileLoader.OnHitNPC(), Terraria.ModLoader.PlayerLoader.OnHitNPCWithProj(), and Terraria.Projectile.TryGetOwner().

Referenced by Terraria.Projectile.Damage().

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