|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Runs M:Terraria.ModLoader.NPCLoader.ModifyIncomingHit(Terraria.NPC,Terraria.NPC.HitModifiers@) hooks and and does the full damage calculations.
The result P:Terraria.NPC.HitInfo.Damage will contain the health the NPC will lose when applied.
| damage | The damage to deal to the NPC, before modifications, defense, resistances etc |
| hitDirection | The hit direction of the resulting strike (1 or -1) |
| crit | Defaults to false |
| knockBack | Defaults to 0 |
| damageType | Defaults to P:Terraria.ModLoader.DamageClass.Default |
| damageVariation | Whether to apply damage variation. Defaults to false. |
| luck | Luck modifier to produce weight damageVariation towards higher (positive) or lower (negative) values. Defaults to 0 |
Definition at line 91759 of file NPC.cs.