-----------------------------------
-- Area: Gustav Tunnel
--  Mob: Doom Warlock
-- Note: Place holder Taxim
-----------------------------------
local ID = zones[xi.zone.GUSTAV_TUNNEL]
-----------------------------------
---@type TMobEntity
local entity = {}
local taximSpawnPoints =
{
    { x = -172.941, y = -1.220, z = 55.577 },
    { x = -137.334, y = -0.108, z = 48.105 },
    { x = -125.000, y = 0.635,  z = 59.000 },
    { x = -118.000, y = -0.515, z = 79.000 },
    { x = -122.331, y = -0.035, z = 82.481 },
    { x = -161.845, y = 0.139,  z = 51.324 },
    { x = -168.934, y = 0.000,  z = 45.371 },
    { x = -129.331, y = 0.192,  z = 70.387 },
    { x = -142.068, y = 1.000,  z = 39.935 },
    { x = -122.342, y = 0.769,  z = 63.320 },
    { x = -170.967, y = 0.714,  z = 39.502 },
    { x = -158.929, y = -0.050, z = 36.306 },
    { x = -118.041, y = -0.038, z = 46.212 },
    { x = -161.093, y = 0.469,  z = 32.014 },
    { x = -127.621, y = 0.037,  z = 60.185 },
    { x = -148.499, y = 0.703,  z = 48.624 },
    { x = -144.048, y = 0.464,  z = 48.236 },
    { x = -120.232, y = 0.248,  z = 70.898 },
    { x = -117.111, y = 0.000,  z = 85.227 },
    { x = -131.284, y = -0.047, z = 49.028 },
    { x = -149.841, y = 0.765,  z = 42.843 },
    { x = -146.571, y = 1.000,  z = 38.415 },
    { x = -150.358, y = -0.167, z = 51.493 },
    { x = -172.717, y = 0.428,  z = 34.306 },
    { x = -127.326, y = 0.071,  z = 63.663 },
    { x = -127.578, y = -0.099, z = 37.039 },
    { x = -150.149, y = 0.469,  z = 38.663 },
    { x = -136.218, y = 0.238,  z = 44.099 },
    { x = -121.333, y = -0.083, z = 84.322 },
    { x = -134.207, y = 0.000,  z = 48.978 },
    { x = -118.770, y = 0.932,  z = 57.159 },
    { x = -145.823, y = 1.000,  z = 40.371 },
    { x = -126.002, y = 0.346,  z = 55.583 },
    { x = -142.286, y = -0.405, z = 53.309 },
    { x = -148.646, y = 0.906,  z = 47.412 },
    { x = -131.373, y = 0.000,  z = 46.080 },
    { x = -135.447, y = 0.000,  z = 48.104 },
    { x = -131.533, y = 0.000,  z = 66.289 },
    { x = -149.165, y = 0.419,  z = 35.900 },
    { x = -141.316, y = 0.000,  z = 48.636 },
    { x = -119.615, y = 0.000,  z = 41.774 },
    { x = -129.603, y = -0.144, z = 63.743 },
    { x = -157.564, y = 0.322,  z = 49.419 },
    { x = -132.492, y = -0.008, z = 44.459 },
    { x = -126.246, y = 0.000,  z = 79.640 },
    { x = -145.714, y = 0.757,  z = 36.925 },
    { x = -122.150, y = 0.777,  z = 51.453 },
    { x = -121.839, y = 0.990,  z = 60.579 },
    { x = -120.717, y = 1.000,  z = 58.432 },
    { x = -140.436, y = 0.053,  z = 45.891 },
}

entity.onMobDeath = function(mob, player, optParams)
    xi.regime.checkRegime(player, mob, 765, 2, xi.regime.type.GROUNDS)
    xi.regime.checkRegime(player, mob, 766, 1, xi.regime.type.GROUNDS)
    xi.regime.checkRegime(player, mob, 769, 1, xi.regime.type.GROUNDS)
end

entity.onMobDespawn = function(mob)
    xi.mob.phOnDespawn(mob, ID.mob.TAXIM, 5, 7200, { spawnPoints = taximSpawnPoints }) -- 2 hours
end

return entity
