//////////////////////////////////////////
// ESCALATE ATTACK
// Run after megagun fired twice.
// Attack the base.
//////////////////////////////////////////

[Start]
scrapCount = 255
consClass = "evcons"
scavClass = "evscavSP"

[Cheat]
moneyAmount = 190
moneyDelay = 10

[IdleDispatcher]
ScavIdleSeconds = 25
UnitIdleSeconds = 120
MinAttackForce = 3 // min # of idle units before dispatch
MaxAttackForce = 5
MinMissionSeconds = 600 // give the player 10 minutes before idle units are sent

[Match]
targetType1 = "ivtank"
attackType1_1 = "evtank"
attackType1_2 = "evscout"

targetType2 = "ivscout"
attackType2_1 = "evscout"
attackType2_2 = "evscout"

targetType3 = "ivmisl"
attackType3_1 = "evscout"
attackType3_2 = "evscout"


// [Plan1]
// planType = "CollectPool"
// planPriority = 490
// maxTries = 2
// buildIfNoIdle = 1
// ContinueEvenIfFail = true

// [Plan2]
// planType = "CollectField"
// planPriority = 480
// maxTries = 2
// buildIfNoIdle = 1
// ContinueEvenIfFail = true


[Plan1]
planType = "BuildMinimums"
planPriority = 470
buildType1 = "evscavSP"
buildCount1 = 2

//Build a constructor:
[Plan3]
planCondition = "NotExists"
planConditionClass = "evcons"
planConditionCount = 1
planType = "BuildMinimums"
planPriority = 460
buildType1 = "evcons"
buildCount1 = 1
ContinueEvenIfFail = true

//Make sure Xyr Tower is constructed:
[Plan4]
planCondition = "NotExists"
planConditionClass = "ebtcen"
planConditionCount = 1
planType = "BaseBuildMinimums"
planPriority = 455
buildType1 = "ebtcen"
buildCount1 = 1
ContinueEvenIfFail = true

//Make sure Xenomator is upgraded:
[Plan5]
planCondition = "NotExists"
planConditionClass = "ebfact2"
planConditionCount = 1
planType = "Upgrade"
planPriority = 450
unitType = "ebfact"
ContinueEvenIfFail = true

//Make sure Believers Vat is constructed:
[Plan6]
planCondition = "NotExists"
planConditionClass = "ebtrain"
planConditionCount = 1
planType = "BaseBuildMinimums"
planPriority = 440
buildType1 = "ebtrain"
buildCount1 = 1
ContinueEvenIfFail = true


[Plan7]
planType = "BuildMinimums"
planPriority = 435
buildType1 = "evmisl"
buildCount1 = 2
ContinueEvenIfFail = true

//Attack his turrets:
[Plan8]
planType = "Attacker"
planPriority = 430
targetType = "ivturr"
attackType1 = "evmisl"
attackType2 = "evmisl"
//attackType3 = "evmisl"
ContinueEvenIfFail = true


[Plan9]
planType = "BuildMinimums"
planPriority = 425
buildType1 = "evkami"
buildCount1 = 2
ContinueEvenIfFail = true

//Attack his gun towers:
[Plan10]
planType = "Attacker"
planPriority = 420
targetType = "ibgtow"
attackType1 = "evkami"
attackType2 = "evkami"
//attackType3 = "evkami"
ContinueEvenIfFail = true


[Plan11]
planType = "BuildMinimums"
planPriority = 400
buildType1 = "evtank"
buildCount1 = 2
ContinueEvenIfFail = true

[Plan12]
planType = "BuildMinimums"
planPriority = 395
buildType1 = "evscout"
buildCount1 = 2
//buildType2 = "evscout4"
//buildCount2 = 1
ContinueEvenIfFail = true

//Attack his tanks:
[Plan13]
planType = "Attacker"
planPriority = 390
targetType = "ivtank"
attackType1 = "evtank"
attackType2 = "evtank"
//attackType3 = "evtank"
ContinueEvenIfFail = true

//Attack his scouts:
[Plan14]
planType = "Attacker"
planPriority = 380
targetType = "ivscout"
attackType1 = "evscout"
attackType2 = "evscout"
//attackType3 = "evscout4"
ContinueEvenIfFail = true


[Plan15]
planType = "BuildMinimums"
planPriority = 360
buildType1 = "evmislu"
buildCount1 = 2
//buildType2 = "evtank4"
//buildCount2 = 1
ContinueEvenIfFail = true

[Plan16]
planType = "BuildMinimums"
planPriority = 355
buildType1 = "evmort"
buildCount1 = 2
buildType1 = "evtanku"
buildCount1 = 1
ContinueEvenIfFail = true

//Attack his power generators:
[Plan17]
planType = "Attacker"
planPriority = 350
targetType = "ibpgen"
attackType1 = "evmislu"
attackType2 = "evmislu"
//attackType3 = "evtank4"
ContinueEvenIfFail = true

//Attack his factory:
[Plan18]
planType = "Attacker"
planPriority = 340
targetType = "ibfact_s"
attackType1 = "evmort"
attackType2 = "evmort"
attackType3 = "evtanku"
//attackType4 = "evtanku"
ContinueEvenIfFail = true


//Maintain the central Spikes:
[Plan19]
planType = "BaseBuildMinimums"
planPriority = 330
buildType1 = "ebpgen"
buildCount1 = 1
buildLoc1 = "cppgen1"
ContinueEvenIfFail = true

[Plan20]
planType = "BaseBuildMinimums"
planPriority = 320
buildType1 = "ebgt2g"
buildCount1 = 1
buildLoc1 = "cpspike2"
buildType2 = "ebgt2g"
buildCount2 = 1
buildLoc2 = "cpspike1"
ContinueEvenIfFail = true

[Plan21]
planType = "BaseBuildMinimums"
planPriority = 310
buildType1 = "ebpgen"
buildCount1 = 1
buildLoc1 = "cppgen2"
ContinueEvenIfFail = true

[Plan22]
planType = "BaseBuildMinimums"
planPriority = 300
buildType1 = "ebgt2g"
buildCount1 = 1
buildLoc1 = "cpspike3"
ContinueEvenIfFail = true


// //Send scavs to deploy on pools:
// [Plan23]
// planType = "CollectPool"
// planPriority = 110
// maxTries = 2
// buildIfNoIdle = 1
// ContinueEvenIfFail = true

// //Send scavs to collect scrap:
// [Plan24]
// planType = "CollectField"
// planPriority = 100
// buildIfNoIdle = 1
// ContinueEvenIfFail = true

[Plan30]
planType = "BuildMinimums"
planPriority = 100
buildType1 = "evscavSP"
buildCount1 = 2
