39793 {
39795 Vector2 vector = player.RotatedRelativePoint(player.MountedCenter);
39797 bool flag = false;
39798 if (player.CCed || player.noItems)
39799 {
39800 flag = true;
39801 }
39802 else if (player.inventory[player.selectedItem].shoot !=
type)
39803 {
39804 flag = true;
39805 }
39806 else if (player.pulley)
39807 {
39808 flag = true;
39809 }
39810 else if (player.dead)
39811 {
39812 flag = true;
39813 }
39814 if (!flag)
39815 {
39816 flag = (player.Center -
base.Center).
Length() > 2000f;
39817 }
39818 if (flag)
39819 {
39821 return;
39822 }
39823 float num = 4f;
39827 {
39830 {
39832 }
39834 if (Main.mouseRight)
39835 {
39837 }
39838 if (Main.mouseLeft)
39839 {
39841 }
39844 {
39846 }
39847 }
39849 {
39851 }
39853 float cloudAlpha = Main.cloudAlpha;
39856 {
39857 num7 = Main.WindForVisuals;
39858 }
39861 {
39862 case 0:
39863 {
39868 v = v.SafeNormalize(
Vector2.
Zero) * (3f + cloudAlpha * 7f);
39870 {
39872 }
39877 {
39879 }
39880 velocity.Y = y;
39881 velocity.Y -=
num8;
39882 velocity.Y += 0.02f +
num8 * 0.25f;
39885 {
39887 }
39888 velocity.X *= 0.98f;
39892 {
39897 velocity.Y += vector3.Y * 0.05f;
39899 {
39900 velocity.Y -= 0.15f;
39901 }
39902 velocity.X += vector3.X * 0.2f;
39904 {
39906 return;
39907 }
39908 }
39909 break;
39910 }
39911 case 1:
39912 {
39916 {
39918 return;
39919 }
39920 break;
39921 }
39922 }
39925 int dir = ((vector4.X > 0f) ? 1 : (-1));
39927 {
39928 player.ChangeDir(
dir);
39929 }
39932 {
39934 }
39935 else
39936 {
39939 {
39940 num14 -= (float)
Math.
PI / 2f * (
float)player.direction;
39941 }
39943 }
39946 {
39947 case 771:
39948 case 822:
39949 case 823:
39950 case 827:
39951 case 830:
39952 case 838:
39953 case 843:
39954 case 844:
39955 case 845:
39956 case 846:
39957 case 850:
39958 case 852:
39960 break;
39961 case 828:
39962 case 829:
39964 {
39966 }
39967 else
39968 {
39970 }
39971 break;
39972 case 826:
39974 break;
39975 case 824:
39976 case 839:
39977 case 840:
39978 case 853:
39980 {
39982 break;
39983 }
39986 {
39988 frame = Main.rand.Next(4);
39989 }
39990 break;
39991 default:
39993 {
39995 }
39996 else if (
num15 < 5f)
39997 {
39999 }
40000 else if (
num15 < 7f)
40001 {
40003 }
40004 else
40005 {
40007 }
40008 break;
40009 }
40011 }
static float Lerp(float value1, float value2, float amount)
static float Clamp(float value, float min, float max)
static double Abs(double value)
static double Sin(double a)
float Distance(Vector2 Other)
Vector2 DirectionTo(Vector2 Destination)
static float Dot(Vector2 value1, Vector2 value2)
static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)