-----------------------------------
-- Area: Castle Zvahl Keep (162)
--  Mob: Demon Pawn
-- Note: PH for Baronet Romwe
-----------------------------------
local ID = zones[xi.zone.CASTLE_ZVAHL_KEEP]
-----------------------------------
---@type TMobEntity
local entity = {}
local baronetSpawnPoints =
{
    { x = -335.444, y = -52.125, z = 15.148 },
    { x = -317.070, y = -52.125, z = 14.052 },
    { x = -338.719, y = -52.000, z = 12.155 },
    { x = -313.217, y = -52.000, z =  1.800 },
    { x = -342.993, y = -52.000, z =  1.132 },
    { x = -337.757, y = -52.000, z =  1.866 },
    { x = -331.184, y = -52.000, z = -6.920 },
    { x = -338.059, y = -52.000, z = 13.659 },
    { x = -317.280, y = -52.000, z = -2.507 },
    { x = -323.504, y = -52.000, z = 16.720 },
    { x = -334.074, y = -52.000, z = 12.844 },
    { x = -336.341, y = -52.000, z = 11.001 },
    { x = -335.188, y = -52.000, z =  7.546 },
    { x = -339.833, y = -52.000, z =  3.051 },
    { x = -331.438, y = -52.000, z = 21.911 },
    { x = -337.171, y = -52.000, z = -4.151 },
    { x = -334.150, y = -52.000, z = 19.286 },
    { x = -338.888, y = -52.000, z = -1.277 },
    { x = -338.106, y = -52.000, z = 17.197 },
    { x = -326.046, y = -52.000, z = 20.294 },
    { x = -327.943, y = -52.000, z = 21.901 },
    { x = -327.319, y = -52.000, z = 18.553 },
    { x = -336.814, y = -52.000, z = 16.135 },
    { x = -317.106, y = -52.000, z =  9.823 },
    { x = -338.591, y = -52.000, z =  1.162 },
    { x = -331.485, y = -52.000, z = 20.664 },
    { x = -334.488, y = -52.000, z = -1.851 },
    { x = -317.924, y = -52.000, z = 21.815 },
    { x = -337.600, y = -52.000, z =  8.647 },
    { x = -336.473, y = -52.000, z = -6.021 },
    { x = -335.910, y = -52.000, z =  8.632 },
    { x = -339.938, y = -52.000, z = 13.742 },
    { x = -319.959, y = -52.000, z = 11.950 },
    { x = -318.574, y = -52.000, z = -5.001 },
    { x = -314.057, y = -52.000, z = 11.205 },
    { x = -342.331, y = -52.000, z = 16.817 },
    { x = -313.977, y = -52.000, z =  4.057 },
    { x = -334.393, y = -52.000, z = 13.748 },
    { x = -324.625, y = -52.000, z = -7.373 },
    { x = -325.882, y = -52.000, z = -6.811 },
    { x = -313.088, y = -52.000, z = 18.290 },
    { x = -331.405, y = -52.000, z = -9.193 },
    { x = -339.344, y = -52.000, z = 21.467 },
    { x = -339.645, y = -52.000, z = 18.727 },
    { x = -325.786, y = -52.000, z = 22.340 },
    { x = -324.998, y = -52.000, z = 14.865 },
    { x = -342.064, y = -52.000, z =  0.056 },
    { x = -329.387, y = -52.000, z = 14.078 },
    { x = -339.047, y = -52.000, z = 10.449 },
    { x = -331.973, y = -52.000, z = 19.368 },
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
    xi.mob.phOnDespawn(mob, ID.mob.BARONET_ROMWE, 10, 1, { spawnPoints = baronetSpawnPoints }) -- No Respawn
end

return entity
