35497 {
35498 if (Main.myPlayer ==
owner &&
ai[0] <= 0f)
35499 {
35500 if (Main.player[
owner].channel && Main.player[
owner].HeldItem.shoot ==
type)
35501 {
35502 float num = 12f;
35504 {
35505 num = 15f;
35506 }
35508 {
35509 num = 20f;
35510 }
35518 {
35520 }
35522 {
35524 {
35527 {
35530 }
35531 }
35533 {
35535 }
35536 }
35537 else if (
num4 > num)
35538 {
35547 {
35549 }
35551 {
35554 }
35555 else
35556 {
35559 }
35560 }
35561 else
35562 {
35568 {
35570 }
35573 }
35574 }
35575 else if (
ai[0] <= 0f)
35576 {
35579 {
35581 float num13 = (float)Main.mouseX + Main.screenPosition.X -
vector3.X;
35582 float num14 = (float)Main.mouseY + Main.screenPosition.Y -
vector3.Y;
35583 if (Main.player[
owner].gravDir == -1f)
35584 {
35585 num14 = Main.screenPosition.Y + (float)Main.screenHeight - (
float)Main.mouseY -
vector3.Y;
35586 }
35588 if (
num15 == 0f ||
ai[0] < 0f)
35589 {
35590 vector3 =
new Vector2(Main.player[
owner].position.X + (
float)(Main.player[
owner].width / 2), Main.player[
owner].position.Y + (
float)(Main.player[
owner].height / 2));
35594 }
35598 velocity.X =
num13;
35599 velocity.Y =
num14;
35601 {
35603 }
35604 }
35606 }
35607 }
35608 bool flag = false;
35610 {
35613 {
35617 {
35619 }
35623 }
35624 flag = true;
35626 {
35628 }
35629 else if (
ai[0] > 0f)
35630 {
35632 }
35633 else
35634 {
35636 }
35638 {
35640 }
35641 if (Main.rand.Next(2) == 0)
35642 {
35643 int num16 = Main.rand.Next(3);
35645 {
35646 0 => 15,
35647 1 => 57,
35649 }, velocity.X * 0.25f, velocity.Y * 0.25f, 255,
default(
Color), 0.7f);
35650 Main.dust[
num17].velocity *= 0.25f;
35652 }
35653 }
35655 {
35657 {
35660 }
35661 for (
int i = 0;
i < 1;
i++)
35662 {
35663 int num18 = Dust.NewDust(
new Vector2(
position.
X,
position.
Y),
width,
height, 66, 0f, 0f, 100,
new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 2.5f);
35664 Main.dust[
num18].velocity *= 0.1f;
35666 Main.dust[
num18].position.
X = position.X + (float)(
width / 2) + 4f + (float)Main.rand.Next(-2, 3);
35667 Main.dust[
num18].position.Y = position.Y + (float)(
height / 2) + (float)Main.rand.Next(-2, 3);
35668 Main.dust[
num18].noGravity =
true;
35669 }
35670 }
35672 {
35674 {
35677 }
35678 if (Main.rand.Next(9) == 0)
35679 {
35681 Main.dust[
num19].velocity *= 0.3f;
35682 Main.dust[
num19].position.X = position.X + (float)(
width / 2) + 4f + (float)Main.rand.Next(-4, 5);
35683 Main.dust[
num19].position.Y = position.Y + (float)(
height / 2) + (float)Main.rand.Next(-4, 5);
35684 Main.dust[
num19].noGravity =
true;
35685 Main.dust[
num19].velocity += Main.rand.NextVector2Circular(2f, 2f);
35686 }
35687 flag = true;
35689 {
35691 }
35692 }
35694 {
35695 if (Main.rand.Next(12) == 0)
35696 {
35698 dust.noGravity = true;
35699 dust.velocity *= 1.4f;
35700 dust.velocity += Main.rand.NextVector2Circular(1f, 1f);
35701 dust.velocity +=
velocity * 0.15f;
35702 }
35703 if (Main.rand.Next(24) == 0)
35704 {
35706 dust2.velocity += Main.rand.NextVector2Circular(1f, 1f);
35707 dust2.velocity +=
velocity * 0.15f;
35708 }
35709 flag = true;
35711 {
35713 }
35714 }
35716 {
35718 }
35720 {
35721 velocity.Y = 16f;
35722 }
35723 }
static double Atan2(double y, double x)
static double Sqrt(double d)
static double Abs(double value)
static void PlaySound(int type, Vector2 position, int style=1)
static readonly LegacySoundStyle Item9
static float Distance(Vector2 value1, Vector2 value2)