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

◆ AddQuantity()

bool InventoryItem::AddQuantity ( float value,
bool destroy_config = true,
bool destroy_forced = false )
inlineprivate

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 строка 3292

3293 {
3294 return SetQuantity(GetQuantity() + value, destroy_config, destroy_forced);
3295 }
override float GetQuantity()
Определения ItemBase.c:3386
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Set item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Определения ItemBase.c:3238

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