From 1dcdfceb2a5187ead2ece83bcf969302ea8ab32c Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 24 Mar 2024 12:41:43 -0400 Subject: [PATCH] Cryogen no longer insta-charges starting phase 6 Small Death Valley Duster nerf too --- Items/Weapons/Magic/DeathValleyDuster.cs | 2 +- NPCs/Cryogen/Cryogen.cs | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Items/Weapons/Magic/DeathValleyDuster.cs b/Items/Weapons/Magic/DeathValleyDuster.cs index 224d4f86a6..e9e5cde0a1 100644 --- a/Items/Weapons/Magic/DeathValleyDuster.cs +++ b/Items/Weapons/Magic/DeathValleyDuster.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 36; Item.height = 40; - Item.damage = 87; + Item.damage = 83; Item.DamageType = DamageClass.Magic; Item.mana = 9; Item.useTime = 25; diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index d7314cc063..1d4d914f94 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -942,7 +942,7 @@ Block: { NPC.TargetClosest(); NPC.ai[0] = 4f; - NPC.ai[1] = 0f; + NPC.ai[1] = 120f; NPC.ai[3] = 0f; NPC.localAI[0] = 0f; NPC.localAI[2] = 0f; @@ -972,7 +972,7 @@ Block: if (phase6) { - if (NPC.ai[1] == 60f) + if (NPC.ai[1] == 60f) // Spawn homing ice blasts on charge { NPC.velocity = Vector2.Normalize(player.Center - NPC.Center) * (18f + enrageScale * 2f); @@ -1011,7 +1011,7 @@ Block: } NPC.ai[1] -= 1f; - if (NPC.ai[1] <= 0f) + if (NPC.ai[1] <= 0f) // Set the next charge, or switch back to floating above the player { NPC.ai[3] += 1f; NPC.TargetClosest(); @@ -1027,12 +1027,17 @@ Block: NPC.rotation = NPC.velocity.X * 0.1f; } - else if (NPC.ai[1] <= 15f) + else if (NPC.ai[1] <= 15f) // Slow down in preparation for the next charge { NPC.velocity *= 0.95f; NPC.rotation = NPC.velocity.X * 0.15f; } - else + else if (NPC.ai[1] > 60f) // Only used for when phase 6 first starts to prevent insta-charges + { + NPC.velocity *= 0.98f; + NPC.rotation = NPC.velocity.X * 0.15f; + } + else // Charge { // Set damage NPC.damage = NPC.defDamage;