feat(object): simplify getters in CGPlayer_C

This commit is contained in:
fallenoak committed 2026-02-06 10:36:54 -06:00
1 parent 4bf88801ed
commit 68ad71090e
3 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -189,7 +189,7 @@ int32_t Script_UnitXP(lua_State* L) {
float xp = 0.0f;
if (unit && unit->IsA(TYPE_PLAYER)) {
xp = static_cast<CGPlayer_C*>(unit)->GetActiveXP();
xp = static_cast<CGPlayer_C*>(unit)->GetXP();
}
lua_pushnumber(L, xp);
@@ -209,7 +209,7 @@ int32_t Script_UnitXPMax(lua_State* L) {
float xpMax = 0.0f;
if (unit && unit->IsA(TYPE_PLAYER)) {
xpMax = static_cast<CGPlayer_C*>(unit)->GetActiveNextLevelXP();
xpMax = static_cast<CGPlayer_C*>(unit)->GetNextLevelXP();
}
lua_pushnumber(L, xpMax);