//////////////////////////////////////////
// ATTACK CARGO TRANSPORT
// Run before megagun is captured.
// Attack the base and transport.
//////////////////////////////////////////

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

[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"

targetType2 = "ivtank"
attackType2_1 = "evscout"
attackType2_2 = "evscout"

targetType3 = "ivmisl"
attackType3_1 = "evmisl"
attackType3_2 = "evmisl"

targetType4 = "ivscout"
attackType4_1 = "evscout"


// //Send scavs to collect scrap:
// [Plan1]
// planType = "CollectField"
// planPriority = 490
// maxTries = 2
// buildIfNoIdle = 1
// ContinueEvenIfFail = true

// //Send scavs to deploy on pools:
// [Plan2]
// planType = "CollectPool"
// planPriority = 480
// maxtries = 2
// buildIfNoIdle = 1
// ContinueEvenIfFail = true


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

[Plan3]
planType = "BuildMinimums"
planPriority = 470
buildType1 = "evscout"
buildCount1 = 3
ContinueEvenIfFail = true

[Plan4]
planType = "BuildMinimums"
planPriority = 465
buildType1 = "evtank4"
buildCount1 = 3
ContinueEvenIfFail = true

//Attack his tanks:
[Plan5]
planType = "Attacker"
planPriority = 460
targetType = "ivtank"
attackType1 = "evscout"
attackType2 = "evscout"
//attackType3 = "evscout"
ContinueEvenIfFail = true

//Attack the cargo transport:
[Plan6]
planType = "Attacker"
planPriority = 450
targetType = "ivcargo"
attackType1 = "evtank4"
attackType2 = "evtank4"
//attackType3 = "evtank4"
ContinueEvenIfFail = true


[Plan7]
planType = "BuildMinimums"
planPriority = 440
buildType1 = "evscout4"
buildCount1 = 2
ContinueEvenIfFail = true

[Plan8]
planType = "BuildMinimums"
planPriority = 435
buildType1 = "evmisl"
buildCount1 = 1
ContinueEvenIfFail = true

//Attack his constructor:
[Plan9]
planType = "Attacker"
planPriority = 430
targetType = "ivcons_s"
attackType1 = "evscout4"
attackType2 = "evscout4"
attackType3 = "evmisl"
ContinueEvenIfFail = true


[Plan10]
planType = "BuildMinimums"
planPriority = 420
buildType1 = "evmort"
buildCount1 = 2
ContinueEvenIfFail = true

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

//Attack his turrets:
[Plan12]
planType = "Attacker"
planPriority = 410
maxAttacks = 3
targetType = "ivturr"
attackType1 = "evmort"
attackType2 = "evmort"
//attackType3 = "evmort"
ContinueEvenIfFail = true

//Attack his factory:
[Plan13]
planType = "Attacker"
planPriority = 400
//maxAttacks = 3
targetType = "ibfact_s"
attackType1 = "evtank"
attackType2 = "evtank"
//attackType3 = "evtank"
ContinueEvenIfFail = true


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

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

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

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


[Plan18]
planType = "BuildMinimums"
planPriority = 345
buildType1 = "evkami"
buildCount1 = 4
ContinueEvenIfFail = true

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


[Plan20]
planType = "BuildMinimums"
planPriority = 300
buildType1 = "evmort"
buildCount1 = 3
ContinueEvenIfFail = true

[Plan21]
planType = "BuildMinimums"
planPriority = 295
buildType1 = "evtanku"
buildCount1 = 2
ContinueEvenIfFail = true

//Attack his turrets:
[Plan22]
planType = "Attacker"
planPriority = 290
targetType = "ivturr"
attackType1 = "evmort"
attackType2 = "evmort"
//attackType3 = "evtanku"
//attackType4 = "evtanku"
ContinueEvenIfFail = true

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


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

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

[Plan26]
planType = "BaseBuildMinimums"
planPriority = 250
buildType1 = "ebpgen"
buildCount1 = 1
buildLoc1 = "cppgen2"
ContinueEvenIfFail = true

[Plan27]
planType = "BaseBuildMinimums"
planPriority = 240
buildType1 = "ebgt2g"
buildCount1 = 1
buildLoc1 = "cpspike3"
ContinueEvenIfFail = true


//Upgrade an extractor:
[Plan28]
planType = "Upgrade"
planPriority = 210
unitType = "ebscav"
ContinueEvenIfFail = true


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

// //Send scavs to collect scrap perpetually:
// [Plan30]
// planType = "CollectField"
// planPriority = 100
// buildIfNoIdle = 1

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