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

◆ RemoveBricks()

int ItemBase::RemoveBricks ( int needed_brickds)
inlineprivate

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

50 {
51 int available_bricks = needed_brickds;
52 if ( available_bricks > GetQuantity() )
53 {
54 available_bricks = GetQuantity();
55 }
56
57 // Remove long planks from this object
58 AddQuantity( -available_bricks, true ); // Autodelete enabled
59
60 // Return the number of removed long planks
61 return available_bricks;
62 }
override float GetQuantity()
Определения ItemBase.c:3486
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:3389

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