-----------------------------------
-- Area: Kuftal Tunnel
--   NM: Arachne
-----------------------------------
local ID = zones[xi.zone.KUFTAL_TUNNEL]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.phList =
{
    [ID.mob.ARACHNE + 5] = ID.mob.ARACHNE, -- 19.000 20.000 37.000
    [ID.mob.ARACHNE + 4] = ID.mob.ARACHNE, -- -10.000 20.000 14.000
    [ID.mob.ARACHNE + 2] = ID.mob.ARACHNE, -- -20.000 21.000 1.000
    [ID.mob.ARACHNE + 3] = ID.mob.ARACHNE, -- -20.000 20.000 38.000
}

entity.spawnPoints =
{
    { x =  19.000, y = 20.000, z = 37.000 },
    { x = -10.000, y = 20.000, z = 14.000 },
    { x = -20.000, y = 20.000, z = 38.000 },
    { x = -20.000, y = 21.000, z =  1.000 },
    { x = -24.425, y = 19.241, z = 25.848 },
    { x = -18.187, y = 19.583, z = 34.362 },
    { x = -18.241, y = 21.161, z =  6.861 },
    { x =  -7.972, y = 21.152, z = 18.243 },
    { x =  -7.325, y = 18.824, z = 11.823 },
    { x = -19.162, y = 21.161, z =  4.024 },
    { x = -20.760, y = 20.801, z =  8.789 },
    { x = -17.798, y = 21.161, z = 12.871 },
    { x = -18.492, y = 21.248, z = -2.312 },
    { x = -13.513, y = 20.429, z =  4.008 },
    { x = -20.639, y = 21.250, z = -0.384 },
    { x = -17.159, y = 21.161, z =  3.952 },
    { x = -12.962, y = 21.025, z = 14.992 },
    { x =  -8.637, y = 19.000, z =  8.815 },
    { x =   1.710, y = 20.658, z = 25.574 },
    { x = -15.238, y = 20.802, z =  9.823 },
    { x =   5.110, y = 20.839, z = 21.166 },
    { x = -18.510, y = 21.155, z =  7.635 },
    { x = -23.876, y = 20.471, z =  5.345 },
    { x = -18.252, y = 20.065, z = 19.023 },
    { x = -15.916, y = 20.611, z = -3.088 },
    { x = -13.268, y = 20.344, z =  4.552 },
    { x = -19.505, y = 21.161, z =  4.798 },
    { x =   4.134, y = 20.871, z = 22.209 },
    { x = -16.650, y = 21.110, z =  6.580 },
    { x = -18.034, y = 20.274, z = 18.475 },
    { x = -17.232, y = 19.937, z = 19.572 },
    { x = -12.282, y = 21.037, z = 14.902 },
    { x =   6.027, y = 20.383, z = 16.256 },
    { x = -23.564, y = 19.071, z = 30.511 },
    { x = -18.333, y = 21.149, z =  9.199 },
    { x = -16.082, y = 21.086, z =  9.562 },
    { x = -23.415, y = 20.313, z =  8.535 },
    { x = -18.161, y = 21.032, z = -3.221 },
    { x = -19.859, y = 21.141, z =  6.554 },
    { x = -19.736, y = 20.235, z = 17.832 },
    { x =   1.357, y = 21.262, z = 22.375 },
    { x = -21.392, y = 20.057, z = 34.508 },
    { x =  -7.567, y = 21.157, z = 19.425 },
    { x = -14.753, y = 21.053, z = 13.742 },
    { x = -19.418, y = 19.500, z = 23.586 },
    { x = -14.997, y = 20.727, z = 16.803 },
    { x = -17.058, y = 20.518, z = 17.846 },
    { x = -14.641, y = 21.032, z = 13.081 },
    { x = -17.966, y = 21.154, z =  2.043 },
    { x = -13.459, y = 20.631, z = 13.067 },
}

entity.onMobInitialize = function(mob)
    mob:setMobMod(xi.mobMod.GIL_MIN, 6000)
    mob:setMobMod(xi.mobMod.GIL_MAX, 6000)
end

entity.onMobDeath = function(mob, player, optParams)
    xi.hunts.checkHunt(mob, player, 420)
end

return entity
