109536 {
109537
109538
109541 {
109543 }
109545 int num4 = ((!(thatNPC.Center.X >
base.Center.X)) ? 1 : (-1));
109550 if (Main.netMode != 0)
109551 {
109552 NetMessage.SendStrikeNPC(
this,
in strike);
109553 }
109559 {
109564 if (Main.netMode != 0)
109565 {
109567 }
109568 thatNPC.netUpdate = true;
109570 }
109572 {
109577 if (Main.netMode != 0)
109578 {
109580 }
109581 thatNPC.netUpdate = true;
109583 }
109584 }
static bool[] HurtingBees
If true for a given NPC type (F:Terraria.NPC.type), then that NPC is a bee that will hurt other non-b...
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,...
static void ModifyHitNPC(NPC npc, NPC target, ref NPC.HitModifiers modifiers)
static void OnHitNPC(NPC npc, NPC target, in NPC.HitInfo hit)
This serves as the central class from which NPC-related functions are carried out....
int[] immune
This determines if an NPC can be hit by a item or projectile owned by a particular player (it is an a...
int damage
The amount of contact damage this NPC deals. Changing this WILL NOT change the amount of damage done...
int StrikeNPC(int Damage, float knockBack, int hitDirection, bool crit=false, bool fromNet=false, bool noPlayerInteraction=false)
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
HitModifiers GetIncomingStrikeModifiers(DamageClass damageType, int hitDirection, bool ignoreArmorDebuffs=false)
Initializes a T:Terraria.NPC.HitModifiers calculation with the properties of this NPC,...