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

◆ AI_123_Deerclops_TryMakingSpike()

void Terraria.NPC.AI_123_Deerclops_TryMakingSpike ( ref Point sourceTileCoords,
int dir,
int howMany,
int whichOne,
int xOffset )
inlineprivate

Definition at line 45055 of file NPC.cs.

45056 {
45057 //IL_0043: Unknown result type (might be due to invalid IL or missing references)
45058 //IL_005f: Unknown result type (might be due to invalid IL or missing references)
45059 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
45060 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
45061 //IL_006c: Unknown result type (might be due to invalid IL or missing references)
45062 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
45063 //IL_0075: Unknown result type (might be due to invalid IL or missing references)
45064 int num = 13;
45065 int num2 = sourceTileCoords.X + xOffset * dir;
45067 if (WorldGen.ActiveAndWalkableTile(num2, num3))
45068 {
45069 Vector2 vector = default(Vector2);
45070 ((Vector2)(ref vector))._002Ector((float)(num2 * 16 + 8), (float)(num3 * 16 - 8));
45071 Vector2 vector2 = Utils.RotatedBy(new Vector2(0f, -1f), (float)(whichOne * dir) * 0.7f * ((float)Math.PI / 4f / (float)howMany));
45072 Projectile.NewProjectile(GetSpawnSource_ForProjectile(), vector, vector2, 961, num, 0f, Main.myPlayer, 0f, 0.1f + Main.rand.NextFloat() * 0.1f + (float)xOffset * 1.1f / (float)howMany);
45073 }
45074 }
int AI_123_Deerclops_TryMakingSpike_FindBestY(ref Point sourceTileCoords, int x)
Definition NPC.cs:45076
IEntitySource GetSpawnSource_ForProjectile()
Definition NPC.cs:107558

References Terraria.WorldGen.ActiveAndWalkableTile(), Terraria.NPC.AI_123_Deerclops_TryMakingSpike_FindBestY(), Terraria.NPC.GetSpawnSource_ForProjectile(), Terraria.Main.myPlayer, Terraria.Projectile.NewProjectile(), Terraria.Main.rand, and Terraria.Utils.RotatedBy().

Referenced by Terraria.NPC.AI_123_Deerclops_MakeSpikesBothSides(), and Terraria.NPC.AI_123_Deerclops_MakeSpikesForward().

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