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

◆ AddQuantity()

bool AddQuantity ( float value,
bool destroy_config = true,
bool destroy_forced = false )
protected

add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity reaches varQuantityMin or lower and the item config contains the varQuantityDestroyOnMin = true entry, the item gets destroyed. destroy_forced = true means item gets destroyed when quantity reaches varQuantityMin or lower regardless of config setting, returns true if the item gets deleted

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

3390 {
3391 return SetQuantity(GetQuantity() + value, destroy_config, destroy_forced);
3392 }
override void SetQuantity()
Определения ConstructionInfoIcons.c:298
override float GetQuantity()
Определения ItemBase.c:3486

Перекрестные ссылки GetQuantity() и SetQuantity().

Используется в CombineItems(), Edible_Base::Consume(), OnAction(), ItemBase::OnIgnitedTarget(), ItemBase::OnIgnitedTargetFailed(), ItemBase::RemoveBricks(), ItemBase::RemovePlanks(), SplitIntoStackMax(), SplitIntoStackMaxCargo(), SplitIntoStackMaxEx(), SplitIntoStackMaxHands(), SplitIntoStackMaxToInventoryLocationEx(), SplitItem() и SplitItemToInventoryLocation().