Make lua functions ModifyMaxHP and ModifyMaxPower usable

This commit is contained in:
Emagi 2024-04-11 16:38:04 -04:00
parent 5d80136092
commit 422c34e566
2 changed files with 4 additions and 0 deletions

View file

@ -40,6 +40,8 @@ int EQ2Emu_lua_SetMaxHPBase(lua_State* state);
int EQ2Emu_lua_SetCurrentPower(lua_State* state); int EQ2Emu_lua_SetCurrentPower(lua_State* state);
int EQ2Emu_lua_SetMaxPower(lua_State* state); int EQ2Emu_lua_SetMaxPower(lua_State* state);
int EQ2Emu_lua_SetMaxPowerBase(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_SetHeading(lua_State* state);
int EQ2Emu_lua_SetModelType(lua_State* state); int EQ2Emu_lua_SetModelType(lua_State* state);
int EQ2Emu_lua_SetAdventureClass(lua_State* state); int EQ2Emu_lua_SetAdventureClass(lua_State* state);

View file

@ -959,6 +959,8 @@ void LuaInterface::RegisterFunctions(lua_State* state) {
lua_register(state, "SetPower", EQ2Emu_lua_SetCurrentPower); lua_register(state, "SetPower", EQ2Emu_lua_SetCurrentPower);
lua_register(state, "SetMaxPower", EQ2Emu_lua_SetMaxPower); lua_register(state, "SetMaxPower", EQ2Emu_lua_SetMaxPower);
lua_register(state, "SetMaxPowerBase", EQ2Emu_lua_SetMaxPowerBase); 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, "SetPosition", EQ2Emu_lua_SetPosition);
lua_register(state, "SetHeading", EQ2Emu_lua_SetHeading); lua_register(state, "SetHeading", EQ2Emu_lua_SetHeading);
lua_register(state, "SetModelType", EQ2Emu_lua_SetModelType); lua_register(state, "SetModelType", EQ2Emu_lua_SetModelType);