From 5db84a14aaa8e2a080752efa77e48a70c28c7ebb Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 1 Sep 2023 21:48:40 +0100 Subject: [PATCH] added light on-hit dust --- CalPlayer/CalamityPlayerHitHurt.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 23d4c34fbc..0af3da7a23 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1809,9 +1809,15 @@ namespace CalamityMod.CalPlayer // Spawn particles when hit with the shields up, regardless of whether or not the shields broke. // More particles spawn if a shield broke. - if (pSoulArtifact && !sponge) + if (pSoulArtifact) { - //TODO + for (int i = 0; i < Main.rand.Next(4, 8); i++) //very light dust + { + Dust dust = Dust.NewDustDirect(Player.position, Player.width, Player.height, (int)CalamityDusts.ProfanedFire); + dust.velocity = Main.rand.NextVector2Circular(3.5f, 3.5f); + dust.velocity.Y -= Main.rand.NextFloat(1f, 3f); + dust.scale = Main.rand.NextFloat(1.15f, 1.45f); + } } else {