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

◆ GetTargetQuantityMax()

override int InventoryItem::GetTargetQuantityMax ( int attSlotID = -1)
inlineprotected

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

3474 {
3475 float quantity_max = 0;
3476
3477 if (IsSplitable()) //only stackable/splitable items can check for stack size
3478 {
3479 if (attSlotID != -1)
3480 quantity_max = InventorySlots.GetStackMaxForSlotId(attSlotID);
3481
3482 if (quantity_max <= 0)
3483 quantity_max = m_VarStackMax;
3484 }
3485
3486 if (quantity_max <= 0)
3487 quantity_max = m_VarQuantityMax;
3488
3489 return quantity_max;
3490 }
override bool IsSplitable()
Определения ItemBase.c:1600
float m_VarStackMax
Определения ItemBase.c:41
int m_VarQuantityMax
Определения ItemBase.c:39

Перекрестные ссылки InventorySlots::GetStackMaxForSlotId(), IsSplitable(), m_VarQuantityMax и m_VarStackMax.