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

◆ CombineItems()

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

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

525 {
526 if ( target.ConfigGetBool( "canBeSplit" ) && item && !target.IsFullQuantity() )
527 {
528 int quantity_used = target.ComputeQuantityUsed( item, true );
529 if( quantity_used != 0 )
530 {
531 target.AddQuantity( quantity_used );
532 item.AddQuantity( -quantity_used );
533 }
534 }
535 }