-----------------------------------
-- Area: Kuftal Tunnel
--   NM: Bloodthirster Madkix
-----------------------------------
mixins = { require('scripts/mixins/job_special') }
-----------------------------------
local ID = zones[xi.zone.KUFTAL_TUNNEL]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.phList =
{
    [ID.mob.BLOODTHIRSTER_MADKIX - 1] = ID.mob.BLOODTHIRSTER_MADKIX, -- 257.000 10.000 44.000
}

entity.spawnPoints =
{
    { x = 265.000, y =  9.000, z = 30.000 },
    { x = 256.000, y = 10.000, z = 34.000 },
    { x = 265.033, y = 10.893, z = 46.094 },
    { x = 264.910, y = 10.686, z = 51.760 },
    { x = 264.895, y =  9.507, z = 29.617 },
    { x = 259.681, y = 11.267, z = 38.510 },
    { x = 265.267, y = 10.693, z = 35.492 },
    { x = 267.693, y =  9.820, z = 32.948 },
    { x = 260.115, y = 10.742, z = 49.490 },
    { x = 258.695, y =  9.673, z = 31.994 },
    { x = 266.175, y = 10.620, z = 45.806 },
    { x = 258.401, y = 10.488, z = 44.293 },
    { x = 259.258, y = 10.502, z = 44.815 },
    { x = 264.804, y = 10.795, z = 37.025 },
    { x = 261.136, y = 10.968, z = 42.986 },
    { x = 260.988, y = 10.940, z = 42.108 },
    { x = 260.526, y = 10.718, z = 45.083 },
    { x = 258.128, y = 10.045, z = 33.171 },
    { x = 262.517, y =  9.972, z = 32.379 },
    { x = 265.339, y = 10.478, z = 53.706 },
    { x = 267.030, y = 10.281, z = 38.054 },
    { x = 255.762, y = 10.331, z = 52.259 },
    { x = 265.009, y = 10.863, z = 45.673 },
    { x = 265.041, y = 10.616, z = 42.175 },
    { x = 263.522, y = 10.136, z = 33.162 },
    { x = 268.008, y =  9.004, z = 36.190 },
    { x = 264.844, y =  9.886, z = 30.795 },
    { x = 255.024, y =  9.829, z = 47.490 },
    { x = 260.716, y = 10.901, z = 35.790 },
    { x = 266.537, y = 10.383, z = 42.137 },
    { x = 264.482, y = 10.694, z = 41.365 },
    { x = 262.586, y =  9.436, z = 29.720 },
    { x = 256.678, y = 10.445, z = 44.551 },
    { x = 252.080, y =  8.967, z = 41.676 },
    { x = 262.798, y = 11.031, z = 46.880 },
    { x = 269.313, y =  8.633, z = 37.707 },
    { x = 263.941, y = 10.936, z = 51.621 },
    { x = 260.100, y =  9.111, z = 29.894 },
    { x = 260.509, y = 10.651, z = 47.113 },
    { x = 264.846, y = 10.306, z = 33.532 },
    { x = 259.913, y = 11.286, z = 36.542 },
    { x = 267.645, y =  9.628, z = 31.464 },
    { x = 253.555, y =  9.277, z = 48.394 },
    { x = 264.408, y = 10.879, z = 43.901 },
    { x = 262.730, y =  9.886, z = 31.649 },
    { x = 258.539, y = 10.925, z = 35.496 },
    { x = 260.789, y = 10.827, z = 49.230 },
    { x = 259.891, y = 10.532, z = 49.413 },
    { x = 269.249, y =  8.989, z = 44.566 },
    { x = 266.193, y =  9.394, z = 29.491 },
}

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, 421)
end

return entity
