using Terraria;
using Terraria.ModLoader;

namespace TheCollectors.Content.Dusts
{
	public class Smoke : ModDust
	{
		public override void OnSpawn(Dust dust) {
			dust.noGravity = true;
			dust.velocity *= 0.5f;
			dust.velocity.Y -= 0.5f;
		}

		public override bool Update(Dust dust) {
			dust.position += dust.velocity;
			dust.rotation += dust.velocity.X * 0.1f;
			dust.scale -= 0.02f;
			if (dust.scale < 0.5f) {
				dust.active = false;
			}
			return false;
		}
	}
}