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

◆ GetTargetQuantityMax()

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

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

3422 {
3423 float quantity_max = 0;
3424
3425 if (IsSplitable()) //only stackable/splitable items can check for stack size
3426 {
3427 if (attSlotID != -1)
3428 quantity_max = InventorySlots.GetStackMaxForSlotId(attSlotID);
3429
3430 if (quantity_max <= 0)
3431 quantity_max = m_VarStackMax;
3432 }
3433
3434 if (quantity_max <= 0)
3435 quantity_max = m_VarQuantityMax;
3436
3437 return quantity_max;
3438 }
override bool IsSplitable()
Определения ItemBase.c:1575
float m_VarStackMax
Определения ItemBase.c:35
int m_VarQuantityMax
Определения ItemBase.c:33

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