Files
CalamityModPublic/Dusts/AstralEnemy.cs
T
DominicKarma42 55e89c9b98 Replaced (hopefully) every magic number with a constant
Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
2020-05-30 17:56:36 -04:00

30 lines
591 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts
{
public class AstralEnemy : ModDust
{
public override void OnSpawn(Dust dust)
{
dust.scale = Main.rand.NextFloat(0.9f, 1f);
}
public override bool Update(Dust dust)
{
//update position
dust.position += dust.velocity;
dust.velocity.Y += 0.1f;
dust.scale -= 0.02f;
if (dust.scale < 0.1f)
{
dust.active = false;
}
return false;
}
}
}