-----------------------------------
-- Area: Mount Zhayolm
--   NM: Energetic Eruca
-- !pos 176.743 -14.210 -180.926 61
-----------------------------------
local ID = zones[xi.zone.MOUNT_ZHAYOLM]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.phList =
{
    -- TODO: This should be audited to make sure this is actually right
    [ID.mob.ENERGETIC_ERUCA - 320] = ID.mob.ENERGETIC_ERUCA, -- 175.315 -14.444 -173.589
    [ID.mob.ENERGETIC_ERUCA - 321] = ID.mob.ENERGETIC_ERUCA, -- 181.601 -14.120 -166.218
}

entity.spawnPoints =
{
    { x = 118.550, y = -14.508, z = -121.507 },
    { x = 119.952, y = -14.003, z = -114.715 },
    { x = 131.825, y = -13.917, z = -112.172 },
    { x = 129.832, y = -13.727, z = -119.281 },
    { x = 127.072, y = -14.212, z = -130.086 },
    { x = 134.622, y = -14.623, z = -131.679 },
    { x = 141.303, y = -13.219, z = -125.396 },
    { x = 146.305, y = -13.765, z = -115.472 },
    { x = 154.408, y = -14.107, z = -112.528 },
    { x = 164.525, y = -14.039, z = -115.346 },
    { x = 170.860, y = -14.000, z = -119.140 },
    { x = 168.305, y = -14.045, z = -129.898 },
    { x = 168.612, y = -13.682, z = -139.009 },
    { x = 158.431, y = -13.294, z = -144.902 },
    { x = 149.230, y = -14.821, z = -153.485 },
    { x = 141.174, y = -14.153, z = -155.752 },
    { x = 145.198, y = -14.490, z = -165.572 },
    { x = 158.884, y = -14.000, z = -163.701 },
    { x = 172.123, y = -13.309, z = -155.851 },
    { x = 182.543, y = -13.706, z = -149.860 },
    { x = 195.486, y = -14.147, z = -152.165 },
    { x = 192.127, y = -13.807, z = -160.270 },
    { x = 170.231, y = -13.735, z = -186.184 },
    { x = 161.495, y = -14.000, z = -197.526 },
    { x = 161.517, y = -14.229, z = -209.787 },
    { x = 176.178, y = -13.127, z = -209.725 },
    { x = 182.448, y = -13.123, z = -202.196 },
    { x = 186.328, y = -13.837, z = -189.990 },
    { x = 193.909, y = -13.149, z = -179.136 },
    { x = 201.043, y = -13.640, z = -171.211 },
    { x = 207.452, y = -14.217, z = -163.395 },
    { x = 215.084, y = -14.509, z = -170.984 },
    { x = 209.177, y = -13.606, z = -183.728 },
    { x = 203.263, y = -13.943, z = -194.852 },
    { x = 197.682, y = -14.000, z = -202.905 },
    { x = 192.936, y = -14.272, z = -213.624 },
    { x = 199.170, y = -14.211, z = -218.359 },
    { x = 211.028, y = -13.720, z = -205.155 },
    { x = 230.276, y = -13.840, z = -192.529 },
    { x = 243.624, y = -14.892, z = -200.478 },
    { x = 252.657, y = -15.331, z = -213.727 },
    { x = 235.763, y = -13.160, z = -221.851 },
    { x = 227.847, y = -14.695, z = -232.572 },
    { x = 222.541, y = -14.429, z = -250.227 },
    { x = 246.130, y = -14.680, z = -250.576 },
    { x = 260.152, y = -15.511, z = -262.527 },
    { x = 279.456, y = -15.640, z = -269.086 },
    { x = 265.377, y = -13.377, z = -284.305 },
    { x = 263.817, y = -15.161, z = -301.018 },
    { x = 278.707, y = -18.142, z = -296.619 },
}

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

return entity
