public override void AI() { if (projectile.timeLeft == 180) { savedVelocity = projectile.velocity; projectile.velocity *= 0; } if (projectile.timeLeft > 150) { projectile.velocity = Vector2.SmoothStep(Vector2.Zero, savedVelocity, (30 - (projectile.timeLeft - 150)) / 30f); } Color color = VitricSummonOrb.MoltenGlow(MathHelper.Min((200 - projectile.timeLeft), 120)); for (int k = 0; k <= 1; k++) { Dust d = Dust.NewDustPerfect(projectile.Center + projectile.velocity, 264, (projectile.velocity * Main.rand.NextFloat(-0.25f, -0.1f)).RotatedBy(k == 0 ? 0.4f : -0.4f), 0, color, 1f); d.noGravity = true; } projectile.rotation = projectile.velocity.ToRotation() + 3.14f / 4; }
public override Color?GetAlpha(Dust dust, Color lightColor) { return(VitricSummonOrb.MoltenGlow(dust.fadeIn * 3)); }