-----------------------------------
-- Area: Giddeus (145)
--   NM: Hoo Mjuu the Torrent
-----------------------------------
mixins = { require('scripts/mixins/job_special') }
-----------------------------------
local ID = zones[xi.zone.GIDDEUS]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x = -63.000, y = -0.860, z =  -91.000 },
    { x = -32.000, y =  0.740, z = -105.000 },
    { x = -37.100, y =  0.582, z = -127.259 },
    { x = -42.389, y =  0.315, z = -130.930 },
    { x = -57.000, y = -2.000, z = -119.000 },
    { x = -39.073, y =  0.597, z = -115.279 },
    { x = -27.194, y =  1.316, z =  -84.194 },
    { x = -78.692, y = -0.653, z =  -92.499 },
    { x = -46.020, y =  0.469, z = -101.926 },
    { x = -40.480, y =  1.000, z = -118.954 },
    { x = -36.316, y =  1.277, z = -111.276 },
    { x = -46.897, y =  0.295, z =  -97.197 },
    { x = -31.958, y =  1.028, z =  -71.971 },
    { x = -70.482, y =  1.243, z =  -69.380 },
    { x = -81.423, y =  1.000, z =  -71.308 },
    { x = -36.325, y =  1.000, z =  -95.533 },
    { x = -21.610, y =  0.687, z =  -70.378 },
    { x = -31.715, y =  0.771, z =  -93.257 },
    { x = -42.943, y =  1.000, z =  -97.089 },
    { x = -35.230, y =  0.744, z =  -91.412 },
    { x = -50.083, y = -0.267, z = -120.731 },
    { x = -47.804, y =  0.017, z = -112.115 },
    { x = -32.032, y =  1.318, z =  -87.061 },
    { x = -43.103, y =  1.000, z = -112.137 },
    { x = -90.280, y = -0.565, z =  -84.597 },
    { x = -28.083, y =  0.899, z =  -73.763 },
    { x = -57.961, y =  1.000, z =  -81.284 },
    { x = -62.342, y =  0.474, z =  -86.003 },
    { x = -46.650, y =  0.311, z = -102.442 },
    { x = -50.829, y =  0.950, z =  -83.587 },
    { x = -48.812, y = -0.166, z = -106.726 },
    { x = -42.810, y =  0.834, z =  -91.884 },
    { x = -41.118, y =  1.000, z =  -93.202 },
    { x = -26.922, y =  1.090, z =  -83.896 },
    { x = -27.974, y =  1.404, z =  -88.717 },
    { x = -58.354, y =  1.000, z =  -80.969 },
    { x = -61.027, y = -0.295, z =  -89.536 },
    { x = -47.404, y =  0.123, z = -101.495 },
    { x = -36.586, y =  1.329, z = -104.497 },
    { x = -37.128, y =  1.000, z = -118.051 },
    { x = -34.975, y =  1.350, z = -111.613 },
    { x = -69.216, y =  0.727, z =  -84.936 },
    { x = -35.367, y =  0.859, z =  -90.359 },
    { x = -55.364, y = -0.359, z =  -90.817 },
    { x = -79.258, y =  0.490, z =  -85.936 },
    { x = -64.949, y = -0.272, z =  -88.724 },
    { x = -45.738, y =  0.539, z = -100.449 },
    { x = -28.026, y =  1.056, z =  -64.385 },
    { x = -62.358, y =  0.916, z =  -77.275 },
    { x = -46.852, y =  0.175, z =  -91.316 }
}

entity.phList =
{
    [ID.mob.HOO_MJUU_THE_TORRENT - 2] = ID.mob.HOO_MJUU_THE_TORRENT, -- -39.073 0.597 -115.279
}

entity.onMobSpawn = function(mob)
    xi.mix.jobSpecial.config(mob, {
        specials =
        {
            { id = xi.jsa.BENEDICTION, hpp = math.random(10, 50) },
        },
    })
end

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

return entity
