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

◆ AI_123_Deerclops_MakeSpikesForward()

void Terraria.NPC.AI_123_Deerclops_MakeSpikesForward ( int AISLOT_PhaseCounter,
NPCAimedTarget targetData )
inlineprivate

Definition at line 44931 of file NPC.cs.

44932 {
44933 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
44934 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
44935 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
44936 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
44937 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
44938 int num = 9;
44939 int num2 = 4;
44940 if (Main.netMode == 1)
44941 {
44942 return;
44943 }
44944 int num3 = num * num2;
44945 if (!(ai[AISLOT_PhaseCounter] < (float)num3))
44946 {
44947 Point sourceTileCoords = base.Bottom.ToTileCoordinates();
44948 int num4 = 20;
44949 int num5 = 1;
44950 sourceTileCoords.X += direction * 3;
44951 int num9 = (int)ai[AISLOT_PhaseCounter] - num3;
44952 if (num9 == 0)
44953 {
44954 PunchCameraModifier modifier = new PunchCameraModifier(base.Center, new Vector2(0f, 1f), 20f, 6f, 30, 1000f, "Deerclops");
44955 Main.instance.CameraModifiers.Add(modifier);
44956 }
44957 int num6 = 4;
44958 int num7 = num9 / num6 * num6;
44959 int num8 = num7 + num6;
44960 if (num9 % num6 != 0)
44961 {
44962 num8 = num7;
44963 }
44964 for (int i = num7; i < num8 && i < num4; i++)
44965 {
44966 int xOffset = i * num5;
44968 }
44969 }
44970 }
void AI_123_Deerclops_TryMakingSpike(ref Point sourceTileCoords, int dir, int howMany, int whichOne, int xOffset)
Definition NPC.cs:45055
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
Definition NPC.cs:997

References Terraria.NPC.ai, Terraria.NPC.AI_123_Deerclops_TryMakingSpike(), Terraria.Entity.direction, Terraria.Main.instance, and Terraria.Main.netMode.

Referenced by Terraria.NPC.AI_123_Deerclops().

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