Files
CalamityModPublic/Dusts/AstralBasic.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

27 lines
530 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts
{
public class AstralBasic : 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.scale -= 0.02f;
if (dust.scale < 0.1f)
dust.active = false;
return false;
}
}
}