From 422c34e56693fda60d8a73c9ea80d185feaf4010 Mon Sep 17 00:00:00 2001 From: Emagi Date: Thu, 11 Apr 2024 16:38:04 -0400 Subject: [PATCH] Make lua functions ModifyMaxHP and ModifyMaxPower usable --- EQ2/source/WorldServer/LuaFunctions.h | 2 ++ EQ2/source/WorldServer/LuaInterface.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/EQ2/source/WorldServer/LuaFunctions.h b/EQ2/source/WorldServer/LuaFunctions.h index 68a4df0e7..92ce4bc5c 100755 --- a/EQ2/source/WorldServer/LuaFunctions.h +++ b/EQ2/source/WorldServer/LuaFunctions.h @@ -40,6 +40,8 @@ int EQ2Emu_lua_SetMaxHPBase(lua_State* state); int EQ2Emu_lua_SetCurrentPower(lua_State* state); int EQ2Emu_lua_SetMaxPower(lua_State* state); int EQ2Emu_lua_SetMaxPowerBase(lua_State* state); +int EQ2Emu_lua_ModifyMaxHP(lua_State* state); +int EQ2Emu_lua_ModifyMaxPower(lua_State* state); int EQ2Emu_lua_SetHeading(lua_State* state); int EQ2Emu_lua_SetModelType(lua_State* state); int EQ2Emu_lua_SetAdventureClass(lua_State* state); diff --git a/EQ2/source/WorldServer/LuaInterface.cpp b/EQ2/source/WorldServer/LuaInterface.cpp index 1c20c638e..2e67aeba4 100755 --- a/EQ2/source/WorldServer/LuaInterface.cpp +++ b/EQ2/source/WorldServer/LuaInterface.cpp @@ -959,6 +959,8 @@ void LuaInterface::RegisterFunctions(lua_State* state) { lua_register(state, "SetPower", EQ2Emu_lua_SetCurrentPower); lua_register(state, "SetMaxPower", EQ2Emu_lua_SetMaxPower); lua_register(state, "SetMaxPowerBase", EQ2Emu_lua_SetMaxPowerBase); + lua_register(state, "ModifyMaxHP", EQ2Emu_lua_ModifyMaxHP); + lua_register(state, "ModifyMaxPower", EQ2Emu_lua_ModifyMaxPower); lua_register(state, "SetPosition", EQ2Emu_lua_SetPosition); lua_register(state, "SetHeading", EQ2Emu_lua_SetHeading); lua_register(state, "SetModelType", EQ2Emu_lua_SetModelType);