[Add] Empire ai now properly jumps.
This commit is contained in:
parent
93fd1eef4d
commit
4190314d24
@ -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..
|
||||
|
Loading…
Reference in New Issue
Block a user