-----------------------------------
-- Area: Meriphataud Mountains (119)
--   NM: Waraxe Beak
-----------------------------------
mixins = { require('scripts/mixins/draw_in') }
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x =  723.000, y = -16.000, z = -397.000 },
    { x =  665.821, y =   0.762, z = -414.117 },
    { x =  700.365, y =  -7.636, z = -413.211 },
    { x =  595.480, y = -15.147, z = -379.456 },
    { x =  653.901, y =   0.442, z = -401.884 },
    { x =  724.959, y = -15.607, z = -465.955 },
    { x =  599.249, y = -15.211, z = -464.073 },
    { x =  689.518, y = -15.488, z = -365.372 },
    { x =  611.745, y = -13.133, z = -438.040 },
    { x =  625.083, y =  -3.472, z = -421.495 },
    { x =  619.021, y = -15.682, z = -357.402 },
    { x =  626.865, y = -16.004, z = -356.017 },
    { x =  637.898, y =  -3.344, z = -450.364 },
    { x =  665.310, y =  -4.365, z = -455.355 },
    { x =  626.523, y =  -4.387, z = -401.139 },
    { x =  670.206, y =  -0.064, z = -435.250 },
    { x =  579.520, y = -15.982, z = -420.298 },
    { x =  604.102, y = -15.709, z = -370.955 },
    { x =  647.102, y = -15.880, z = -355.512 },
    { x =  596.855, y = -15.183, z = -456.359 },
    { x =  693.298, y = -15.518, z = -366.907 },
    { x =  707.300, y = -15.579, z = -474.441 },
    { x =  672.436, y =  -0.464, z = -392.826 },
    { x =  712.397, y = -15.195, z = -402.549 },
    { x =  713.178, y = -15.712, z = -388.009 },
    { x =  627.749, y =  -2.577, z = -433.269 },
    { x =  677.511, y =  -0.115, z = -399.134 },
    { x =  687.662, y = -15.794, z = -479.640 },
    { x =  584.522, y = -15.281, z = -395.543 },
    { x =  706.642, y = -11.008, z = -434.663 },
    { x =  719.038, y = -15.828, z = -471.548 },
    { x =  652.615, y = -15.812, z = -487.720 },
    { x =  667.028, y = -15.507, z = -357.265 },
    { x =  598.788, y = -15.251, z = -424.245 },
    { x =  682.363, y =  -0.303, z = -402.407 },
    { x =  579.250, y = -15.039, z = -401.207 },
    { x =  689.518, y = -15.488, z = -365.372 },
    { x =  702.477, y =  -9.206, z = -448.436 },
    { x =  672.263, y =   0.712, z = -418.777 },
    { x =  650.474, y =  -0.625, z = -417.903 },
    { x =  662.021, y =   0.898, z = -402.070 },
    { x =  679.107, y =   0.435, z = -428.905 },
    { x =  633.821, y =  -1.071, z = -400.581 },
    { x =  659.067, y =  -3.583, z = -384.976 },
    { x =  717.244, y = -15.451, z = -380.484 },
    { x =  592.810, y = -16.061, z = -387.008 },
    { x =  713.812, y = -14.169, z = -432.050 },
    { x =  646.806, y =  -1.315, z = -391.317 },
    { x =  582.837, y = -16.179, z = -427.499 },
    { x =  694.376, y =  -4.152, z = -402.704 }
}

entity.onMobInitialize = function(mob)
    xi.mob.updateNMSpawnPoint(mob)
    mob:setRespawnTime(math.random(75600, 86400)) -- 21 to 24 hours
    mob:setMobMod(xi.mobMod.HP_STANDBACK, -1)
end

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

entity.onMobDespawn = function(mob)
    xi.mob.updateNMSpawnPoint(mob)
    mob:setRespawnTime(math.random(75600, 86400)) -- 21 to 24 hours
end

return entity
