58705 {
58707 Vector2 vector = player.RotatedRelativePoint(player.MountedCenter);
58709 player.heldProj =
whoAmI;
58711 if (player.dead)
58712 {
58714 return;
58715 }
58716 if (!player.frozen)
58717 {
58719 {
58724 {
58726 }
58728 {
58730 }
58731 float num = (float)player.itemAnimation / (float)player.itemAnimationMax;
58732 float num2 = 1f - num;
58741 {
58743 }
58748 for (
int i = 0; (float)i <
num6;
i++)
58749 {
58750 Dust dust = Dust.NewDustDirect(
base.Center, 14, 14, 228, 0f, 0f, 110);
58751 dust.velocity =
vector2.DirectionTo(dust.position) * 2f;
58752 dust.position = base.Center +
vector4.RotatedBy(
num2 * ((
float)
Math.
PI * 2f) * 2f + (float)i /
num6 * ((
float)Math.PI * 2f)) * 10f;
58753 dust.scale = 1f + 0.6f * Main.rand.NextFloat();
58754 dust.velocity +=
vector4 * 3f;
58755 dust.noGravity = true;
58756 }
58757 for (
int j = 0;
j < 1;
j++)
58758 {
58759 if (Main.rand.Next(3) == 0)
58760 {
58761 Dust
dust2 = Dust.NewDustDirect(
base.Center, 20, 20, 228, 0f, 0f, 110);
58762 dust2.velocity =
vector2.DirectionTo(
dust2.position) * 2f;
58763 dust2.position = base.Center +
vector3 * -110f;
58764 dust2.scale = 0.45f + 0.4f * Main.rand.NextFloat();
58765 dust2.fadeIn = 0.7f + 0.4f * Main.rand.NextFloat();
58766 dust2.noGravity = true;
58767 dust2.noLight = true;
58768 }
58769 }
58770 }
58771 else if (
type == 708)
58772 {
58773 Lighting.AddLight(player.Center, 0.75f, 0.9f, 1.15f);
58777 {
58779 }
58780 float num7 = (float)player.itemAnimation / (
float)player.itemAnimationMax;
58790 {
58792 }
58796 if ((player.itemAnimation == 2 || player.itemAnimation == 6 || player.itemAnimation == 10) &&
owner == Main.myPlayer)
58797 {
58800 switch (player.itemAnimation)
58801 {
58802 case 2:
58804 break;
58805 case 6:
58807 break;
58808 case 10:
58810 break;
58811 }
58812 vector7 *= 10f + (float)Main.rand.Next(4);
58814 }
58815 for (
int k = 0;
k < 3;
k += 2)
58816 {
58820 {
58821 case 1:
58823 break;
58824 case 2:
58827 break;
58828 case 3:
58831 break;
58832 }
58833 if (Main.rand.Next(6) != 0)
58834 {
58838 dust3.noGravity = true;
58839 dust3.noLight = true;
58840 dust3.scale = 0.75f;
58841 dust3.fadeIn = 0.8f;
58842 dust3.customData = this;
58843 if (Main.rand.Next(3) == 0)
58844 {
58845 dust3.noGravity = false;
58846 dust3.fadeIn = 0f;
58847 }
58848 }
58849 }
58850 }
58851 }
58852 if (player.whoAmI == Main.myPlayer && player.itemAnimation <= 2)
58853 {
58855 player.reuseDelay = 2;
58856 }
58857 }
IEntitySource GetProjectileSource_FromThis()
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)