mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-12 09:15:01 +03:00
feat(ui): implement Script_GetMoney
This commit is contained in:
5 files changed
+32
-1
No files matched your search
@@ -282,7 +282,15 @@ int32_t Script_UnitLevel(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_GetMoney(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
auto player = CGPlayer_C::GetActivePtr();
|
||||
|
||||
if (player) {
|
||||
lua_pushnumber(L, player->GetMoney());
|
||||
} else {
|
||||
lua_pushnumber(L, 0.0f);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t Script_GetHonorCurrency(lua_State* L) {
|
||||
|
||||
Reference in new issue
Block a user