Lua functions

GetMaxPowerBase

Registered in this checkout as EQ2Emu_lua_GetMaxPowerBase; implementation found at WorldServer/Lua/LuaFunctions.cpp:3757.

Historical signature: GetMaxPowerBase(spawn)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: GetMaxPowerBase(spawn)

Description: Gets the Spawn's base power.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: SInt32 base power of the spawn.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

PowerBonus = math.ceil(GetMaxPowerBase(Caster) * 0.03)

Evidence: server/Spells/Commoner/DualBreed.lua:10; binding EQ2Emu_lua_GetMaxPowerBase.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.