Permalink
Browse files

DAI Improvements again

  • Loading branch information...
Damgam committed Oct 8, 2018
1 parent d6f995c commit f98dc7ffe11d5786d7e8ab0180bad92e6d66bcac
Showing with 50 additions and 27 deletions.
  1. +50 −27 LuaRules/Gadgets/ai/EvoRTS/taskqueues.lua
@@ -561,30 +561,55 @@ function RandomUnit()
end
elseif GG.TechCheck("tech2", ai.id) == true and GG.TechCheck("tech3", ai.id) == true and Spring.GetGameSeconds() <= 1300 then ------- Reached Tech 3 MK 3
local r = math.random(0,10)
if r == 0 then
return "eheavytank3_up2"
elseif r == 1 then
return "ehbotrocko_up2"
elseif r == 2 then
return "eallterrmed_up2"
elseif r == 3 then
return "eallterrheavy_up2"
elseif r == 4 then
return "egunship2_up2"
elseif r == 5 then
return "ebomber_up2"
elseif r == 6 then
return "efighter_up2"
elseif r == 7 then
return "eairemp_up2"
elseif r == 8 then
return "eamphibrock_up2"
elseif r == 9 then
return "emissiletank_up2"
elseif r == 10 then
return "eamphibmedtank_up2"
local r2 = math.random(0,50)
if r2 ~= 0 then
local r = math.random(0,10)
if r == 0 then
return "eheavytank3_up2"
elseif r == 1 then
return "ehbotrocko_up2"
elseif r == 2 then
return "eallterrmed_up2"
elseif r == 3 then
return "eallterrheavy_up2"
elseif r == 4 then
return "egunship2_up2"
elseif r == 5 then
return "ebomber_up2"
elseif r == 6 then
return "efighter_up2"
elseif r == 7 then
return "eairemp_up2"
elseif r == 8 then
return "eamphibrock_up2"
elseif r == 9 then
return "emissiletank_up2"
elseif r == 10 then
return "eamphibmedtank_up2"
end
elseif r2 == 0 then
if GG.TechCheck("endbringer", ai.id) == true then
local r = math.random(0,4)
if r == 0 then
return "eamphibleveler_up2"
elseif r == 1 then
return "eallterranarchid_up2"
elseif r == 2 then
return "elacerator_up2"
elseif r == 3 then
return "ekrow_up2"
elseif r == 4 then
return "ehbotkarganneth_up2"
end
else
if Spring.GetTeamUnitDefCount(ai.id, UnitDefNames.elifterai.id)*60 < Spring.GetGameSeconds() then
return "elifterai"
else
return "eorb_up2"
end
end
end
elseif GG.TechCheck("tech2", ai.id) == true and GG.TechCheck("tech3", ai.id) == true and Spring.GetGameSeconds() > 1300 then ------- Reached MK 4
local r2 = math.random(0,50)
@@ -708,16 +733,14 @@ local overseerlistfirst = {
"elifterai",
"eturretlightai",
"escoutdrone",
"etech1",
"elaserbattery",
"esolar2",
"eorb",
"eorb",
"esolar2",
"elaserbattery",
"eturretlightai",
"eturretlightai",
"eturretlightai",
"eturretlightai",
"elaserbattery",
}
local overseerorders = {

0 comments on commit f98dc7f

Please sign in to comment.