From e614f0ccd91a6000bd04a7ed56766f5cf0dc2a0c Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 17 Mar 2025 11:52:47 -0400 Subject: [PATCH] Atlantis projectiles give iframes on their final hit Reduced Deus resist because of this --- Balancing/BalancingChangesManager.cs | 6 +++--- Projectiles/Magic/AtlantisSpear.cs | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 9cc73f84a1..226bf39ba5 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -259,15 +259,15 @@ namespace CalamityMod.Balancing // 70% resist to Stardust Dragon Staff. NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.3f, ProjectileID.StardustDragon1, ProjectileID.StardustDragon2, ProjectileID.StardustDragon3, ProjectileID.StardustDragon4)))); - // 65% resist to Atlantis (Atlantis gaming!). - NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType())))); - // 55% resist to Flak Kraken. NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.45f, ProjectileType())))); // 50% resist to true melee. NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(ResistTrueMelee(0.5f)))); + // 50% resist to Atlantis (Atlantis gaming!). + NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); + // 50% resist to Aurora Blazer. NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); diff --git a/Projectiles/Magic/AtlantisSpear.cs b/Projectiles/Magic/AtlantisSpear.cs index 09533fe2b7..6c8a87d6fe 100644 --- a/Projectiles/Magic/AtlantisSpear.cs +++ b/Projectiles/Magic/AtlantisSpear.cs @@ -12,10 +12,10 @@ namespace CalamityMod.Projectiles.Magic { public new string LocalizationCategory => "Projectiles.Magic"; public bool devourer = DownedBossSystem.downedDoG; - public static int TotalSegments = 16; - public float damageMultiplier = 1f; - public int time = 0; - public float fade = 1; + private static int TotalSegments = 16; + private float damageMultiplier = 1f; + private int time = 0; + private float fade = 1; public override void SetDefaults() { @@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.extraUpdates = (Main.zenithWorld && devourer) ? 1 : 0; Projectile.usesIDStaticNPCImmunity = true; Projectile.idStaticNPCHitCooldown = (Main.zenithWorld && devourer) ? 2 : 8; + Projectile.appliesImmunityTimeOnSingleHits = true; } public override void AI()