-----------------------------------
-- Area: Bostaunieux Oubliette (167)
--   NM: Drexerion the Condemned
-----------------------------------
mixins = { require('scripts/mixins/job_special') }
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x = -62.000, y =  0.972, z = -238.000 },
    { x = -63.927, y =  0.250, z = -243.011 },
    { x = -91.704, y =  0.344, z = -250.660 },
    { x = -63.537, y =  0.250, z = -239.212 },
    { x = -92.296, y =  0.232, z = -251.894 },
    { x = -94.030, y =  0.250, z = -246.363 },
    { x = -59.187, y =  0.000, z = -236.816 },
    { x = -77.298, y =  0.250, z = -223.686 },
    { x = -83.329, y = -0.007, z = -221.367 },
    { x = -97.704, y =  0.000, z = -238.452 },
    { x = -86.153, y =  0.001, z = -221.867 },
    { x = -96.614, y =  0.052, z = -229.255 },
    { x = -70.042, y =  0.384, z = -230.101 },
    { x = -70.994, y =  0.250, z = -226.381 },
    { x = -91.506, y =  0.361, z = -250.426 },
    { x = -94.035, y =  0.250, z = -241.571 },
    { x = -63.526, y =  0.286, z = -235.650 },
    { x = -64.688, y =  0.361, z = -233.734 },
    { x = -91.215, y =  0.304, z = -251.980 },
    { x = -88.673, y =  0.342, z = -228.348 },
    { x = -92.282, y =  0.250, z = -248.386 },
    { x = -64.190, y =  0.250, z = -237.946 },
    { x = -69.018, y =  0.321, z = -228.577 },
    { x = -77.801, y =  0.250, z = -256.915 },
    { x = -66.757, y =  0.328, z = -249.517 },
    { x = -93.281, y =  0.048, z = -224.381 },
    { x = -80.003, y =  0.000, z = -257.732 },
    { x = -96.782, y =  0.267, z = -237.648 },
    { x = -73.569, y =  0.250, z = -256.151 },
    { x = -73.250, y =  0.250, z = -252.108 },
    { x = -92.123, y =  0.244, z = -228.230 },
    { x = -62.027, y =  0.000, z = -240.789 },
    { x = -83.250, y =  0.306, z = -224.719 },
    { x = -94.054, y =  0.250, z = -244.819 },
    { x = -69.730, y =  0.360, z = -252.132 },
    { x = -98.180, y =  0.000, z = -232.368 },
    { x = -76.484, y =  0.250, z = -256.314 },
    { x = -85.749, y =  0.250, z = -252.823 },
    { x = -90.375, y =  0.365, z = -251.145 },
    { x = -70.677, y =  0.250, z = -253.664 },
    { x = -94.985, y =  0.358, z = -233.485 },
    { x = -97.215, y =  0.250, z = -247.476 },
    { x = -83.971, y =  0.241, z = -256.454 },
    { x = -88.118, y = -0.006, z = -220.579 },
    { x = -72.015, y =  0.197, z = -250.155 },
    { x = -66.146, y =  0.250, z = -231.751 },
    { x = -64.790, y =  0.381, z = -246.006 },
    { x = -67.616, y =  0.250, z = -232.389 },
    { x = -71.238, y =  0.303, z = -250.930 },
    { x = -86.662, y =  0.292, z = -225.357 }
}

entity.onMobInitialize = function(mob)
    xi.mob.updateNMSpawnPoint(mob)
    mob:setRespawnTime(math.random(900, 10800))
end

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

entity.onMobDespawn = function(mob)
    xi.mob.updateNMSpawnPoint(mob)
    mob:setRespawnTime(math.random(216000, 259200)) -- 60 to 72 hours
end

return entity
