diff --git a/src/combat_ai.cc b/src/combat_ai.cc index 3ee2082..2cf475e 100644 --- a/src/combat_ai.cc +++ b/src/combat_ai.cc @@ -701,6 +701,12 @@ static int aiPacketWrite(File* stream, AiPacket* ai) return 0; } +// 0x428058 +int combat_ai_num() +{ + return gAiPacketsLength; +} + // Get ai from object // // 0x4280B4 diff --git a/src/combat_ai.h b/src/combat_ai.h index 12cf21d..e182a2c 100644 --- a/src/combat_ai.h +++ b/src/combat_ai.h @@ -30,6 +30,7 @@ void aiReset(); int aiExit(); int aiLoad(File* stream); int aiSave(File* stream); +int combat_ai_num(); int aiGetAreaAttackMode(Object* obj); int aiGetRunAwayMode(Object* obj); int aiGetBestWeapon(Object* obj);