From 4b372ddbf48ea0627b645db4a7110b9ecbee7a1a Mon Sep 17 00:00:00 2001 From: Xyk Date: Fri, 20 Jun 2025 14:00:16 -0700 Subject: [PATCH] A bit more impact on big lasers and DoG dashes --- NPCs/DevourerofGods/DevourerofGodsHead.cs | 23 ++++++++++++++++++++++- Projectiles/Boss/DoGLaserWallsBigBeam.cs | 2 ++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index ad02b9f909..5b50a88359 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -118,6 +118,7 @@ namespace CalamityMod.NPCs.DevourerofGods private const float AlphaGateValue = 1660f; public const float SkyColorTransitionTime = 90f; public Vector2 PortalEntryLocation = Vector2.Zero; + public bool doTpFX = true; // Death animation variables public bool Dying; @@ -548,13 +549,23 @@ namespace CalamityMod.NPCs.DevourerofGods player.Calamity().subtitleColors = new Color[] { Color.Cyan, Color.Fuchsia }; CalamityUtils.DisplayLocalizedText(key, messageColor); } - if (NPC.localAI[2] > 0 && NPC.localAI[2] < 60 ) + if (NPC.localAI[2] > 0 && NPC.localAI[2] < 60) { + if (doTpFX) + { + if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < 9f) + Main.LocalPlayer.Calamity().GeneralScreenShakePower = 9f; + SoundStyle attack = new("CalamityMod/Sounds/Custom/DoGLaserWallBigAttack"); + for (int i = 0; i < 2; i++) + SoundEngine.PlaySound(attack with { Volume = 0.9f, Pitch = -0.2f, MaxInstances = -1 }, NPC.Center); + doTpFX = false; + } var Size = 1.6f; if (NPC.localAI[2] == 1) { Particle pulse = new DirectionalPulseRing(NPC.Center, NPC.velocity, Color.Orchid, new Vector2(2f, 2f), Main.rand.NextFloat(12f, 25f), 0.1f, 2f, 18); GeneralParticleHandler.SpawnParticle(pulse); + doTpFX = true; } Particle jaws = new Jaws(NPC.Center + NPC.velocity.SafeNormalize(Vector2.Zero) * 64, NPC.velocity, Color.Fuchsia, new Vector2(0.8f, 1f), NPC.velocity.ToRotation() + MathHelper.PiOver2, Size, Size, 2); GeneralParticleHandler.SpawnParticle(jaws); @@ -752,11 +763,21 @@ namespace CalamityMod.NPCs.DevourerofGods // Set opacity after teleport if (postTeleportTimer > 0) { + if (doTpFX) + { + if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < 9f) + Main.LocalPlayer.Calamity().GeneralScreenShakePower = 9f; + SoundStyle attack = new("CalamityMod/Sounds/Custom/DoGLaserWallBigAttack"); + for (int i = 0; i < 2; i++) + SoundEngine.PlaySound(attack with { Volume = 0.9f, Pitch = -0.2f, MaxInstances = -1 }, NPC.Center); + doTpFX = false; + } var Size = 1.6f; if (postTeleportTimer == 1 && NPC.localAI[2] < 1) { Particle pulse = new DirectionalPulseRing(NPC.Center, NPC.velocity, Color.Orchid, new Vector2(2f, 2f), Main.rand.NextFloat(12f, 25f), 0.1f, 2f, 18); GeneralParticleHandler.SpawnParticle(pulse); + doTpFX = true; } Particle jaws = new Jaws(NPC.Center + NPC.velocity.SafeNormalize(Vector2.Zero) * 64, NPC.velocity, Color.Fuchsia, new Vector2(0.8f, 1f), NPC.velocity.ToRotation() + MathHelper.PiOver2, Size, Size, 2); GeneralParticleHandler.SpawnParticle(jaws); diff --git a/Projectiles/Boss/DoGLaserWallsBigBeam.cs b/Projectiles/Boss/DoGLaserWallsBigBeam.cs index a7610a7b6c..6f0ef84224 100644 --- a/Projectiles/Boss/DoGLaserWallsBigBeam.cs +++ b/Projectiles/Boss/DoGLaserWallsBigBeam.cs @@ -70,6 +70,8 @@ namespace CalamityMod.Projectiles.Boss } if (time >= attackTime && !doneAttack) { + if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < 7f) + Main.LocalPlayer.Calamity().GeneralScreenShakePower = 7f; SoundStyle attack = new("CalamityMod/Sounds/Custom/DoGLaserWallBigAttack"); for (int i = 0; i < 2; i++) SoundEngine.PlaySound(attack with { Volume = 0.9f, Pitch = 0, MaxInstances = -1 }, targetPos);