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

◆ CanReceiveItemIntoCargo()

override bool FryingPan::CanReceiveItemIntoCargo ( EntityAI item)
inlineprotected

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

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

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