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

◆ RemovePlanks()

int ItemBase::RemovePlanks ( int needed_planks)
inlineprivate

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

73 {
74 // Make sure to not give more long planks than we have available
75 int available_planks = needed_planks;
76 if ( available_planks > GetQuantity() )
77 {
78 available_planks = GetQuantity();
79 }
80
81 // Remove long planks from this object
82 AddQuantity( -available_planks, true ); // Autodelete enabled
83
84 // Return the number of removed long planks
85 return available_planks;
86 }
bool AddQuantity(float value, bool destroy_config=true, bool destroy_forced=false)
add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Определения ItemBase.c:8060
override float GetQuantity()
Определения ItemBase.c:8154

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