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

◆ CombineItems()

void ConstructionActionData::CombineItems ( ItemBase target,
ItemBase item )
inlineprotected

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

339 {
340 if ( target.ConfigGetBool( "canBeSplit" ) && item && !target.IsFullQuantity() )
341 {
342 int quantity_used = target.ComputeQuantityUsed( item, true );
343 if( quantity_used != 0 )
344 {
345 target.AddQuantity( quantity_used );
346 item.AddQuantity( -quantity_used );
347 }
348 }
349 }