41876 {
41877 bool flag =
type == 755;
41879 int num = 60;
41880 int num2 = num - 1;
41881 int num3 = num + 60;
41883 int num5 = num + 1;
41884 if (flag)
41885 {
41886 num = 66;
41887 }
41889 {
41890 num = 40;
41895 }
41898 {
41902 }
41904 {
41911 {
41914 }
41915 return;
41916 }
41918 {
41919 if (flag)
41920 {
41925 if (Main.rand.Next(20) == 0)
41926 {
41929 {
41934 return;
41935 }
41936 }
41937 }
41939 {
41940 return;
41941 }
41947 if (Main.rand.Next(20) == 0)
41948 {
41951 {
41953 ai[0] = Main.rand.NextFromList<
int>(num,
num3);
41957 }
41958 }
41959 return;
41960 }
41961 if (flag)
41962 {
41964 if (!Main.npc.IndexInRange(
num8))
41965 {
41968 return;
41969 }
41971 if (!
nPC.CanBeChasedBy(
this))
41972 {
41975 return;
41976 }
41978 if (
ai[0] >= (
float)
num2)
41979 {
41981 if (
ai[0] == (
float)
num2)
41982 {
41985 }
41986 return;
41987 }
41991 {
41993 }
42008 {
42011 {
42016 return;
42017 }
42020 }
42021 }
42023 {
42024 return;
42025 }
42030 if (
ai[0] >= (
float)
num5)
42031 {
42035 }
42037 if (!Main.npc.IndexInRange(
num17))
42038 {
42041 {
42042 ai[0] = Main.rand.NextFromList<
int>(num,
num3);
42046 }
42047 else
42048 {
42052 }
42053 return;
42054 }
42056 if (!
nPC2.CanBeChasedBy(
this))
42057 {
42060 {
42061 ai[0] = Main.rand.NextFromList<
int>(num,
num3);
42065 }
42066 else
42067 {
42071 }
42072 return;
42073 }
42076 {
42079 {
42082 }
42083 }
42086 {
42089 {
42091 }
42097 spinningpoint2.Y *= 0.5f;
42098 spinningpoint2.Y *= 0.8f + (float)
Math.
Sin((
float)
identity * 2.3f) * 0.2f;
42108 }
42110 {
42122 {
42124 }
42125 }
42127 {
42130 {
42131 ai[0] = Main.rand.NextFromList<
int>(num,
num3);
42135 }
42136 else
42137 {
42141 }
42142 }
42143 }
static float WrapAngle(float angle)
static float Clamp(float value, float min, float max)
static double Sin(double a)
float Distance(Vector2 Other)
void AI_156_GetIdlePosition(int stackedIndex, int totalIndexes, out Vector2 idleSpot, out float idleRotation)
void AI_156_StartAttack()
void AI_GetMyGroupIndexAndFillBlackList(List< int > blackListedTargets, out int index, out int totalIndexesInGroup)
int AI_156_TryAttackingNPCs(List< int > blackListedTargets, bool skipBodyCheck=false)
static Vector2 SmoothStep(Vector2 value1, Vector2 value2, float amount)
static float Distance(Vector2 value1, Vector2 value2)
static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)