1318 {
1319 int attachmentsWithInventory = 0;
1320
1321 CargoBase cargo = inventory.GetCargo();
1323 {
1324 return 1;
1325 }
1326
1327 for (int i = 0; i < inventory.AttachmentCount(); i++)
1328 {
1329 EntityAI attachment = inventory.GetAttachmentFromIndex(i);
1330 int attachmentSlotId = attachment.GetInventory().GetSlotId(0);
1331
1332 if (attachment.GetInventory())
1333 {
1334 attachmentsWithInventory += 1;
1335 }
1336 }
1337
1338 return attachmentsWithInventory;
1339 }
proto native int GetItemCount()