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

◆ AI_123_Deerclops_MakeSpikesBothSides()

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

Definition at line 44972 of file NPC.cs.

44973 {
44974 //IL_001c: Unknown result type (might be due to invalid IL or missing references)
44975 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
44976 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
44977 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
44978 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
44979 if (Main.netMode == 1)
44980 {
44981 return;
44982 }
44983 int num = 56;
44984 if (!(ai[AISLOT_PhaseCounter] < (float)num))
44985 {
44986 Point sourceTileCoords = base.Bottom.ToTileCoordinates();
44987 int num2 = 15;
44988 int num3 = 1;
44989 int num7 = (int)ai[AISLOT_PhaseCounter] - num;
44990 if (num7 == 0)
44991 {
44992 PunchCameraModifier modifier = new PunchCameraModifier(base.Center, new Vector2(0f, 1f), 20f, 6f, 30, 1000f, "Deerclops");
44993 Main.instance.CameraModifiers.Add(modifier);
44994 }
44995 int num4 = 2;
44996 int num5 = num7 / num4 * num4;
44997 int num6 = num5 + num4;
44998 if (num7 % num4 != 0)
44999 {
45000 num6 = num5;
45001 }
45002 for (int i = num5; i >= 0 && i < num6 && i < num2; i++)
45003 {
45004 int xOffset = i * num3;
45007 }
45008 }
45009 }
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: