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

◆ GetTargetQuantityMax()

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

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

3352 {
3353 float quantity_max = 0;
3354
3355 if (IsSplitable()) //only stackable/splitable items can check for stack size
3356 {
3357 if (attSlotID != -1)
3358 quantity_max = InventorySlots.GetStackMaxForSlotId(attSlotID);
3359
3360 if (quantity_max <= 0)
3361 quantity_max = m_VarStackMax;
3362 }
3363
3364 if (quantity_max <= 0)
3365 quantity_max = m_VarQuantityMax;
3366
3367 return quantity_max;
3368 }
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.