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
This commit is contained in:
Xyk authored and Cameron Ewell committed 2026-03-04 17:11:26 -05:00
1 parent 774469e8db
commit c6471db150
3 files changed
+8 -7

No files matched your search

@@ -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 <right> while swinging will repeatedly do uncharged slashes that create a spread of flames on hit
'''
}
+4 -4
View File
@@ -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<HolyColliderHolyFire>(), (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<HolyColliderHolyFire>(), (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)
{
+4 -2
View File
@@ -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++;
}