36186 {
36188 bool flag = Main.player[
owner].dead;
36189 if (!flag)
36190 {
36192 }
36193 if (flag)
36194 {
36196 return;
36197 }
36198 Main.player[
owner].SetDummyItemTime(10);
36200 {
36201 Main.player[
owner].ChangeDir(1);
36203 }
36204 else
36205 {
36206 Main.player[
owner].ChangeDir(-1);
36208 }
36211 float num = mountedCenter.X -
vector.X;
36215 {
36218 {
36220 }
36222 {
36224 }
36226 {
36228 }
36231 {
36234 }
36235 else if (!Main.player[
owner].channel)
36236 {
36238 {
36239 velocity.Y *= 0.9f;
36240 }
36241 velocity.Y += 1f;
36242 velocity.X *= 0.9f;
36243 }
36244 }
36245 else if (
ai[0] == 1f)
36246 {
36247 float meleeSpeed = Main.player[
owner].meleeSpeed;
36248 float num5 = 14f / meleeSpeed;
36249 float num6 = 0.9f / meleeSpeed;
36250 float num7 = 300f / meleeSpeed;
36253 {
36257 }
36259 {
36264 }
36266 {
36271 }
36275 {
36277 }
36279 {
36282 {
36284 }
36287 {
36289 }
36290 }
36292 {
36294 }
36296 {
36307 velocity.X *= 0.98f;
36308 velocity.Y *= 0.98f;
36309 velocity.X +=
num9;
36310 velocity.Y +=
num10;
36311 }
36312 else
36313 {
36315 {
36316 velocity.X *= 0.96f;
36317 velocity.Y += 0.2f;
36318 }
36319 if (Main.player[
owner].velocity.X == 0f)
36320 {
36321 velocity.X *= 0.96f;
36322 }
36323 }
36324 }
36326 {
36328 {
36330 }
36331 else
36332 {
36334 }
36337 float num14 = 600f;
36338 bool flag2 =
false;
36339 if (
owner == Main.myPlayer)
36340 {
36343 {
36345 for (
int i = 0;
i < 200;
i++)
36346 {
36347 if (Main.npc[i].CanBeChasedBy(this))
36348 {
36349 float num15 = Main.npc[
i].position.X + (float)(Main.npc[i].width / 2);
36350 float num16 = Main.npc[
i].position.Y + (float)(Main.npc[i].height / 2);
36353 {
36358 }
36359 }
36360 }
36361 }
36362 }
36364 {
36374 }
36375 }
36376 else
36377 {
36379 }
36380 }
static double Atan2(double y, double x)
static double Sqrt(double d)
static double Abs(double value)
IEntitySource GetProjectileSource_FromThis()
void AI_015_Flails_Dust(bool doFastThrowDust)
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)