40077 {
40080 {
40081 if (player.dead)
40082 {
40083 player.babyBird = false;
40084 }
40085 if (player.babyBird)
40086 {
40088 }
40090 {
40092 if (++
frame >= Main.projFrames[
type] - 1)
40093 {
40095 }
40096 }
40097 }
40098 float num = 6f;
40105 {
40107 if (player.Distance(
nPC.Center) > (
float)
num3)
40108 {
40110 }
40111 }
40113 {
40115 {
40117 }
40123 {
40126 {
40128 }
40130 {
40132 }
40133 }
40135 {
40138 }
40139 else
40140 {
40145 {
40147 }
40148 }
40149 float num6 = 0.025f;
40151 for (
int i = 0;
i < 1000;
i++)
40152 {
40154 {
40155 if (
position.
X < Main.projectile[i].position.X)
40156 {
40157 velocity.X -=
num6;
40158 }
40159 else
40160 {
40161 velocity.X +=
num6;
40162 }
40163 if (
position.
Y < Main.projectile[i].position.Y)
40164 {
40165 velocity.Y -=
num6;
40166 }
40167 else
40168 {
40169 velocity.Y +=
num6;
40170 }
40171 }
40172 }
40174 direction = ((velocity.X > 0f) ? 1 : (-1));
40176 return;
40177 }
40185 bool flag = player.gravDir > 0f && player.fullRotation == 0f && player.headRotation == 0f;
40187 {
40194 }
40195 else if (
num8 > 40f)
40196 {
40202 {
40204 }
40205 float num10 = 0.05f;
40207 for (
int j = 0;
j < 1000;
j++)
40208 {
40210 {
40211 if (
position.
X < Main.projectile[
j].position.X)
40212 {
40213 velocity.X -=
num10;
40214 }
40215 else
40216 {
40217 velocity.X +=
num10;
40218 }
40219 if (
position.
Y < Main.projectile[
j].position.Y)
40220 {
40221 velocity.Y -=
num10;
40222 }
40223 else
40224 {
40225 velocity.Y +=
num10;
40226 }
40227 }
40228 }
40230 direction = ((velocity.X > 0f) ? 1 : (-1));
40232 }
40233 else if (
num8 > 8f + player.velocity.Length())
40234 {
40238 {
40240 }
40242 direction = ((velocity.X > 0f) ? 1 : (-1));
40244 }
40245 else if (flag)
40246 {
40253 }
40254 }
static float Lerp(float value1, float value2, float amount)
static double Abs(double value)
static int Sign(decimal value)
float Distance(Vector2 Other)
Vector2 DirectionTo(Vector2 Destination)
void Minion_FindTargetInRange(int startAttackRange, ref int attackTarget, bool skipIfCannotHitWithOwnBody, Func< Entity, int, bool > customEliminationCheck=null)
static Vector2 AI_158_GetHomeLocation(Player master, int stackedIndex)
void AI_GetMyGroupIndexAndFillBlackList(List< int > blackListedTargets, out int index, out int totalIndexesInGroup)
static List< int > _ai158_blacklistedTargets
static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)