Definition at line 37975 of file NPC.cs.
37976 {
37978 {
37981 }
37984 {
37987 }
37989 {
37993 {
37995 }
37996 return;
37997 }
38001 for (
int i = 0;
i < 200;
i++)
38002 {
38003 if (Main.npc[i].active && Main.npc[i].type ==
type && i !=
whoAmI)
38004 {
38006 if (
vector.Length() < 50f)
38007 {
38011 velocity.X -= vector.X * 1f;
38012 }
38013 }
38014 }
38015 }
static void PlaySound(int type, Vector2 position, int style=1)
static readonly LegacySoundStyle NPCHit6
void TargetClosest(bool faceTarget=true)
NPCAimedTarget GetTargetData(bool ignorePlayerTankPets=true)
double StrikeNPCNoInteraction(int Damage, float knockBack, int hitDirection, bool crit=false, bool noEffect=false, bool fromNet=false)
References Terraria.NPC.alpha, Terraria.NPC.GetTargetData(), Terraria.NPC.localAI, Terraria.Main.npc, Terraria.ID.SoundID.NPCHit6, Terraria.Audio.SoundEngine.PlaySound(), Terraria.Entity.position, Terraria.NPC.StrikeNPCNoInteraction(), Terraria.NPC.TargetClosest(), Terraria.NPC.type, Terraria.Entity.velocity, Terraria.Entity.whoAmI, and Microsoft.Xna.Framework.Vector2.Zero.
Referenced by Terraria.NPC.AI().