DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetItemQuantity()

float VicinitySlotsContainer::GetItemQuantity ( InventoryItem item)
inlineprotected

См. определение в файле VicinitySlotsContainer.c строка 466

467 {
468 float quantity = 0;
469 if ( item.IsInherited( InventoryItem ) )
470 {
471 ItemBase item_base = ItemBase.Cast( item );
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