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

◆ ModifyHitNPCWithProj()

static void Terraria.ModLoader.CombinedHooks.ModifyHitNPCWithProj ( Projectile projectile,
NPC nPC,
ref NPC::HitModifiers modifiers )
inlinestatic

Definition at line 175 of file CombinedHooks.cs.

176 {
177 ProjectileLoader.ModifyHitNPC(projectile, nPC, ref modifiers);
178 NPCLoader.ModifyHitByProjectile(nPC, projectile, ref modifiers);
179 if (projectile.TryGetOwner(out Player player))
180 {
181 PlayerLoader.ModifyHitNPCWithProj(player, projectile, nPC, ref modifiers);
182 }
183 }

References Terraria.ModLoader.NPCLoader.ModifyHitByProjectile(), Terraria.ModLoader.ProjectileLoader.ModifyHitNPC(), Terraria.ModLoader.PlayerLoader.ModifyHitNPCWithProj(), 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: