[Add] Empire ai now properly jumps.

This commit is contained in:
Allanis 2013-10-16 23:30:51 +01:00
parent 93fd1eef4d
commit 4190314d24

View File

@ -11,6 +11,12 @@ function control()
if task ~= "attack" and enemy ~= nil then
ai.hostile(enemy)
ai.pushtask(0, "attack", enemy)
-- Enter hyperspace if possible.
elseif task == "hyperspace" then
ai.hyperspace() -- Try to hyperspace.
-- Get new task.
elseif task == "none" then
planet = ai.landplanet()
-- Planet needs to exist..