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

◆ GetKnockback()

readonly float Terraria.NPC.HitModifiers.GetKnockback ( float baseKnockback)
inline

Definition at line 314 of file NPC.cs.

315 {
316 return Math.Max(Knockback.ApplyTo(baseKnockback), 0f);
317 }
float ApplyTo(float baseValue)
Use this to apply the modifiers of this T:Terraria.ModLoader.StatModifier to the baseValue ....
StatModifier Knockback
Used by F:Terraria.NPC.onFire2 buff (additive) and F:Terraria.NPC.knockBackResist (multiplicative) ...
Definition NPC.cs:173

References Terraria.ModLoader.StatModifier.ApplyTo(), and Terraria.NPC.HitModifiers.Knockback.

Referenced by Terraria.NPC.HitModifiers.ToHitInfo().

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