Browse Source

Make lua functions ModifyMaxHP and ModifyMaxPower usable

Emagi 6 months ago
parent
commit
422c34e566
2 changed files with 4 additions and 0 deletions
  1. 2 0
      EQ2/source/WorldServer/LuaFunctions.h
  2. 2 0
      EQ2/source/WorldServer/LuaInterface.cpp

+ 2 - 0
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);

+ 2 - 0
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);