См. определение в файле 3_Game/Systems/Inventory/Inventory.c строка 186
Перекрестные ссылки GetAttachmentSlotId() и GetAttachmentSlotsCount().