remove Crimulan Paladin's unused spike proj

This commit is contained in:
GinYuH committed 2025-12-31 19:57:58 -08:00
1 parent ff8c8898b7
commit f916688434
11 files changed
-66

No files matched your search

@@ -47,7 +47,6 @@ CataclysmicFlame.DisplayName: Cataclysmic Flame
CatastrophicCinder.DisplayName: Catastrophic Cinder
CirclingBloodScythe.DisplayName: Circling Blood Scythe
CrimsonEye.DisplayName: Crimson Eye
CrimulanSpike.DisplayName: Crimulan Spike
CursedFire.DisplayName: Eye Fire
DarkEnergyBall.DisplayName: Dark Energy
DarkEnergyBall2.DisplayName: Dark Energy
-65
View File
@@ -1,65 +0,0 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Boss
{
public class CrimulanSpike : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Boss";
private const int TimeLeft = 600;
private const int FadeOutTime = 30;
private float MaxVelocity => Projectile.ai[0];
private float Acceleration => Projectile.ai[1];
public override void SetDefaults()
{
Projectile.width = 20;
Projectile.height = 20;
Projectile.hostile = true;
Projectile.penetrate = -1;
Projectile.timeLeft = TimeLeft;
}
public override void AI()
{
if (Projectile.velocity.Length() < MaxVelocity)
{
Projectile.velocity *= Acceleration;
if (Projectile.velocity.Length() > MaxVelocity)
{
Projectile.velocity.Normalize();
Projectile.velocity *= MaxVelocity;
}
}
if (Projectile.timeLeft < FadeOutTime)
Projectile.Opacity -= 1f / FadeOutTime;
if (Main.rand.NextBool())
{
Color dustColor = Color.Crimson;
dustColor.A = 150;
int redSpiky = Dust.NewDust(Projectile.position - Projectile.velocity * 3f, Projectile.width, Projectile.height, DustID.TintableDust);
Main.dust[redSpiky].velocity *= 0.3f;
Main.dust[redSpiky].velocity += Projectile.velocity * 0.3f;
Main.dust[redSpiky].color = dustColor;
Main.dust[redSpiky].scale = 1.4f;
Main.dust[redSpiky].noGravity = true;
}
}
public override bool CanHitPlayer(Player target) => Projectile.Opacity == 1f;
public override bool PreDraw(ref Color lightColor)
{
Texture2D texture = Projectile.ai[2] > 0f ? ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/CrimulanSpike" + ((int)Projectile.ai[2] + 1)).Value : TextureAssets.Projectile[Projectile.type].Value;
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor, 1, texture);
return false;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 929 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 921 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 678 B