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

◆ CanReceiveItemIntoCargo()

override bool Pot::CanReceiveItemIntoCargo ( EntityAI item)
inlineprivate

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

67 {
68 if ( !super.CanReceiveItemIntoCargo( item ) )
69 return false;
70
71 if ( IsCargoException4x3( item ) )
72 return false;
73
74 //is 'this' somewhere in cargo?
75 if (!GetInventory().AreChildrenAccessible())
76 return false;
77
78 //can 'this' be attached to the item (->assumed smaller size than item)?
79 int slotId;
80 for (int i = 0; i < GetInventory().GetSlotIdCount(); i++)
81 {
82 slotId = GetInventory().GetSlotId(i);
83 if (item.GetInventory().HasAttachmentSlot(slotId))
84 {
85 //Print("CanReceiveItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
86 return false;
87 }
88 }
89
90 return true;
91 }
bool IsCargoException4x3(EntityAI item)
Определения ItemBase.c:9419

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