-----------------------------------
-- Area: Kuftal Tunnel
--  Mob: Greater Cockatrice
-- Note: Place Holder for Pelican
-----------------------------------
local ID = zones[xi.zone.KUFTAL_TUNNEL]
-----------------------------------
---@type TMobEntity
local entity = {}
local pelicanSpawnPoints =
{
    { x = 178.857, y = 20.256, z = -44.151 },
    { x = 180.000, y = 21.000, z = -39.000 },
    { x = 179.394, y = 20.061, z = -34.062 },
    { x = 186.246, y = 20.048, z = -33.320 },
    { x = 185.045, y = 20.007, z = -32.526 },
    { x = 187.504, y = 20.078, z = -51.076 },
    { x = 187.191, y = 20.282, z = -37.743 },
    { x = 179.547, y = 20.344, z = -46.149 },
    { x = 182.888, y = 20.560, z = -33.755 },
    { x = 181.475, y = 20.983, z = -43.391 },
    { x = 184.969, y = 20.866, z = -47.834 },
    { x = 180.159, y = 21.286, z = -36.637 },
    { x = 180.889, y = 20.341, z = -32.449 },
    { x = 187.319, y = 20.259, z = -42.222 },
    { x = 186.683, y = 20.136, z = -48.996 },
    { x = 181.699, y = 21.250, z = -40.963 },
    { x = 184.980, y = 19.854, z = -32.016 },
    { x = 186.999, y = 20.216, z = -52.826 },
    { x = 186.382, y = 20.514, z = -46.982 },
    { x = 184.836, y = 19.886, z = -31.417 },
    { x = 180.317, y = 20.895, z = -50.718 },
    { x = 184.032, y = 19.427, z = -29.368 },
    { x = 186.493, y = 20.545, z = -35.204 },
    { x = 181.353, y = 20.601, z = -33.350 },
    { x = 176.908, y = 19.652, z = -32.427 },
    { x = 178.876, y = 20.426, z = -44.986 },
    { x = 179.198, y = 20.681, z = -50.289 },
    { x = 179.101, y = 20.023, z = -46.626 },
    { x = 188.586, y = 18.883, z = -41.605 },
    { x = 179.695, y = 20.248, z = -47.622 },
    { x = 177.446, y = 20.530, z = -43.337 },
    { x = 181.020, y = 21.286, z = -36.652 },
    { x = 177.705, y = 20.067, z = -49.150 },
    { x = 182.257, y = 20.874, z = -35.880 },
    { x = 185.346, y = 20.577, z = -41.750 },
    { x = 175.492, y = 20.286, z = -44.227 },
    { x = 187.277, y = 20.295, z = -35.403 },
    { x = 186.217, y = 20.347, z = -51.456 },
    { x = 183.463, y = 20.923, z = -43.467 },
    { x = 187.393, y = 20.174, z = -51.883 },
    { x = 178.157, y = 21.250, z = -40.604 },
    { x = 184.174, y = 19.799, z = -30.202 },
    { x = 181.154, y = 20.823, z = -48.327 },
    { x = 176.279, y = 20.028, z = -46.524 },
    { x = 183.943, y = 20.757, z = -41.615 },
    { x = 180.501, y = 21.018, z = -41.925 },
    { x = 183.739, y = 20.835, z = -40.632 },
    { x = 183.129, y = 20.960, z = -52.206 },
    { x = 176.504, y = 21.250, z = -38.776 },
    { x = 187.565, y = 19.662, z = -31.867 },
}

entity.onMobDeath = function(mob, player, optParams)
    xi.regime.checkRegime(player, mob, 741, 2, xi.regime.type.GROUNDS)
end

entity.onMobDespawn = function(mob)
    local params = {}
    params.SpawnPoints = pelicanSpawnPoints
    xi.mob.phOnDespawn(mob, ID.mob.PELICAN, 5, 10800, params) -- 4 hours
end

return entity
