-----------------------------------
-- Area: Bostaunieux Oubliette (167)
--  Mob: Bloodsucker NM
-- !pos -96.875 16.999 -277.037 167
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x = -150.093, y =  17.000, z = -220.382 },
    { x = -141.934, y =  16.929, z = -220.501 },
    { x = -138.522, y =  16.998, z = -215.991 },
    { x = -140.388, y =  16.947, z = -226.517 },
    { x = -140.280, y =  16.986, z = -235.104 },
    { x = -144.517, y =  16.979, z = -220.775 },
    { x = -139.150, y =  16.960, z = -220.337 },
    { x = -139.047, y =  16.955, z = -213.601 },
    { x = -139.963, y =  16.997, z = -229.482 },
    { x = -139.944, y =  16.991, z = -237.831 },
    { x = -140.019, y =  17.193, z = -244.980 },
    { x = -139.518, y =  16.984, z = -253.150 },
    { x = -139.426, y =  17.026, z = -260.803 },
    { x = -151.932, y =  17.091, z = -258.904 },
    { x = -164.828, y =  17.060, z = -258.926 },
    { x = -177.579, y =  17.002, z = -259.293 },
    { x = -129.093, y =  16.981, z = -262.624 },
    { x = -120.079, y =  17.000, z = -260.113 },
    { x = -112.632, y =  16.954, z = -258.862 },
    { x = -104.884, y =  16.881, z = -259.444 },
    { x =  -98.549, y =  17.000, z = -274.291 },
    { x =  -99.020, y =  16.994, z = -282.129 },
    { x = -100.202, y =  16.991, z = -289.833 },
    { x =  -98.527, y =  17.016, z = -299.046 },
    { x =  -99.674, y =  16.981, z = -252.688 },
    { x =  -99.298, y =  16.990, z = -235.766 },
    { x = -101.391, y =  16.956, z = -225.485 },
    { x =  -95.550, y =  16.949, z = -220.104 },
    { x =  -83.147, y =  17.000, z = -219.522 },
    { x =  -70.343, y =  17.000, z = -221.304 },
    { x =  -55.125, y =  17.000, z = -219.782 },
    { x =  -59.664, y =  17.000, z = -232.248 },
    { x =  -60.630, y =  17.081, z = -249.339 },
    { x =  -60.522, y =  16.898, z = -260.696 },
    { x =  -47.934, y =  17.178, z = -260.080 },
    { x =  -28.886, y =  17.000, z = -260.585 },
    { x =  -17.871, y =  16.964, z = -263.253 },
    { x =  -19.974, y =  17.000, z = -249.294 },
    { x =  -17.746, y =  17.000, z = -236.841 },
    { x =  -17.717, y =  17.000, z = -220.846 },
    { x =   -0.356, y =  17.000, z = -219.796 },
    { x =  -21.621, y =  17.000, z = -205.928 },
    { x =  -19.106, y =  17.007, z = -187.205 },
    { x =  -34.413, y =  17.212, z = -180.284 },
    { x =  -53.528, y =  16.990, z = -179.264 },
    { x =  -60.583, y =  16.991, z = -163.723 },
    { x =  -77.753, y =  17.000, z = -178.852 },
    { x =  -94.430, y =  17.084, z = -180.514 },
    { x =  -22.583, y =  17.000, z = -164.148 },
    { x =  -20.955, y =  16.982, z = -147.381 }
}

entity.onMobInitialize = function(mob)
    mob:setMobMod(xi.mobMod.ADD_EFFECT, 1) -- "Has an Additional Effect of Drain on normal attacks"
    mob:setMobMod(xi.mobMod.GIL_MIN, 3000)
    mob:setMobMod(xi.mobMod.GIL_MAX, 9900)

    xi.mob.updateNMSpawnPoint(mob)
    mob:setRespawnTime(3600)
end

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

entity.onMobDeath = function(mob, player, optParams)
    xi.regime.checkRegime(player, mob, 613, 1, xi.regime.type.GROUNDS)
end

entity.onMobDespawn = function(mob)
    xi.mob.updateNMSpawnPoint(mob)
end

return entity
