diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 2d515617da..f2bbd2da14 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3699,7 +3699,7 @@ namespace CalamityMod.CalPlayer player.hurtCooldowns[k] = player.immuneTime; } - Main.PlaySound(SoundID.Item, (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y, 68); + Main.PlaySound(SoundID.Item68, Main.player[Main.myPlayer].position); int eclipseBurst = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(7000 * player.RogueDamage()), 0, player.whoAmI); } } diff --git a/Items/Weapons/Melee/AstralBlade.cs b/Items/Weapons/Melee/AstralBlade.cs index b8c32b08e0..b97cd7a446 100644 --- a/Items/Weapons/Melee/AstralBlade.cs +++ b/Items/Weapons/Melee/AstralBlade.cs @@ -2,6 +2,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Placeables; using Microsoft.Xna.Framework; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -74,6 +75,23 @@ namespace CalamityMod.Items.Weapons.Melee if (!crit) crit = Main.rand.NextBool((int)MathHelper.Clamp((item.crit + player.meleeCrit) * multiplier, 0f, 99f), 100); + + if (multiplier > 1.5f) + { + Main.PlaySound(SoundID.Item105, Main.player[Main.myPlayer].position); + bool blue = Main.rand.NextBool(); + float angleStart = Main.rand.NextFloat(0f, MathHelper.TwoPi); + float var = 0.05f + (2f - multiplier); + for (float angle = 0f; angle < MathHelper.TwoPi; angle += var) + { + blue = !blue; + Vector2 velocity = angle.ToRotationVector2() * (2f + (float)(Math.Sin(angleStart + angle * 3f) + 1) * 2.5f) * Main.rand.NextFloat(0.95f, 1.05f); + Dust d = Dust.NewDustPerfect(target.Center, blue ? ModContent.DustType() : ModContent.DustType(), velocity); + d.customData = 0.025f; + d.scale = multiplier - 0.75f; + d.noLight = false; + } + } } } } diff --git a/Items/Weapons/Melee/TheMutilator.cs b/Items/Weapons/Melee/TheMutilator.cs index 1d38a5308e..b0660650be 100644 --- a/Items/Weapons/Melee/TheMutilator.cs +++ b/Items/Weapons/Melee/TheMutilator.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee { item.width = 90; item.height = 90; - item.damage = 950; + item.damage = 700; item.melee = true; item.useAnimation = 18; item.useStyle = ItemUseStyleID.SwingThrow; @@ -38,16 +39,19 @@ namespace CalamityMod.Items.Weapons.Melee { if (target.life <= (target.lifeMax * 0.2f) && target.canGhostHeal) { - int heartDrop = Main.rand.Next(1, 3); - for (int i = 0; i < heartDrop; i++) - { - Item.NewItem((int)target.position.X, (int)target.position.Y, target.width, target.height, 58, 1, false, 0, false, false); - } + if (!CalamityPlayer.areThereAnyDamnBosses || Main.rand.NextBool(2)) + { + int heartDrop = CalamityPlayer.areThereAnyDamnBosses ? 1 : Main.rand.Next(1, 3); + for (int i = 0; i < heartDrop; i++) + { + Item.NewItem((int)target.position.X, (int)target.position.Y, target.width, target.height, 58, 1, false, 0, false, false); + } + } Main.PlaySound(SoundID.Item14, target.position); - target.position.X += (float)(target.width / 2); - target.position.Y += (float)(target.height / 2); - target.position.X -= (float)(target.width / 2); - target.position.Y -= (float)(target.height / 2); + target.position.X += target.width / 2; + target.position.Y += target.height / 2; + target.position.X -= target.width / 2; + target.position.Y -= target.height / 2; for (int num621 = 0; num621 < 30; num621++) { int num622 = Dust.NewDust(new Vector2(target.position.X, target.position.Y), target.width, target.height, 5, 0f, 0f, 100, default, 2f); @@ -55,7 +59,7 @@ namespace CalamityMod.Items.Weapons.Melee if (Main.rand.NextBool(2)) { Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f; } } for (int num623 = 0; num623 < 50; num623++)