From e0e0db219c42e7feab6c43ced26ae80baab7d9ba Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 24 Jul 2023 08:27:42 +0300 Subject: [PATCH] Add combat_ai_num --- src/combat_ai.cc | 6 ++++++ src/combat_ai.h | 1 + 2 files changed, 7 insertions(+) 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);