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

◆ CanBeCombined()

override bool ItemBase::CanBeCombined ( EntityAI other_item,
bool reservation_check = true,
bool stack_max_limit = false )
inlineprivate

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

62 {
63 if (!super.CanBeCombined(other_item, reservation_check, stack_max_limit))
64 {
65 return false;
66 }
67
68 return Torch.Cast(other_item.GetHierarchyParent()) == null;//when the other rag is attached to the torch, disallow this action
69 }

Используется в AttachmentCategoriesRow::CanCombine(), AttachmentCategoriesRow::Combine(), InventoryItem::CombineItems(), AttachmentCategoriesRow::DraggingOverHeader(), ClosableContainer::DraggingOverHeader(), HandsContainer::DraggingOverHeader(), ActionAttachOnSelection::FindSlotIdToAttachOrCombine(), ConstructionActionData::GetAttachmentSlotFromSelection(), HandsContainer::GetCombinationFlags() и ItemManager::GetCombinationFlags().