Historical signature: GetDifficulty(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: GetDifficulty(spawn)
Description:
Gets the difficulty value of the current spawn. 10+ usually represents epics, 6+ heroic, so on.
Parameters:
spawn (Spawn) - Spawn object representing spawn.
Returns: UInt32 of the Spawn's difficulty setting.
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.
difficulty = GetDifficulty(NPC)
Evidence: server/SpawnScripts/Generic/CombatModule.lua:15; binding EQ2Emu_lua_GetDifficulty.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.