public void HandleHit(Ammo projectile) { if (SelectedArmour.IsPenetrated(projectile)) { this.health -= projectile.GetDamage(); } else { Console.WriteLine("Броня не пробита."); } }
public virtual bool IsPenetrated(Ammo projectile) { return(projectile.GetDamage() > thickness); }