См. определение в файле Attachments.c строка 263
Перекрестные ссылки GetFocusedItem(), GetFocusedSlotsIcon(), GetGame() и CGame::GetPlayer().