- Added support for animated projectiles - Refactoring - Removed useless fields - Fixed swords not dealing damages - Added Hour Hand (from Evie's PR)
34 lines
961 B
C#
34 lines
961 B
C#
using Decimation.Content.Dusts;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Decimation.Content.Projectiles
|
|
{
|
|
internal class BloodBeamFriendly : DecimationProjectile
|
|
{
|
|
public override string Texture =>"Terraria/Projectile_" + ProjectileID.CursedFlameFriendly;
|
|
|
|
protected override void Init()
|
|
{
|
|
projectile.width = 26;
|
|
projectile.height = 26;
|
|
projectile.aiStyle = -1;
|
|
projectile.penetrate = -1;
|
|
projectile.alpha = 255;
|
|
projectile.timeLeft = 40;
|
|
projectile.tileCollide = true;
|
|
projectile.ignoreWater = true;
|
|
Damages = 15;
|
|
projectile.hostile = false;
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
projectile.velocity.Y += (60 - projectile.timeLeft) * 0.005f;
|
|
|
|
Dust.NewDust(projectile.position, 26, 26, ModContent.DustType<Blood>());
|
|
}
|
|
}
|
|
}
|