# 54

// Any changes made to the order, additions or subractions to this
// file should be reflected in the strategies.txt file!!

GOAL_DEFEND {
  ExecuteIncrementally
  NoTransport

  SquadClass:CanAttack
  SquadClass:CanDefend

  TargetType:City
  TargetOwner:Self

  Execute	ORDER_MOVE

  ThreatBonus		 1000
  EnemyValueBonus		    0
  AlliedValueBonus		    0 //WW from 1000
  PowerBonus		       -1000 //WW from -100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  250
  UnexploredBonus	     -999999
  ObsoleteArmyBonus		  -5000 //MG from -500 obsolete armies on defence no way
  TreaspassingArmyBonus	    0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Defensive
}

GOAL_SEIGE {
  RallyFirst

  SquadClass:CanAttack
 // SquadClass:CanDefend (WW out-commented)
  SquadClass:HasZoc
  SquadClass:CanCaptureCity

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_ATTACK

  ThreatBonus		 1300 //WW from 500
  EnemyValueBonus		  -50 //WW from -250
  AlliedValueBonus		 1000
  PowerBonus			  500
  DistanceToHomeBonus	   0
  DistanceToEnemyBonus	   0
  ChokePointBonus		  500
  UnexploredBonus	         -10 //WW from -999999
  ObsoleteArmyBonus		    10000 //MG from 100 hey we want get rid of obsolete armies
  TreaspassingArmyBonus	    0

  ThreatenType:DestroyCity
  ThreatenBonus 6000		//WW from 5000

  ForceMatch:Harass //MG from Harrass

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_ATTACK {
  RallyFirst

  SquadClass:CanAttack

  TargetType:AttackUnit
  TargetType:SpecialUnit
  TargetOwner:HotEnemy

  Execute	ORDER_ATTACK
 
  ThreatBonus		  100
  EnemyValueBonus		  -50 //WW from -250
  AlliedValueBonus		 1000
  PowerBonus			  500
  DistanceToHomeBonus	   0
  DistanceToEnemyBonus	   0
  ChokePointBonus		   50
  UnexploredBonus	         -50 //WW from -999999 
  ObsoleteArmyBonus		    10000 //MG from 100 hey we want get rid of obsolete armies
  TreaspassingArmyBonus	 1000 //WW from 0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Offensive

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_BOMBARD {
  SquadClass:CanDefend
  SquadClass:CanAttack
  SquadClass:CanBombard

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_BOMBARD
 
  ThreatBonus		 -100
  EnemyValueBonus		 -100 //WW from 100
  AlliedValueBonus		    0 //WW from 1000
  PowerBonus			    0 //WW from 150
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	     -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus	    0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Bombard

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_BOMBARD_UNIT {		//WW this goal is used for bombarding enemy units
  SquadClass:CanDefend
  SquadClass:CanAttack
  SquadClass:CanBombard

  TargetType:AttackUnit	//WW added
  TargetType:SpecialUnit	//WW added
  TargetOwner:HotEnemy

  Execute	ORDER_BOMBARD
 
  ThreatBonus		 -100
  EnemyValueBonus		 -100 //WW from 100
  AlliedValueBonus		    0 //WW from 1000
  PowerBonus			    0 //WW from 150
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	     -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus	    0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Bombard

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_HARASS_CITY {
  RallyFirst		//WW added

  SquadClass:CanAttack
  SquadClass:CanDefend
  SquadClass:HasZoc
  SquadClass:CanCaptureCity

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_ATTACK
 
  ThreatBonus			  500
  EnemyValueBonus		 -500 //-500
  AlliedValueBonus		 1000
  PowerBonus			  500
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  500
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		  10000//MG from 100 hey we want get rid of obsolete armies
  TreaspassingArmyBonus     0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Harass 

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_HARASS {
  RallyFirst

  SquadClass:CanAttack

  TargetType:AttackUnit
  TargetType:SpecialUnit
  TargetOwner:HotEnemy

  Execute	ORDER_ATTACK
 
  ThreatBonus		  100
  EnemyValueBonus		 -500//from -500
  AlliedValueBonus		 1500
  PowerBonus			  500    
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		   50
  UnexploredBonus	     -999999 
  ObsoleteArmyBonus		  10000//MG from 100 hey we want get rid of obsolete armies
  TreaspassingArmyBonus	    0 

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Offensive

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_SETTLE_LAND {
  NeedsEscort

  SquadClass:Special

  TargetType:SettleLand
  TargetOwner:Self
  TargetOwner:NoContact
  TargetOwner:Neutral	//WW added

  Execute	ORDER_SETTLE

  ThreatBonus		 -100
  EnemyValueBonus		 -100
  AlliedValueBonus		  100
  PowerBonus			  100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	   15
  ChokePointBonus		  100
  UnexploredBonus		 -100
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus	    0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_SETTLE_SEA {
  NeedsEscort

  SquadClass:Special

  TargetType:SettleSea
  TargetOwner:Self
  TargetOwner:NoContact
  TargetOwner:Neutral	//WW added

  Execute	ORDER_SETTLE

  ThreatBonus		 -100
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			  100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	   15
  ChokePointBonus		  100
  UnexploredBonus		 -100
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus	    0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_EXPLORE {
  SquadClass:CanExplore

  TargetType:Unexplored
  TargetOwner:Self
  TargetOwner:Ally
  TargetOwner:HotEnemy
  TargetOwner:NoContact

  Execute	ORDER_MOVE
  
  // Try to explore away from home, but close
  // to enemies/foreigners.
  ThreatBonus		    0
  EnemyValueBonus		    0
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	  -25
  DistanceToEnemyBonus	   -1	//WW from -5
  ChokePointBonus		  100
  UnexploredBonus		  100
  ObsoleteArmyBonus		   10
  TreaspassingArmyBonus	  500

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_ENSLAVE_SETTLER {
  NeedsEscort

  SquadClass:Special

  TargetType:SpecialUnit
  TargetOwner:HotEnemy
  TargetOwner:ColdEnemy  //WW added

  Execute	ORDER_ENSLAVE_SETTLER

  ThreatBonus		  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			  100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	     -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus	    0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_SLAVE_RAID {
  AvoidWatchfulCity

  SquadClass:Special

  TargetType:City
  TargetOwner:HotEnemy
  TargetOwner:ColdEnemy  //WW added
  TargetOwner:NoContact

  Execute	ORDER_SLAVE_RAID

  ThreatBonus		  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			  100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	     -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus	    0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_CHOKEPOINT {
  NoTransport  
  RallyFirst

  SquadClass:CanAttack
  SquadClass:CanDefend
  SquadClass:HasZoc

  TargetType:ChokePoint
  TargetOwner:Self

  Execute	ORDER_MOVE

  ThreatBonus		  100
  EnemyValueBonus		    0
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	  -10 //WW from -100
  DistanceToEnemyBonus	   -1
  ChokePointBonus		    0
  UnexploredBonus	     -999999
  ObsoleteArmyBonus		  -50
  TreaspassingArmyBonus	  500

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Defensive
}

GOAL_PATROL {
  NoTransport  

  SquadClass:CanAttack
  SquadClass:CanDefend
  SquadClass:HasZoc

  TargetType:Improvement
  TargetType:Border
  TargetOwner:Self

  Execute	ORDER_MOVE

  ThreatBonus		  100
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			 -100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	   -1 //WW from 0
  ChokePointBonus		  250 //WW from 100
  UnexploredBonus	     -999999
  ObsoleteArmyBonus		   10
  TreaspassingArmyBonus	  500

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Defensive
}

GOAL_CONVERT_CITY {
  AvoidWatchfulCity

  SquadClass:Special

  TargetType:City
  TargetOwner:Neutral
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy
  TargetOwner:NoContact

  Execute	ORDER_CONVERT

  ThreatBonus		  -50
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_BIOTERROR_CITY {
  AvoidWatchfulCity

  SquadClass:Special

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_BIO_INFECT

  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Special
} 

GOAL_NANOATTACK_CITY {
  AvoidWatchfulCity

  SquadClass:Special

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_NANO_INFECT

  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			  100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Special
} 

GOAL_EXPEL {
  SquadClass:CanAttack

  TargetType:SpecialUnit
  TargetOwner:Neutral
  TargetOwner:ColdEnemy

  Execute	ORDER_EXPEL
 
  ThreatBonus			 -100
  EnemyValueBonus		    0
  AlliedValueBonus		   50 
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		   10
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_PILLAGE {
  NoTransport

  SquadClass:CanAttack

  TargetType:Improvement
  TargetOwner:HotEnemy

  Execute	ORDER_PILLAGE
 
  ThreatBonus			  -25
  EnemyValueBonus		   25
  AlliedValueBonus		    0
  PowerBonus			  100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		   10
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_PIRATE {
  NoTransport

  SquadClass:CanAttack

  TargetType:TradeRoute
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy

  Execute	ORDER_INTERCEPT_TRADE
 
  ThreatBonus			 -100
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			  100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		   10
  TreaspassingArmyBonus     0

  ThreatenType:Pirate
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_COUNTER_STEALTH {
  NoTransport

  SquadClass:CanAttack

  TargetType:SpecialUnit
  TargetOwner:HotEnemy

  Execute	ORDER_MOVE
 
  ThreatBonus			 -100
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			  100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		   10
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_GOODY_HUT {
  SquadClass:CanExplore

  TargetType:GoodyHut
  TargetOwner:Self
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy
  TargetOwner:NoContact

  Execute	ORDER_MOVE

  ThreatBonus			    0
  EnemyValueBonus		    0
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0  //WW from -5 
  DistanceToEnemyBonus	    0  //WW from -1
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		   10
  TreaspassingArmyBonus   500

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_PLANT_NUKE {
  AvoidWatchfulCity

  SquadClass:Special  

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_PLANT_NUKE
 
  ThreatBonus			  100
  EnemyValueBonus		  100
  AlliedValueBonus		  -30
  PowerBonus			  -30
  DistanceToHomeBonus	   10
  DistanceToEnemyBonus	  -10
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Special

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_CREATE_PARK {
  SquadClass:Special  

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_CREATE_PARK
 
  ThreatBonus			  100
  EnemyValueBonus		  100
  AlliedValueBonus		  -30
  PowerBonus			  -30
  DistanceToHomeBonus	   10
  DistanceToEnemyBonus	  -10
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Special

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_SOOTHSAY {
  AvoidWatchfulCity

  SquadClass:Special  

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_SOOTHSAY
 
  ThreatBonus			  100
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_ESTABLISH_EMBASSY {
  NeedsEscort

  SquadClass:Special  

  TargetType:City
  TargetOwner:Ally
  TargetOwner:Neutral
  TargetOwner:ColdEnemy  //WW added
  TargetOwner:NoContact

  Execute	ORDER_ESTABLISH_EMBASSY
 
  // just want to establish embassy at closest city.
  ThreatBonus			    0
  EnemyValueBonus		    0
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	   -1 
  DistanceToEnemyBonus	    1 
  ChokePointBonus		    0
  UnexploredBonus	    -1500
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_FRANCHISING {
  SquadClass:Special  

  TargetType:City
  TargetOwner:Neutral
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy

  Execute	ORDER_FRANCHISE
 
  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_STEAL_TECHNOLOGY {
  AvoidWatchfulCity

  SquadClass:Special  

  TargetType:City
  TargetOwner:Neutral
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy

  Execute	ORDER_STEAL_TECHNOLOGY
 
  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_INVESTIGATE_CITY {
  AvoidWatchfulCity

  SquadClass:Special  

  TargetType:City
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy
  TargetOwner:NoContact

  Execute	ORDER_INVESTIGATE_CITY
 
  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_INCITE_REVOLUTION {
  AvoidWatchfulCity

  SquadClass:Special  

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_INCITE_REVOLUTION
 
  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_INJOIN {
  SquadClass:Special  

  TargetType:City
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy

  Execute	ORDER_INJOIN
 
  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_ASSASSINATE {
  AvoidWatchfulCity

  SquadClass:Special  

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_ASSASSINATE
 
  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_UNDERGROUND_RAILWAY {
  SquadClass:Special  

  TargetType:City
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy

  Execute	ORDER_UNDERGROUND_RAILWAY
 
  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_NUKE_CITY {
  SquadClass:Special  

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_ATTACK

  ThreatBonus			  100
  EnemyValueBonus		  100
  AlliedValueBonus		  -30
  PowerBonus			  -30
  DistanceToHomeBonus	   10
  DistanceToEnemyBonus	  -10
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:StealthAttack

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_WANDER {
  SquadClass:CanExplore

  TargetType:Random
  TargetOwner:Self
  TargetOwner:Ally
  TargetOwner:Neutral
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy
  TargetOwner:NoContact

  Execute	ORDER_MOVE
 
  ThreatBonus			    0  
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	  -10
  ChokePointBonus		    0
  UnexploredBonus		    0
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_REFORM {
  SquadClass:CanAttack

  TargetType:City
  TargetOwner:Self

  Execute	ORDER_REFORM
 
  ThreatBonus			    0
  EnemyValueBonus		    0
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus		    0
  ObsoleteArmyBonus		  100
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_SUE_FRANCHISE {
  SquadClass:Special  

  TargetType:City
  TargetOwner:Self

  Execute	ORDER_SUE_FRANCHISE
 
  ThreatBonus			    0
  EnemyValueBonus		    0
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

// Cause military units to pullback towards our city
//
GOAL_RETREAT {
  ExecuteIncrementally
  NeverSatisfied

  SquadClass:CanAttack
  SquadClass:CanDefend
  SquadClass:HasZoc
  SquadClass:CanCaptureCity

  TargetType:City
  TargetOwner:Self

  Execute	ORDER_MOVE
 
  ThreatBonus			    0
  EnemyValueBonus		    0
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus		    0
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus 1200000 //MG from 10000 add to -300000 base priority to a priority of 900000

  ThreatenType:None
  ThreatenBonus 0

  // no force matching to retreat
  ForceMatch:Special 
}

// Defend our endgame terrain improvements
GOAL_PROTECT_ENDGAME
{
  ExecuteIncrementally
  NoTransport

  SquadClass:CanAttack
  SquadClass:CanDefend

  TargetType:Endgame
  TargetOwner:Self

  Execute	ORDER_MOVE

  ThreatBonus			  100
  EnemyValueBonus		    0
  AlliedValueBonus		   50
  PowerBonus			 -100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		  -10
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Defensive
}

// Defend our endgame terrain improvements
GOAL_DESTROY_ENDGAME
{
  NoTransport

  SquadClass:CanAttack

  TargetType:Endgame
  TargetOwner:Neutral
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy
  TargetOwner:NoContact

  Execute	ORDER_PILLAGE
 
  ThreatBonus			 -100
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			  100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		   10
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Offensive
}

GOAL_ADVERTISING {
  AvoidWatchfulCity

  SquadClass:Special  

  TargetType:City
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy
  TargetOwner:NoContact

  Execute	ORDER_ADVERTISE
 
  ThreatBonus			  100
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_INCITE_UPRISING {
  AvoidWatchfulCity

  SquadClass:Special  

  TargetType:City
  TargetOwner:HotEnemy
  TargetOwner:ColdEnemy

  Execute	ORDER_INCITE_UPRISING
 
  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_POISON_CITY {
  AvoidWatchfulCity

  SquadClass:Special

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_PLAGUE

  ThreatBonus			  -50
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Special
} 

GOAL_THROW_PARTY {
  NeedsEscort

  SquadClass:Special  

  TargetType:City
  TargetOwner:Ally
  TargetOwner:Neutral
  TargetOwner:ColdEnemy  //WW added
  TargetOwner:NoContact

  Execute	ORDER_THROW_PARTY
 
  // just want to establish embassy at closest city.
  ThreatBonus			    0
  EnemyValueBonus		    0
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	   -1 
  DistanceToEnemyBonus	    1 
  ChokePointBonus		    0
  UnexploredBonus	    -1500
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_SUE {
  SquadClass:Special  

  TargetType:SpecialUnit
  TargetOwner:Neutral
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy
  TargetOwner:NoContact

  Execute	ORDER_SUE
 
  ThreatBonus			 -100
  EnemyValueBonus		    0
  AlliedValueBonus		   50
  PowerBonus			    0
  DistanceToHomeBonus	    2
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_INDULGENCE {
  AvoidWatchfulCity

  SquadClass:Special  

  TargetType:City
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy
  TargetOwner:NoContact

  Execute	ORDER_INDULGENCE
 
  ThreatBonus			  100
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_FAITH_HEALING {
  SquadClass:Special  

  TargetType:City
  TargetOwner:Neutral
  TargetOwner:ColdEnemy
  TargetOwner:HotEnemy
  TargetOwner:NoContact //MG added

  Execute	ORDER_FAITH_HEALING
 
  ThreatBonus			  100
  EnemyValueBonus		  100
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:SpecialAttackCity
  ThreatenBonus 5000

  ForceMatch:Special
}

GOAL_REFUEL {
  SquadClass:Special  

  TargetType:City
  TargetOwner:Self

  Execute	ORDER_REFUEL
 
  ThreatBonus			    0
  EnemyValueBonus		    0
  AlliedValueBonus		  100
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_PARADROP {
  RallyFirst		//WW added

  SquadClass:CanAttack
  SquadClass:CanDefend
  SquadClass:HasZoc
  SquadClass:CanCaptureCity

  TargetType:Improvement
  TargetOwner:HotEnemy

  Execute	ORDER_PARADROP
 
  ThreatBonus			  500
  EnemyValueBonus		 -500
  AlliedValueBonus		 1000
  PowerBonus			  500
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  500
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		  100
  TreaspassingArmyBonus     0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Harass 

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_CLEAR_ORDERS {
  SquadClass:CanExplore
  SquadClass:CanAttack

  TargetType:AttackUnit	
  TargetType:SpecialUnit
  TargetOwner:Self

  Execute	ORDER_CLEAR_ORDERS
 
  ThreatBonus			    0  
  EnemyValueBonus		    0
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus		    0
  DistanceToEnemyBonus	            0
  ChokePointBonus		    0
  UnexploredBonus		    0
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus		    0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_RANGED_ATTACK {
  RallyFirst

  SquadClass:CanAttack

  TargetType:AttackUnit
  TargetType:SpecialUnit
  TargetOwner:HotEnemy

  Execute	ORDER_RANGED_ATTACK
 
  ThreatBonus		  100
  EnemyValueBonus		  -50 //WW from -250
  AlliedValueBonus		 1000
  PowerBonus			  500
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		   50
  UnexploredBonus	         -50 //WW from -999999 
  ObsoleteArmyBonus		    0 //WW from 100
  TreaspassingArmyBonus	 1000 //WW from 0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Offensive

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_BUILD_FORT {
  NoTransport  

  SquadClass:CanAttack
  SquadClass:CanDefend
  SquadClass:HasZoc

  TargetType:ChokePoint
  TargetType:Border
  TargetOwner:Self
  TargetOwner:Neutral

  Execute	ORDER_BUILD_FORT

  ThreatBonus		  100
  EnemyValueBonus		    0
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	  -10 //WW from -100
  DistanceToEnemyBonus	   -1
  ChokePointBonus		   10
  UnexploredBonus	     -999999
  ObsoleteArmyBonus		  -50
  TreaspassingArmyBonus	  500

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Defensive
}

GOAL_BUILD_DETECTOR {
  SquadClass:Special  
  SquadClass:CanExplore
  SquadClass:CanAttack
  SquadClass:CanDefend
  SquadClass:HasZoc

  TargetType:Border
  TargetOwner:Self

  Execute	ORDER_BUILD_DETECTOR
 
  ThreatBonus			    0  
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus		    0
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_BUILD_AIR_BASES {
  SquadClass:Special  
  SquadClass:CanExplore
  SquadClass:CanAttack
  SquadClass:CanDefend
  SquadClass:HasZoc

  TargetType:Border
  TargetOwner:Self

  Execute	ORDER_BUILD_AIR_BASES
 
  ThreatBonus			    0  
  EnemyValueBonus		  100
  AlliedValueBonus		    0
  PowerBonus			    0
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		    0
  UnexploredBonus		    0
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Special
}

GOAL_SALLY {
  IsSally
  NoTransport

  SquadClass:CanAttack

  TargetType:AttackUnit
  TargetOwner:HotEnemy

  Execute	ORDER_ATTACK
 
  ThreatBonus			    0
  EnemyValueBonus		    0
  AlliedValueBonus		    0
  PowerBonus			  500 //MG from 100
  DistanceToHomeBonus	    0
  DistanceToEnemyBonus	    0
  ChokePointBonus		  500 //MG from 100
  UnexploredBonus	  -999999
  ObsoleteArmyBonus		    0
  TreaspassingArmyBonus     0

  ThreatenType:None
  ThreatenBonus 0

  ForceMatch:Offensive
}

GOAL_FRONT {
  //RallyFirst

  SquadClass:CanAttack

  TargetType:Border
  TargetOwner:HotEnemy
  TargetOwner:ColdEnemy

  Execute	ORDER_GO_TO_CITY
 
  ThreatBonus		  100
  EnemyValueBonus		  -50 //WW from -250
  AlliedValueBonus		 1000
  PowerBonus			  500
  DistanceToHomeBonus	   0 //MG from 0 let's see what happens
  DistanceToEnemyBonus	   1000 //MG from 0 let's see what happens
  ChokePointBonus		   50
  UnexploredBonus	         -50 //WW from -999999 
  ObsoleteArmyBonus		    10000 //MG from 100 hey we want get rid of obsolete armies
  TreaspassingArmyBonus	 1000 //WW from 0

  ThreatenType:DestroyCity
  ThreatenBonus 5000

  ForceMatch:Offensive

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_GO_TO_CITY {
  //RallyFirst

  SquadClass:CanAttack
 // SquadClass:CanDefend (WW out-commented)
  SquadClass:HasZoc
  SquadClass:CanCaptureCity

  TargetType:City
  TargetOwner:HotEnemy

  Execute	ORDER_GO_TO_CITY

  ThreatBonus		 1300 //WW from 500
  EnemyValueBonus		  -50 //WW from -250
  AlliedValueBonus		 1000
  PowerBonus			  500
  DistanceToHomeBonus	   1000 //MG from 0 let's see what happens
  DistanceToEnemyBonus	   0 //MG from 0 let's see what happens
  ChokePointBonus		  500
  UnexploredBonus	         -10 //WW from -999999
  ObsoleteArmyBonus		    10000 //MG from 100 hey we want get rid of obsolete armies
  TreaspassingArmyBonus	    0

  ThreatenType:DestroyCity
  ThreatenBonus 6000		//WW from 5000

  ForceMatch:Harass

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}
