From 8da307593d7ce8837a7d9db9bfd066c1f40c66c1 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 9 Feb 2026 05:13:02 -0600 Subject: [PATCH] feat(ui): implement Script_GetNumPartyMembers --- src/ui/game/PartyInfoScript.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/game/PartyInfoScript.cpp b/src/ui/game/PartyInfoScript.cpp index 0ea14ae..408ce1e 100644 --- a/src/ui/game/PartyInfoScript.cpp +++ b/src/ui/game/PartyInfoScript.cpp @@ -1,12 +1,15 @@ #include "ui/game/PartyInfoScript.hpp" #include "ui/FrameScript.hpp" +#include "ui/game/CGPartyInfo.hpp" #include "util/Lua.hpp" #include "util/Unimplemented.hpp" namespace { int32_t Script_GetNumPartyMembers(lua_State* L) { - WHOA_UNIMPLEMENTED(0); + lua_pushnumber(L, CGPartyInfo::NumMembers()); + + return 1; } int32_t Script_GetRealNumPartyMembers(lua_State* L) {