public static bool PreAI(Projectile projectile) { foreach (var hook in HookPreAI) { if (!hook(projectile)) { return false; } } if (projectile.modProjectile != null) { return projectile.modProjectile.PreAI(); } return true; }