-----------------------------------
-- Area: Korroloka Tunnel
--   NM: Falcatus Aranei
-----------------------------------
local ID = zones[xi.zone.KORROLOKA_TUNNEL]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x = -68.852, y = -5.029, z =  141.069 },
    { x = -94.545, y = -6.095, z =  136.480 },
    { x = -79.827, y = -6.046, z =  133.982 },
    { x = -25.445, y = -6.073, z =  142.192 },
    { x = -33.446, y = -6.038, z =  141.987 },
    { x = -80.597, y = -5.500, z =  140.416 },
    { x = -78.241, y = -5.515, z =  140.841 },
    { x = -76.937, y = -5.327, z =  138.895 },
    { x = -62.565, y = -4.040, z =  138.745 },
    { x = -64.774, y = -4.152, z =  144.677 },
    { x = -72.896, y = -5.058, z =  138.936 },
    { x = -55.008, y = -5.580, z =  134.392 },
    { x = -55.274, y = -4.842, z =  138.336 },
    { x = -59.904, y = -4.080, z =  139.140 },
    { x = -73.321, y = -5.113, z =  139.462 },
    { x = -65.178, y = -4.256, z =  145.132 },
    { x = -49.857, y = -5.628, z =  141.205 },
    { x = -66.961, y = -4.747, z =  145.079 },
    { x = -50.336, y = -5.435, z =  143.767 },
    { x = -65.148, y = -4.191, z =  144.151 },
    { x = -81.255, y = -5.500, z =  138.037 },
    { x = -70.117, y = -4.411, z =  136.235 },
    { x = -51.905, y = -4.744, z =  143.289 },
    { x = -82.472, y = -5.500, z =  143.515 },
    { x = -51.245, y = -5.325, z =  144.618 },
    { x = -78.109, y = -5.507, z =  141.212 },
    { x = -62.904, y = -4.000, z =  139.769 },
    { x = -78.206, y = -5.513, z =  141.575 },
    { x = -58.996, y = -4.126, z =  139.594 },
    { x = -67.301, y = -4.296, z =  139.569 },
    { x = -48.057, y = -5.614, z =  139.647 },
    { x = -49.464, y = -5.577, z =  143.707 },
    { x = -72.737, y = -5.019, z =  137.350 },
    { x = -79.169, y = -5.500, z =  139.693 },
    { x = -49.192, y = -5.573, z =  139.478 },
    { x = -78.570, y = -5.500, z =  139.072 },
    { x = -49.681, y = -5.971, z =  137.163 },
    { x = -61.372, y = -4.016, z =  139.711 },
    { x = -72.706, y = -5.143, z =  139.896 },
    { x = -68.041, y = -4.366, z =  138.776 },
    { x = -61.878, y = -4.042, z =  139.366 },
    { x = -80.338, y = -5.500, z =  135.474 },
    { x = -56.387, y = -4.273, z =  140.186 },
    { x = -58.657, y = -4.217, z =  138.525 },
    { x = -75.922, y = -5.353, z =  134.489 },
    { x = -68.049, y = -4.442, z =  139.991 },
    { x = -75.346, y = -5.218, z =  134.944 },
    { x = -66.742, y = -4.188, z =  139.273 },
    { x = -81.383, y = -5.500, z =  142.450 },
    { x = -80.854, y = -5.500, z =  136.215 }
}

entity.phList =
{
    [ID.mob.FALCATUS_ARANEI + 2] = ID.mob.FALCATUS_ARANEI, -- -68.852 -5.029 141.069
    [ID.mob.FALCATUS_ARANEI + 1] = ID.mob.FALCATUS_ARANEI, -- -94.545 -6.095 136.480
    [ID.mob.FALCATUS_ARANEI + 3] = ID.mob.FALCATUS_ARANEI, -- -79.827 -6.046 133.982
    [ID.mob.FALCATUS_ARANEI - 4] = ID.mob.FALCATUS_ARANEI, -- -25.445 -6.073 142.192
    [ID.mob.FALCATUS_ARANEI - 3] = ID.mob.FALCATUS_ARANEI, -- -33.446 -6.038 141.987
}

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

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

return entity
