From c6471db150575bdaa38c3f5251d398b51f048bfa Mon Sep 17 00:00:00 2001 From: Xyk Date: Mon, 2 Mar 2026 11:04:03 -0800 Subject: [PATCH] Holy Collider Right click removal Also gutted the uncharged because wtf, it was supposed to be bad and only for pushing around your own flares --- .../en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson | 1 - Projectiles/Melee/HolyColliderHoldout.cs | 8 ++++---- Projectiles/Melee/HolyColliderHolyFire.cs | 6 ++++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 55706016b7..320793dbdd 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -747,7 +747,6 @@ HolyCollider: { Charged swings create four lingering flares that float around the point of impact Striking a flare with an uncharged strike will push it around and extend its lifetime Charged swings can empower flares, turning them into massive fireballs on hit and launching them to your cursor - Holding while swinging will repeatedly do uncharged slashes that create a spread of flames on hit ''' } diff --git a/Projectiles/Melee/HolyColliderHoldout.cs b/Projectiles/Melee/HolyColliderHoldout.cs index de8e35f5aa..923f3e19c5 100644 --- a/Projectiles/Melee/HolyColliderHoldout.cs +++ b/Projectiles/Melee/HolyColliderHoldout.cs @@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Melee AnimationProgress = Animation % (chargedSwing ? (int)(storedUseAnim * 1.2f) : storedUseAnim); DrawUnconditionally = false; - bool cantUse = (Owner.Calamity().mouseRight || Owner == null || !Owner.active || Owner.dead || Main.mouseLeftRelease || Owner.CCed || Owner.noItems); + bool cantUse = ( Owner == null || !Owner.active || Owner.dead || Main.mouseLeftRelease || Owner.CCed || Owner.noItems); if (CanHit || postSwing) mousePos = Owner.Center - aimVel; @@ -406,10 +406,10 @@ namespace CalamityMod.Projectiles.Melee SoundStyle hitSound = new("CalamityMod/Sounds/Item/HolyColliderSmallHit"); SoundEngine.PlaySound(hitSound with { Volume = 0.85f, PitchVariance = 0.25f }, Projectile.Center); - for (int i = 0; i < 8; i++) + for (int i = 0; i < 6; i++) { // 14NOV2024: Ozzatron: clamped mouse position unnecessary, only used for direction - Projectile fadedFire = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), target.Center, ((Owner.Center - Owner.Calamity().mouseWorld).SafeNormalize(Vector2.UnitY) * -11).RotatedByRandom(0.6f) * Main.rand.NextFloat(0.3f, 1f), ModContent.ProjectileType(), (int)(Projectile.damage * 0.05), Projectile.knockBack, Projectile.owner, 10, target.whoAmI); + Projectile fadedFire = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), target.Center, ((Owner.Center - Owner.Calamity().mouseWorld).SafeNormalize(Vector2.UnitY) * -11).RotatedByRandom(0.6f) * Main.rand.NextFloat(0.3f, 1f), ModContent.ProjectileType(), (int)(Projectile.damage * 0.01), Projectile.knockBack, Projectile.owner, 10, target.whoAmI); fadedFire.timeLeft = Main.rand.Next(40, 55 + 1); } } @@ -445,7 +445,7 @@ namespace CalamityMod.Projectiles.Melee float minMult = 0.25f; int hitsToMinMult = 10; float damageMult = Utils.Remap(pierceReduction, 0, hitsToMinMult, 1, minMult, true); - modifiers.SourceDamage *= (chargedSwing ? 1f : 0.5f) * damageMult; + modifiers.SourceDamage *= (chargedSwing ? 1f : 0.2f) * damageMult; } public override bool PreDraw(ref Color lightColor) { diff --git a/Projectiles/Melee/HolyColliderHolyFire.cs b/Projectiles/Melee/HolyColliderHolyFire.cs index 0318c62d67..46e0e0485c 100644 --- a/Projectiles/Melee/HolyColliderHolyFire.cs +++ b/Projectiles/Melee/HolyColliderHolyFire.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.localNPCHitCooldown = 10 * Projectile.MaxUpdates; } - public override bool? CanDamage() => ((time > 10 && !isLaunched) || (isLaunched && !setStats)) ? null : false; + public override bool? CanDamage() => (Projectile.ai[0] == 10 && Projectile.numHits > 5) ? false : ((time > 10 && !isLaunched) || (isLaunched && !setStats)) ? null : false; public override void AI() { @@ -50,7 +50,8 @@ namespace CalamityMod.Projectiles.Melee isLaunched = true; else Projectile.ai[2] = 0; - + if (Projectile.ai[0] == 10) + Projectile.localNPCHitCooldown = 60 * Projectile.MaxUpdates; Projectile.scale = Utils.GetLerpValue(0, 40, Projectile.timeLeft, true); @@ -143,6 +144,7 @@ namespace CalamityMod.Projectiles.Melee } if (Projectile.frame > 3) Projectile.frame = 0; + Main.NewText(Projectile.timeLeft); time++; }