1306 {
1307 int attachmentsWithInventory = 0;
1308
1309 CargoBase cargo = inventory.GetCargo();
1311 {
1312 return 1;
1313 }
1314
1315 for (int i = 0; i < inventory.AttachmentCount(); i++)
1316 {
1317 EntityAI attachment = inventory.GetAttachmentFromIndex(i);
1318 int attachmentSlotId = attachment.GetInventory().GetSlotId(0);
1319
1320 if (attachment.GetInventory())
1321 {
1322 attachmentsWithInventory += 1;
1323 }
1324 }
1325
1326 return attachmentsWithInventory;
proto native int GetItemCount()