30 lines
685 B
C#
30 lines
685 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Dusts
|
|
{
|
|
public class ShadowspecBarDust : ModDust
|
|
{
|
|
public override void OnSpawn(Dust dust)
|
|
{
|
|
dust.noLight = true;
|
|
dust.noGravity = false;
|
|
dust.scale = 1.2f;
|
|
dust.alpha = 100;
|
|
}
|
|
|
|
public override bool Update(Dust dust)
|
|
{
|
|
dust.velocity.Y += 0.05f;
|
|
dust.position += dust.velocity;
|
|
dust.rotation += dust.velocity.X;
|
|
dust.scale -= 0.03f;
|
|
if (dust.scale < 0.5f)
|
|
{
|
|
dust.active = false;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|