-----------------------------------
-- Area: Korroloka Tunnel (173)
--   NM: Dame Blanche
-----------------------------------
local ID = zones[xi.zone.KORROLOKA_TUNNEL]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x = -345.369, y =  0.716, z =  119.486 },
    { x = -319.266, y = -0.244, z =  130.650 },
    { x = -319.225, y = -0.146, z =  109.776 },
    { x = -296.821, y = -3.207, z =  131.239 },
    { x = -292.487, y = -5.993, z =  141.408 },
    { x = -277.338, y = -9.352, z =  139.763 },
    { x = -276.713, y = -9.954, z =  135.353 },
    { x = -356.506, y =  0.345, z =  119.549 },
    { x = -353.631, y =  0.435, z =  115.577 },
    { x = -320.553, y =  0.500, z =  113.962 },
    { x = -316.714, y =  0.295, z =  118.563 },
    { x = -325.025, y =  0.622, z =  121.953 },
    { x = -304.947, y = -1.064, z =  136.483 },
    { x = -304.586, y = -0.740, z =  132.951 },
    { x = -303.939, y = -1.066, z =  134.302 },
    { x = -306.578, y = -0.036, z =  127.566 },
    { x = -335.221, y =  1.039, z =  126.292 },
    { x = -364.277, y =  0.000, z =  118.917 },
    { x = -333.430, y =  0.891, z =  124.787 },
    { x = -319.980, y =  0.333, z =  123.440 },
    { x = -364.119, y =  0.000, z =  122.677 },
    { x = -311.817, y =  0.500, z =  121.593 },
    { x = -316.343, y =  0.474, z =  116.994 },
    { x = -311.962, y =  0.547, z =  123.015 },
    { x = -308.320, y =  0.128, z =  127.743 },
    { x = -322.972, y =  0.335, z =  127.432 },
    { x = -342.782, y =  1.318, z =  124.501 },
    { x = -336.446, y =  1.299, z =  118.976 },
    { x = -346.969, y =  0.779, z =  113.725 },
    { x = -351.352, y =  0.713, z =  126.857 },
    { x = -330.868, y =  0.574, z =  125.215 },
    { x = -352.454, y =  0.467, z =  113.849 },
    { x = -304.087, y = -1.127, z =  136.397 },
    { x = -308.763, y = -0.163, z =  133.681 },
    { x = -299.883, y = -1.696, z =  132.590 },
    { x = -314.784, y =  0.618, z =  126.808 },
    { x = -325.564, y =  0.688, z =  120.154 },
    { x = -319.033, y =  0.234, z =  123.041 },
    { x = -351.496, y =  0.750, z =  121.242 },
    { x = -339.678, y =  1.400, z =  115.192 },
    { x = -356.483, y =  0.328, z =  113.102 },
    { x = -298.670, y = -2.291, z =  137.637 },
    { x = -324.885, y =  0.469, z =  123.661 },
    { x = -352.962, y =  0.464, z =  114.097 },
    { x = -324.333, y =  0.500, z =  114.961 },
    { x = -330.818, y =  0.890, z =  112.671 },
    { x = -345.157, y =  1.073, z =  116.972 },
    { x = -335.536, y =  1.149, z =  124.650 },
    { x = -355.312, y =  0.568, z =  117.701 },
    { x = -314.596, y =  0.601, z =  123.961 }
}

entity.phList =
{
    [ID.mob.DAME_BLANCHE - 1] =  ID.mob.DAME_BLANCHE, -- -345.369 0.716 119.486
    [ID.mob.DAME_BLANCHE - 2] =  ID.mob.DAME_BLANCHE, -- -319.266 -0.244 130.650
    [ID.mob.DAME_BLANCHE - 3] =  ID.mob.DAME_BLANCHE, -- -319.225 -0.146 109.776
    [ID.mob.DAME_BLANCHE - 5] =  ID.mob.DAME_BLANCHE, -- -296.821 -3.207 131.239
    [ID.mob.DAME_BLANCHE - 4] =  ID.mob.DAME_BLANCHE, -- -292.487 -5.993 141.408
    [ID.mob.DAME_BLANCHE - 10] = ID.mob.DAME_BLANCHE, -- -277.338 -9.352 139.763
    [ID.mob.DAME_BLANCHE - 11] = ID.mob.DAME_BLANCHE, -- -276.713 -9.954 135.353
}

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

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

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

return entity
