1 - Revamp to free head movement

2 - Free head is once again immune to damage
3 - Gave free head the laser spread attack, which is followed by shooting lingering fire bolts
4 - Free head no longer passively fires fireballs, increased laser fire rate a bit
5 - Free head lasers no longer have differing speeds in Death Mode
6 - Removed body lasers after the head detaches

Fire bolt visuals are unfinished
This commit is contained in:
CongratsIsTrash committed 2025-07-11 21:55:22 -04:00
1 parent e020e409fe
commit 6d2dff85ba
10 files changed
+340 -441

No files matched your search

+3 -1
View File
@@ -16,6 +16,7 @@ namespace CalamityMod.Particles
private float OriginalScale;
private float FinalScale;
private float baseOpacity;
private float opacity;
private Vector2 Squish;
private Color BaseColor;
@@ -31,6 +32,7 @@ namespace CalamityMod.Particles
Lifetime = lifeTime;
Squish = squish;
Rotation = rotation;
baseOpacity = opacity;
}
public override void Update()
@@ -38,7 +40,7 @@ namespace CalamityMod.Particles
float pulseProgress = PiecewiseAnimation(LifetimeCompletion, new CurveSegment[] { new CurveSegment(EasingType.PolyOut, 0f, 0f, 1f, 4) });
Scale = MathHelper.Lerp(OriginalScale, FinalScale, pulseProgress);
opacity = (float)Math.Sin(MathHelper.PiOver2 + LifetimeCompletion * MathHelper.PiOver2);
opacity = (float)Math.Sin(MathHelper.PiOver2 + LifetimeCompletion * MathHelper.PiOver2) * baseOpacity;
Color = BaseColor * opacity;
Lighting.AddLight(Position, Color.R / 255f, Color.G / 255f, Color.B / 255f);