From aaab2f94dd79c22b47c604303bd11e9864e3e97f Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 4 Apr 2024 14:30:13 -0400 Subject: [PATCH] Arrow dust, replaced star on proc with more sparks --- NPCs/CalamityGlobalNPC.cs | 6 +++--- Projectiles/Ranged/VeriumBoltProj.cs | 11 ++++------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 38896614db..ec975a417b 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -5102,13 +5102,13 @@ namespace CalamityMod.NPCs veriumDoomTimer--; if (veriumDoomTimer == 0 && veriumDoomMarked) { - for (int d = 0; d < 20; d++) + for (int d = 0; d < 14 + veriumDoomStacks; d++) { Particle sparks = new LineParticle(npc.Center, new Vector2(Main.rand.NextFloat(-9f, 9f), Main.rand.NextFloat(-9f, 9f)), false, 45, 0.9f, Main.rand.NextBool() ? Color.Cyan : Color.SkyBlue); GeneralParticleHandler.SpawnParticle(sparks); } - Particle boop = new CustomPulse(npc.Center, Vector2.Zero, new Color(206, 95, 212), "CalamityMod/Particles/Sparkle2", Vector2.One, Main.rand.NextFloat(-5f, 5f), 0.75f + (float)(0.04 * veriumDoomStacks), 1.5f + (float)(0.08 * veriumDoomStacks), 40); - GeneralParticleHandler.SpawnParticle(boop); + //Particle boop = new CustomPulse(npc.Center, Vector2.Zero, new Color(233, 95, 212), "CalamityMod/Particles/Sparkle2", Vector2.One, Main.rand.NextFloat(-5f, 5f), 0.8f + (float)(0.04 * veriumDoomStacks), 1.6f + (float)(0.08 * veriumDoomStacks), 40); + //GeneralParticleHandler.SpawnParticle(boop); SoundEngine.PlaySound(new("CalamityMod/Sounds/NPCHit/CryogenHit", 3) { Volume = 0.6f}, npc.Center); Projectile.NewProjectile(npc.GetSource_FromThis(), npc.Center, Vector2.Zero, ModContent.ProjectileType(), 100 + (15 * veriumDoomStacks), 0, Main.myPlayer, 200f); diff --git a/Projectiles/Ranged/VeriumBoltProj.cs b/Projectiles/Ranged/VeriumBoltProj.cs index a3dba7fefc..cfe3975f58 100644 --- a/Projectiles/Ranged/VeriumBoltProj.cs +++ b/Projectiles/Ranged/VeriumBoltProj.cs @@ -42,15 +42,12 @@ namespace CalamityMod.Projectiles.Ranged { Projectile.rotation = Projectile.velocity.ToRotation() - MathHelper.PiOver2; - Dust dust = Dust.NewDustPerfect(Projectile.Center, Main.rand.NextBool(4) ? 226 : 303, new Vector2(Projectile.velocity.X * Main.rand.NextFloat(-0.1f, 0.1f), Projectile.velocity.Y * Main.rand.NextFloat(-0.1f, 0.1f))); + Dust dust = Dust.NewDustPerfect(Projectile.Center, Main.rand.NextBool(4) ? 223 : 252, new Vector2(Projectile.velocity.X * Main.rand.NextFloat(-0.1f, 0.1f), Projectile.velocity.Y * Main.rand.NextFloat(-0.1f, 0.1f))); dust.noGravity = true; - if (dust.type == 226) - dust.scale = Main.rand.NextFloat(0.45f, 0.7f); + if (dust.type == 223) + dust.scale = Main.rand.NextFloat(0.4f, 0.66f); else - { - dust.color = Color.Cyan; - dust.scale = Main.rand.NextFloat(0.6f, 0.85f); - } + dust.scale = Main.rand.NextFloat(0.65f, 0.9f); } // This projectile is always fullbright. public override Color? GetAlpha(Color lightColor)