public override void AI() { OreEffect(); if (projectile.velocity.X > 0) { projectile.direction = 1; } else { projectile.direction = -1; } bool flag = false; Vector2 velocity = Collision.TileCollision(projectile.position, projectile.velocity, projectile.width, projectile.height, true, true, 1);; if (velocity != projectile.velocity) { flag = true; } if (flag && ProjectileLoader.OnTileCollide(projectile, projectile.velocity)) { rotationspeed -= .021f; } if (rotationspeed <= 0 || (projectile.velocity.X == 0)) { projectile.Kill(); rotationspeed = 0f; } projectile.rotation += rotationspeed * projectile.direction; for (int m = projectile.oldPos.Length - 1; m > 0; m--) { projectile.oldPos[m] = projectile.oldPos[m - 1]; } projectile.oldPos[0] = projectile.position; }