wrathwing fireballs no longer have afterimages

This commit is contained in:
sunny-raindrops committed 2026-03-22 16:16:21 -07:00
1 parent 1a66c78423
commit 5814cd09db
1 file changed
-11
-11
View File
@@ -12,8 +12,6 @@ namespace CalamityMod.Projectiles.Rogue
public override void SetStaticDefaults()
{
Main.projFrames[Type] = 5;
ProjectileID.Sets.TrailCacheLength[Type] = 20;
ProjectileID.Sets.TrailingMode[Type] = 2;
}
public override void SetDefaults()
@@ -57,15 +55,6 @@ namespace CalamityMod.Projectiles.Rogue
int frameHeight = texture.Height / Main.projFrames[Type];
int frameY = frameHeight * Projectile.frame;
Rectangle rectangle = new Rectangle(0, frameY, texture.Width, frameHeight);
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 0; i < Projectile.oldPos.Length; i++)
{
Vector2 drawPos = Projectile.oldPos[i] + Projectile.Size / 2f - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY);
Color color2 = Projectile.GetAlpha(lightColor) * ((float)(Projectile.oldPos.Length - i) / (float)Projectile.oldPos.Length);
Main.spriteBatch.Draw(texture, drawPos, new Microsoft.Xna.Framework.Rectangle?(rectangle), color2, Projectile.rotation, rectangle.Size() / 2f, Projectile.scale, SpriteEffects.None, 0);
}
}
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY),
new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameY, texture.Width, frameHeight)),