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

◆ GetTargetQuantityMax()

override int GetTargetQuantityMax ( int attSlotID = -1)
protected

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

3450 {
3451 float quantityMax = 0;
3452
3453 ItemBaseType itemBaseType = ItemBaseType.Cast(GetEntityType());
3454
3455 if (IsSplitable()) //only stackable/splitable items can check for stack size
3456 {
3457 if (attSlotID != -1)
3459
3460 if (quantityMax <= 0)
3461 quantityMax = itemBaseType.m_VarStackMax;
3462 }
3463
3464 if (quantityMax <= 0)
3465 quantityMax = itemBaseType.m_VarQuantityMax;
3466
3467 return quantityMax;
3468 }
float quantityMax
Определения CfgPlayerSpawnDataJson.c:209
override bool IsSplitable()
Определения ItemBase.c:1528
static proto native int GetStackMaxForSlotId(int slot_Id)
provides access to slot configuration
Определения InventorySlots.c:6
int m_VarQuantityMax
Определения ItemBaseType.c:16
float m_VarStackMax
Определения ItemBaseType.c:35
Определения ItemBaseType.c:5

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

Используется в GetQuantityMax(), SplitIntoStackMax(), SplitIntoStackMaxCargo(), SplitIntoStackMaxEx(), SplitIntoStackMaxHands() и SplitIntoStackMaxToInventoryLocationEx().