[Change] Made ai a *little* less dumb.

This commit is contained in:
Allanis 2013-03-16 19:13:05 +00:00
parent 744970b9ef
commit 9710d7721b
2 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ function attack()
is.shoot(2)
end
if dir < 10 and dist > 300 then
if dir < 10 and dist > 200 then
ai.accel()
elseif dir < 10 and dist < 300 then
elseif dir < 10 and dist < 200 then
ai.shoot()
end
end

View File

@ -6,7 +6,7 @@ function control()
task = ai.taskname()
enemy = ai.getenemy()
if enemy ~= 0 then
if task ~= "attack" and enemy ~= 0 then
ai.pushtask(0, "attack", enemy)
elseif task == "none" then
planet = ai.rndplanet()