-----------------------------------
-- Area: Western Altepa Desert
--   NM: Cactuar Cantautor
-----------------------------------
local ID = zones[xi.zone.WESTERN_ALTEPA_DESERT]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x = -458.944, y =  0.018, z = -557.266 },
    { x = -478.142, y = -0.457, z = -596.091 },
    { x = -460.202, y =  0.225, z = -529.886 },
    { x = -427.790, y = -0.285, z = -544.446 },
    { x = -444.349, y =  0.319, z = -549.207 },
    { x = -462.278, y = -0.142, z = -534.934 },
    { x = -432.707, y =  0.163, z = -522.664 },
    { x = -421.772, y =  0.293, z = -529.533 },
    { x = -447.851, y =  0.351, z = -535.403 },
    { x = -445.989, y =  0.006, z = -564.497 },
    { x = -471.788, y =  0.199, z = -525.190 },
    { x = -439.995, y =  0.000, z = -560.519 },
    { x = -468.728, y =  0.263, z = -554.157 },
    { x = -468.483, y = -0.012, z = -551.961 },
    { x = -450.483, y =  0.311, z = -541.258 },
    { x = -441.272, y =  0.103, z = -526.081 },
    { x = -447.661, y =  0.181, z = -523.961 },
    { x = -438.482, y =  0.828, z = -537.343 },
    { x = -454.573, y =  0.000, z = -532.416 },
    { x = -443.667, y =  0.314, z = -530.327 },
    { x = -429.570, y =  0.199, z = -549.340 },
    { x = -464.555, y =  0.018, z = -528.080 },
    { x = -413.544, y =  0.550, z = -521.676 },
    { x = -447.217, y =  0.591, z = -540.932 },
    { x = -449.211, y =  0.259, z = -560.431 },
    { x = -469.423, y = -0.074, z = -536.140 },
    { x = -437.561, y =  0.212, z = -551.716 },
    { x = -440.787, y =  0.881, z = -542.365 },
    { x = -435.360, y =  0.031, z = -559.357 },
    { x = -456.587, y =  0.586, z = -526.256 },
    { x = -423.303, y = -0.034, z = -549.993 },
    { x = -416.605, y =  0.829, z = -518.183 },
    { x = -434.965, y =  0.051, z = -519.910 },
    { x = -428.513, y =  0.372, z = -520.200 },
    { x = -419.954, y = -0.407, z = -535.319 },
    { x = -456.443, y =  0.206, z = -551.653 },
    { x = -398.733, y =  0.316, z = -530.365 },
    { x = -471.958, y =  0.199, z = -529.783 },
    { x = -472.739, y =  0.058, z = -551.533 },
    { x = -465.162, y = -0.029, z = -542.296 },
    { x = -472.962, y =  0.137, z = -556.255 },
    { x = -424.479, y = -0.061, z = -540.950 },
    { x = -401.595, y =  0.628, z = -534.323 },
    { x = -469.699, y =  0.037, z = -534.067 },
    { x = -447.270, y = -0.007, z = -532.980 },
    { x = -460.188, y =  0.990, z = -557.978 },
    { x = -454.114, y =  0.596, z = -522.354 },
    { x = -445.075, y =  0.052, z = -559.968 },
    { x = -443.059, y =  0.766, z = -535.698 },
    { x = -463.786, y =  0.870, z = -557.356 }
}

entity.phList =
{
    [ID.mob.CACTUAR_CANTAUTOR - 1] = ID.mob.CACTUAR_CANTAUTOR, -- -458.944 0.018 -557.266
}

entity.onMobDeath = function(mob, player, optParams)
    xi.hunts.checkHunt(mob, player, 412)
    xi.magian.onMobDeath(mob, player, optParams, set{ 781 })
end

entity.onMobDespawn = function(mob)
    xi.mob.updateNMSpawnPoint(mob)
end

return entity
