14915 {
14918 {
14920 Main.dust[num].noGravity = true;
14921 Main.dust[num].velocity *= 0.7f;
14922 Main.dust[num].velocity.Y -= 0.5f;
14923 }
14925 {
14927 if (Main.rand.Next(2) == 0)
14928 {
14929 Main.dust[
num2].scale = 1.5f;
14930 }
14931 Main.dust[
num2].noGravity =
true;
14932 Main.dust[
num2].velocity.X *= 2f;
14933 Main.dust[
num2].velocity.Y *= 2f;
14934 }
14936 {
14937 return;
14938 }
14939 if (player.meleeEnchant == 1 && Main.rand.Next(3) == 0)
14940 {
14942 Main.dust[
num3].noGravity =
true;
14943 Main.dust[
num3].fadeIn = 1.5f;
14944 Main.dust[
num3].velocity *= 0.25f;
14945 }
14946 if (player.meleeEnchant == 1)
14947 {
14948 if (Main.rand.Next(3) == 0)
14949 {
14951 Main.dust[
num4].noGravity =
true;
14952 Main.dust[
num4].fadeIn = 1.5f;
14953 Main.dust[
num4].velocity *= 0.25f;
14954 }
14955 }
14956 else if (player.meleeEnchant == 2)
14957 {
14958 if (Main.rand.Next(2) == 0)
14959 {
14961 Main.dust[
num5].noGravity =
true;
14962 Main.dust[
num5].velocity *= 0.7f;
14963 Main.dust[
num5].velocity.Y -= 0.5f;
14964 }
14965 }
14966 else if (player.meleeEnchant == 3)
14967 {
14968 if (Main.rand.Next(2) == 0)
14969 {
14971 Main.dust[
num6].noGravity =
true;
14972 Main.dust[
num6].velocity *= 0.7f;
14973 Main.dust[
num6].velocity.Y -= 0.5f;
14974 }
14975 }
14976 else if (player.meleeEnchant == 4)
14977 {
14979 if (Main.rand.Next(2) == 0)
14980 {
14982 Main.dust[
num7].noGravity =
true;
14983 Main.dust[
num7].velocity.X /= 2f;
14984 Main.dust[
num7].velocity.Y /= 2f;
14985 }
14986 }
14987 else if (player.meleeEnchant == 5)
14988 {
14989 if (Main.rand.Next(2) == 0)
14990 {
14993 Main.dust[
num8].velocity.Y += 0.2f;
14994 Main.dust[
num8].noGravity =
true;
14995 }
14996 }
14997 else if (player.meleeEnchant == 6)
14998 {
14999 if (Main.rand.Next(2) == 0)
15000 {
15003 Main.dust[
num9].velocity.Y += 0.2f;
15004 Main.dust[
num9].noGravity =
true;
15005 }
15006 }
15007 else if (player.meleeEnchant == 7)
15008 {
15010 if (
vector.Length() > 4f)
15011 {
15013 }
15014 if (Main.rand.Next(20) == 0)
15015 {
15016 int num10 = Main.rand.Next(139, 143);
15018 Main.dust[
num11].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
15019 Main.dust[
num11].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
15020 Main.dust[
num11].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
15021 Main.dust[
num11].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
15022 Main.dust[
num11].scale *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f;
15023 }
15024 if (Main.rand.Next(40) == 0)
15025 {
15026 int num12 = Main.rand.Next(276, 283);
15028 Main.gore[
num13].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
15029 Main.gore[
num13].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
15030 Main.gore[
num13].scale *= 1f + (float)Main.rand.Next(-20, 21) * 0.01f;
15031 Main.gore[
num13].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
15032 Main.gore[
num13].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
15033 }
15034 }
15035 else if (player.meleeEnchant == 8 && Main.rand.Next(4) == 0)
15036 {
15038 Main.dust[
num14].noGravity =
true;
15039 Main.dust[
num14].fadeIn = 1.5f;
15040 Main.dust[
num14].velocity *= 0.25f;
15041 }
15042 }