-----------------------------------
-- Area: Gustav Tunnel
--  Mob: Typhoon Wyvern
-- Note: Place holder Ungur
-- TODO: Ungur PHs should be in a spawn group with only 1 up at a time
-----------------------------------
local ID = zones[xi.zone.GUSTAV_TUNNEL]
-----------------------------------
---@type TMobEntity
local entity = {}
local ungurSpawnPoints =
{
    { x = -242.000, y = -0.577,  z = 120.000 },
    { x = -88.000,  y = 0.735,   z = 190.000 },
    { x = -123.856, y = 0.239,   z = 223.303 },
    { x = -277.000, y = -10.000, z = -34.000 },
    { x = -316.000, y = -9.000,  z = 3.000   },
    { x = -289.582, y = -9.500,  z = -38.941 },
    { x = -284.910, y = -9.958,  z = -43.536 },
    { x = -304.017, y = -9.015,  z = -0.989  },
    { x = -273.583, y = -9.922,  z = -38.116 },
    { x = -296.713, y = -9.000,  z = 0.085   },
    { x = -322.684, y = -9.962,  z = 3.889   },
    { x = -303.858, y = -10.590, z = -14.773 },
    { x = -302.218, y = -11.104, z = -13.213 },
    { x = -314.753, y = -9.811,  z = -7.747  },
    { x = -322.367, y = -10.005, z = 5.914   },
    { x = -276.609, y = -10.000, z = -38.647 },
    { x = -306.588, y = -10.000, z = -13.894 },
    { x = -274.839, y = -10.227, z = -32.016 },
    { x = -303.478, y = -10.606, z = -16.583 },
    { x = -285.700, y = -9.841,  z = -44.314 },
    { x = -318.878, y = -10.087, z = -5.181  },
    { x = -282.095, y = -10.063, z = -43.786 },
    { x = -291.988, y = -9.032,  z = -0.971  },
    { x = -318.597, y = -9.927,  z = -6.071  },
    { x = -287.275, y = -9.707,  z = -39.412 },
    { x = -307.897, y = -10.014, z = -9.269  },
    { x = -302.696, y = -10.124, z = -21.034 },
    { x = -311.158, y = -9.816,  z = 0.968   },
    { x = -314.449, y = -10.052, z = 3.287   },
    { x = -292.821, y = -10.068, z = -23.438 },
    { x = -303.195, y = -9.336,  z = 3.201   },
    { x = -298.557, y = -10.000, z = -21.815 },
    { x = -290.144, y = -10.144, z = -35.478 },
    { x = -325.082, y = -10.068, z = -4.935  },
    { x = -321.584, y = -9.666,  z = -6.763  },
    { x = -286.432, y = -9.904,  z = -44.690 },
    { x = -316.361, y = -9.981,  z = 2.777   },
    { x = -309.496, y = -9.861,  z = -8.703  },
    { x = -281.302, y = -10.000, z = -4.414  },
    { x = -304.342, y = -9.289,  z = -2.794  },
    { x = -297.101, y = -10.387, z = -15.151 },
    { x = -289.486, y = -9.468,  z = -28.991 },
    { x = -284.495, y = -9.427,  z = -22.604 },
    { x = -285.332, y = -10.163, z = -2.252  },
    { x = -304.288, y = -9.348,  z = 3.238   },
    { x = -309.513, y = -9.491,  z = 5.971   },
    { x = -290.941, y = -10.314, z = -35.245 },
    { x = -289.854, y = -9.507,  z = -38.917 },
    { x = -326.622, y = -9.717,  z = 4.577   },
    { x = -306.271, y = -9.415,  z = -3.174  },
}

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

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

return entity
