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

◆ HasItemQuantity()

int VicinitySlotsContainer::HasItemQuantity ( EntityAI item)
inlineprotected

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

437 {
438 if ( item.IsInherited( InventoryItem ) )
439 {
440 ItemBase item_base = ItemBase.Cast( item );
441 if ( item.IsInherited( Magazine ) )
442 {
443 return QUANTITY_COUNT;
444 }
445 else if ( item.IsInherited( ItemBook ) )
446 {
447 return QUANTITY_HIDDEN;
448 }
449 int max = item.GetQuantityMax();
450 bool bar = item.ConfigGetBool( "quantityBar" );
451 if ( max > 0 )
452 {
453 if ( max == 1 || bar )
454 {
455 return QUANTITY_PROGRESS;
456 }
457 else
458 {
459 return QUANTITY_COUNT;
460 }
461 }
462 }
463 return QUANTITY_HIDDEN;
464 }
class GP5GasMask extends MaskBase ItemBase
const int QUANTITY_PROGRESS
Определения constants.c:516
const int QUANTITY_COUNT
Определения constants.c:515
const int QUANTITY_HIDDEN
Определения constants.c:514

Перекрестные ссылки QUANTITY_COUNT, QUANTITY_HIDDEN и QUANTITY_PROGRESS.