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

◆ HitInfo()

Terraria.NPC.HitInfo.HitInfo ( )
inline

Definition at line 417 of file NPC.cs.

418 {
420 _sourceDamage = 1;
421 _damage = 1;
422 Crit = false;
423 HitDirection = 0;
424 Knockback = 0f;
425 InstantKill = false;
426 HideCombatText = false;
427 }
static DamageClass Default
Default damage class for non-classed weapons and items, does not benefit from Generic bonuses.
T:Terraria.ModLoader.DamageClass is used to determine the application of item effects,...
bool InstantKill
If true, as much damage as necessary will be dealt, and damage number popups will not be shown for th...
Definition NPC.cs:371
DamageClass DamageType
The DamageType of the hit.
Definition NPC.cs:345
bool Crit
Whether or not the hit is a crit.
Definition NPC.cs:354
bool HideCombatText
If true, damage number popups will not be shown for this hit.
Definition NPC.cs:376
float Knockback
The amount of knockback to apply. Should always be >= 0. Note that M:Terraria.NPC....
Definition NPC.cs:365
int HitDirection
The direction to apply knockback in.
Definition NPC.cs:359

References Terraria.NPC.HitInfo._damage, Terraria.NPC.HitInfo._sourceDamage, Terraria.NPC.HitInfo.Crit, Terraria.NPC.HitInfo.DamageType, Terraria.ModLoader.DamageClass.Default, Terraria.NPC.HitInfo.HideCombatText, Terraria.NPC.HitInfo.HitDirection, Terraria.NPC.HitInfo.InstantKill, and Terraria.NPC.HitInfo.Knockback.