public override void AI() { this.rot += 0.5f; projectile.Center = Main.player[projectile.owner].Center + AntiarisUtils.RotateVector(new Vector2(), this.rotVec, this.rot + projectile.ai[0] * 3.14f); if (Main.rand.NextBool(1, 5)) { float x = projectile.velocity.X / 3f; float y = projectile.velocity.Y / 3f; int dust = Dust.NewDust(projectile.position, projectile.width, projectile.height, 90, 0.0f, 0.0f, 0, new Color(), 1.4f); Main.dust[dust].position.X = projectile.Center.X - x; Main.dust[dust].position.Y = projectile.Center.Y - y; Main.dust[dust].noGravity = true; Main.dust[dust].scale += Main.rand.NextFloat() * 1f; } }
public override void AI() { this.rot += 2.0f; projectile.Center = Main.npc[(int)projectile.ai[1]].Center + AntiarisUtils.RotateVector(new Vector2(), this.rotVec, this.rot + projectile.ai[0] * 3.14f); for (int k = 0; k < 1; k++) { float x = projectile.velocity.X / 3f * k; float y = projectile.velocity.Y / 3f * k; int type = 90; int dust = Dust.NewDust(projectile.position, projectile.width, projectile.height, type, 0.0f, 0.0f, 0, new Color(), 2f); Main.dust[dust].position.X = projectile.Center.X - x; Main.dust[dust].position.Y = projectile.Center.Y - y; Main.dust[dust].velocity *= 0.0f; Main.dust[dust].noGravity = true; Main.dust[dust].scale = 1.2f; } }