-----------------------------------
-- Area: Beaucedine Glacier (111)
--   NM: Kirata
-----------------------------------
local ID = zones[xi.zone.BEAUCEDINE_GLACIER]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x =  75.797, y = -0.335, z = -323.659 },
    { x =  69.336, y = -0.234, z = -276.561 },
    { x =  38.330, y =  0.830, z = -336.624 },
    { x =  42.166, y =  0.170, z = -327.430 },
    { x =  82.048, y =  0.264, z = -350.703 },
    { x =  77.494, y =  0.000, z = -358.318 },
    { x =  54.029, y =  0.599, z = -281.554 },
    { x =  82.450, y =  0.227, z = -328.571 },
    { x =  80.695, y =  0.000, z = -317.772 },
    { x =  74.626, y =  0.893, z = -299.667 },
    { x =  70.432, y =  0.000, z = -289.457 },
    { x =  59.290, y =  0.963, z = -278.091 },
    { x =  45.225, y =  0.105, z = -284.489 },
    { x =  64.176, y =  0.778, z = -362.089 },
    { x =  47.698, y =  0.184, z = -357.435 },
    { x =  77.650, y =  0.182, z = -312.348 },
    { x =  72.158, y =  0.134, z = -285.113 },
    { x =  38.862, y =  0.757, z = -304.386 },
    { x =  68.281, y =  0.413, z = -296.512 },
    { x =  43.833, y =  0.018, z = -324.375 },
    { x =  77.550, y =  0.000, z = -321.921 },
    { x =  73.143, y =  0.533, z = -303.728 },
    { x =  50.826, y =  0.340, z = -359.367 },
    { x =  41.446, y =  0.221, z = -288.445 },
    { x =  41.481, y =  0.997, z = -339.959 },
    { x =  81.186, y =  0.923, z = -338.489 },
    { x =  76.542, y = -0.012, z = -323.788 },
    { x =  36.534, y =  0.317, z = -330.371 },
    { x =  39.346, y =  0.979, z = -339.610 },
    { x =  65.305, y =  0.460, z = -286.005 },
    { x =  70.822, y =  0.258, z = -359.772 },
    { x =  39.789, y =  0.000, z = -356.348 },
    { x =  79.526, y =  0.273, z = -329.490 },
    { x =  56.340, y =  0.816, z = -361.954 },
    { x =  38.097, y =  0.447, z = -347.487 },
    { x =  82.346, y =  0.795, z = -344.007 },
    { x =  67.952, y =  0.401, z = -359.616 },
    { x =  36.725, y =  0.000, z = -322.039 },
    { x =  50.735, y =  0.336, z = -319.303 },
    { x =  75.958, y =  0.000, z = -357.495 },
    { x =  51.553, y =  0.377, z = -279.491 },
    { x =  38.080, y =  0.101, z = -353.966 },
    { x =  47.656, y =  0.182, z = -357.738 },
    { x =  65.255, y =  0.270, z = -291.157 },
    { x =  83.144, y =  0.185, z = -312.276 },
    { x =  79.042, y =  0.212, z = -328.271 },
    { x =  67.641, y =  0.308, z = -304.685 },
    { x =  41.307, y =  0.201, z = -288.035 },
    { x =  37.772, y =  0.206, z = -311.851 },
    { x =  46.045, y =  0.050, z = -310.803 }
}

entity.phList =
{
    [ID.mob.KIRATA - 2] = ID.mob.KIRATA, -- 75.797 -0.335 -323.659
    [ID.mob.KIRATA - 1] = ID.mob.KIRATA, -- 69.336 -0.234 -276.561
}

entity.onMobInitialize = function(mob)
    mob:setMobMod(xi.mobMod.ADD_EFFECT, 1)
end

entity.onAdditionalEffect = function(mob, target, damage)
    return xi.mob.onAddEffect(mob, target, damage, xi.mob.ae.ENAERO)
end

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

return entity
