467 {
468 float quantity = 0;
469 if ( item.IsInherited( InventoryItem ) )
470 {
472 if ( item.IsInherited( Magazine ) )
473 {
474 Magazine magazine_item = Magazine.Cast( item );
475 quantity = magazine_item.GetAmmoCount();
476 }
477 else
478 {
479 quantity = item_base.GetQuantity();
480 }
481 }
482 return quantity;
483 }
class GP5GasMask extends MaskBase ItemBase