remove Crimulan Paladin's unused spike proj
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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 621 B |
|
Before Width: | Height: | Size: 660 B |
|
Before Width: | Height: | Size: 929 B |
|
Before Width: | Height: | Size: 921 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 755 B |
|
Before Width: | Height: | Size: 649 B |
|
Before Width: | Height: | Size: 678 B |