Files
CalamityModPublic/Projectiles/Ranged/AquashardSplit.cs
T
termigator1359 1b22071cf4 squash merge: Removed all unused textures
Removed nearly all unused textures in the entire mod, especially focusing on projectiles.
Apotheosis & the Death Valley Duster weapon line were ignored to prevent merge conflicts.
2020-11-15 14:25:46 -05:00

43 lines
1.3 KiB
C#

using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Projectiles.Ranged
{
public class AquashardSplit : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/Ranged/Aquashard";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Aquashard");
}
public override void SetDefaults()
{
projectile.width = 10;
projectile.height = 16;
projectile.friendly = true;
projectile.ranged = true;
projectile.penetrate = 3;
projectile.timeLeft = 180;
projectile.aiStyle = 1;
}
public override void AI()
{
projectile.velocity.X *= 0.9995f;
projectile.velocity.Y = projectile.velocity.Y + 0.01f;
}
public override void Kill(int timeLeft)
{
Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 27);
for (int k = 0; k < 5; k++)
{
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f);
}
}
}
}