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

◆ SummonMonkGhast()

void Terraria.Projectile.SummonMonkGhast ( )
inlineprivate

Definition at line 13971 of file Projectile.cs.

13972 {
13973 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
13974 //IL_006e: Unknown result type (might be due to invalid IL or missing references)
13975 //IL_006f: Unknown result type (might be due to invalid IL or missing references)
13976 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
13977 //IL_0040: Unknown result type (might be due to invalid IL or missing references)
13978 //IL_00d2: Unknown result type (might be due to invalid IL or missing references)
13979 //IL_00de: Unknown result type (might be due to invalid IL or missing references)
13980 //IL_00e3: Unknown result type (might be due to invalid IL or missing references)
13981 //IL_00e8: Unknown result type (might be due to invalid IL or missing references)
13982 //IL_00ea: Unknown result type (might be due to invalid IL or missing references)
13983 //IL_00ec: Unknown result type (might be due to invalid IL or missing references)
13984 //IL_00ed: Unknown result type (might be due to invalid IL or missing references)
13985 //IL_00f3: Unknown result type (might be due to invalid IL or missing references)
13986 //IL_00f8: Unknown result type (might be due to invalid IL or missing references)
13987 //IL_00fd: Unknown result type (might be due to invalid IL or missing references)
13988 //IL_00ff: Unknown result type (might be due to invalid IL or missing references)
13989 //IL_0104: Unknown result type (might be due to invalid IL or missing references)
13990 //IL_0109: Unknown result type (might be due to invalid IL or missing references)
13991 //IL_0113: Unknown result type (might be due to invalid IL or missing references)
13992 //IL_0118: Unknown result type (might be due to invalid IL or missing references)
13993 //IL_011d: Unknown result type (might be due to invalid IL or missing references)
13994 //IL_0125: Unknown result type (might be due to invalid IL or missing references)
13995 //IL_0127: Unknown result type (might be due to invalid IL or missing references)
13996 //IL_0095: Unknown result type (might be due to invalid IL or missing references)
13997 //IL_009a: Unknown result type (might be due to invalid IL or missing references)
13998 //IL_009b: Unknown result type (might be due to invalid IL or missing references)
13999 //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
14000 if (localAI[0] > 0f)
14001 {
14002 return;
14003 }
14004 localAI[0] = 1000f;
14005 List<NPC> list = new List<NPC>();
14006 for (int i = 0; i < 200; i++)
14007 {
14008 NPC nPC = Main.npc[i];
14009 if (nPC.CanBeChasedBy(this) && Distance(nPC.Center) < 800f)
14010 {
14011 list.Add(nPC);
14012 }
14013 }
14014 Vector2 center = base.Center;
14015 Vector2 zero = Vector2.Zero;
14016 if (list.Count > 0)
14017 {
14018 NPC nPC2 = list[Main.rand.Next(list.Count)];
14019 center = nPC2.Center;
14020 zero = nPC2.velocity;
14021 }
14022 int num = Main.rand.Next(2) * 2 - 1;
14023 Vector2 vector = default(Vector2);
14024 ((Vector2)(ref vector))._002Ector((float)num * (4f + (float)Main.rand.Next(3)), 0f);
14025 Vector2 vector2 = center + new Vector2((float)(-num * 120), 0f);
14026 vector += (center + zero * 15f - vector2).SafeNormalize(Vector2.Zero) * 2f;
14028 }
float Distance(Vector2 Other)
Definition Entity.cs:275
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int damage
This will always be set in Projectile.NewProjectile based on the weapons damage and player stat modif...
IEntitySource GetProjectileSource_FromThis()
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)
This particular overload uses a Vector2 instead of X and Y to determine the actual spawn position and...

References Terraria.Projectile.damage, Terraria.Entity.Distance(), Terraria.Projectile.GetProjectileSource_FromThis(), Terraria.Projectile.localAI, Terraria.Projectile.NewProjectile(), Terraria.Main.npc, Terraria.Projectile.owner, and Terraria.Main.rand.

Referenced by Terraria.Projectile.Damage().

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