# befriend
# conquer
# antagonize
# build_ship
# build_army
# unit_ratio
# build_building
# research_tech
# garrison
# protect
# influence

ZPA_unit_production = {
	enable = {
		original_tag = ZPA
	}
	abort = {
		always = no
	}	
	ai_strategy = {
		type = role_ratio
		id = garrison
		value = 3
	}
	ai_strategy = { 
		type = role_ratio
		id = suppression
		value = 2
	}
	ai_strategy = {
		type = role_ratio
		id = paratroopers
		value = 0
	}
	ai_strategy = {
		type = role_ratio
		id = mountaineers
		value = 2
	}
	ai_strategy = {
		type = role_ratio
		id = marines
		value = 0
	}
	ai_strategy = {
		type = role_ratio
		id = cavalry
		value = 3
	}
	ai_strategy = {
		type = role_ratio
		id = motorized
		value = 1
	}
	ai_strategy = {
		type = role_ratio
		id = mechanized
		value = 0
	}
	ai_strategy = {
		type = role_ratio
		id = armor
		value = 3
	}
	ai_strategy = {
		type = role_ratio
		id = infantry
		value = 25 
	}	
	#Air unit factors
	ai_strategy = {
		type = unit_ratio
		id = fighter
		value = 70
	}	
	ai_strategy = {
		type = unit_ratio
		id = cas
		value = -35 #because doctrine this = 15
	}	
	ai_strategy = {
		type = unit_ratio
		id = tactical_bomber
		value = 5
	}	
	ai_strategy = {
		type = unit_ratio
		id = strategic_bomber
		value = 5
	}	
	ai_strategy = {
		type = unit_ratio
		id = naval_bomber
		value = 5
	}
	
	# Naval unit factors
	ai_strategy = {
		type = unit_ratio
		id = capital_ship
		value = 20
	}
	ai_strategy = {
		type = unit_ratio
		id = submarine
		value = 10
	}
	ai_strategy = {
		type = unit_ratio
		id = screen_ship
		value = 20
	}
	ai_strategy = {
		type = unit_ratio
		id = convoy
		value = 20
	}	
	ai_strategy = {
		type = equipment_production_factor
		id = fighter
		value = 20
	}	
	ai_strategy = {
		type = equipment_production_factor
		id = infantry
		value = 30
	}	
	ai_strategy = {
		type = equipment_production_factor
		id = artillery
		value = 30
	}	
	ai_strategy = {
		type = equipment_production_factor
		id = armor
		value = 5
	}
}


ZPA_template_design_1 = {
	enable = {
		original_tag = ZPA
		date < 1990.1.1				
	}
	abort = { 
		date > 1990.1.1
	}

	ai_strategy = {
		type = template_prio
		id = motorized
		value = 10
	}

	ai_strategy = {
		type = template_prio
		id = cavalry
		value = -100
	}
	
	ai_strategy = {
		type = template_prio
		id = light_armor
		value = 50
	}

	ai_strategy = {
		type = template_prio
		id = medium_armor
		value = -10
	}

	ai_strategy = {
		type = template_prio
		id = heavy_armor
		value = -50
	}

	ai_strategy = {
		type = template_prio
		id = paratroopers
		value = -50
	}
	
	ai_strategy = {
		type = template_prio
		id = infantry
		value = 50
	}
}

ZPA_template_design_2 = {
	enable = {
		original_tag = ZPA
		date > 1990.1.1				
	}
	abort_when_not_enabled = yes
	ai_strategy = {
		type = template_prio
		id = mechanized
		value = 12
	}

	ai_strategy = {
		type = template_prio
		id = cavalry
		value = -100
	}
	
	ai_strategy = {
		type = template_prio
		id = light_armor
		value = 15
	}

	ai_strategy = {
		type = template_prio
		id = medium_armor
		value = 20
	}
	
	ai_strategy = {
		type = template_prio
		id = modern_armor
		value = 40
	}

	ai_strategy = {
		type = template_prio
		id = heavy_armor
		value = 5
	}

	ai_strategy = {
		type = template_prio
		id = paratroopers
		value = -50
	}
	
	ai_strategy = {
		type = template_prio
		id = infantry
		value = 30
	}
}

afgan_war_preparation = {
	enable = {
		tag = ZPA
		focus_progress = {
			focus = per_annex_afg
			progress > 0.01
		}
		NOT = {
			has_completed_focus = per_annex_afg			
		}
		country_exists = ZAF
	}	
	abort = {
		OR = {
			NOT = { country_exists = ZAF }			
			AND = {
				has_completed_focus = per_annex_afg
				ZPA = { has_war_with = ZAF }
			}			
		}
	}	
	ai_strategy = {
		type = conquer
		id = ZAF
		value = 100
	}
}

war_with_afgan = {
	enable = {
		tag = ZPA
		has_government = fascism
		country_exists = ZAF
	}
	abort = {
		NOT = { country_exists = ZAF }
	}	
	ai_strategy = {
		type = antagonize
		id = ZAF
		value = 200
	}
}

zpa_anti_zhu_strategy = {
	enable = {
		tag = ZPA
		has_government = fascism
		country_exists = ZHU
	}
	abort = {
		NOT = { country_exists = ZAF }
	}	
	ai_strategy = {
		type = antagonize
		id = ZHU
		value = 200
	}
	ai_strategy = {
		type = conquer
		id = ZHU
		value = 100
	}
}
zpa_anti_zks_strategy = {
	enable = {
		tag = ZPA
		has_government = fascism
		country_exists = ZKS
	}
	abort = {
		NOT = { country_exists = ZKS }
	}	
	ai_strategy = {
		type = antagonize
		id = ZKS
		value = 200
	}
	ai_strategy = {
		type = conquer
		id = ZKS
		value = 100
	}
}

ignore_kazah = {
	enable = {
		tag = ZPA
		date < 1992.3.3
		country_exists = ZKZ
		country_exists = ZAF
	}
	abort = {		
		OR = {
			date > 1992.3.3
			has_war_with = ZKZ
			has_war_with = ZSL
			has_war_with = ZUF
			has_war_with = ZOR
		}
	}	
	ai_strategy = {
		type = ignore
		id = ZKZ
		value = 100
	}
	ai_strategy = {
		type = declare_war
		id = ZKZ		
		value = -500 
	}
}

war_with_arabskaya_liga = {
	enable = {
		tag = ZPA
		has_completed_focus = per_velity_pohod
		country_exists = ZMS
	}
	abort = {
		NOT = { country_exists = ZMS }
	}	
	ai_strategy = {
		type = antagonize
		id = ZMS			
		value = 300
	}
	ai_strategy = {
		type = conquer
		id = ZMS			
		value = 300
	}
}
war_with_arabskaya_liga_2 = {
	enable = {
		tag = ZPA
		has_completed_focus = per_velity_pohod
		country_exists = ZGS
	}
	abort = {
		NOT = { country_exists = ZGS }
	}	
	ai_strategy = {
		type = antagonize
		id = ZGS			
		value = 300
	}
	ai_strategy = {
		type = conquer
		id = ZGS			
		value = 300
	}
}
war_with_arabskaya_liga_3 = {
	enable = {
		tag = ZPA
		has_completed_focus = per_velity_pohod
		country_exists = ZAR
	}
	abort = {
		NOT = { country_exists = ZAR }
	}	
	ai_strategy = {
		type = antagonize
		id = ZAR			
		value = 300
	}
	ai_strategy = {
		type = conquer
		id = ZAR			
		value = 300
	}
}
war_with_arabskaya_liga_4 = {
	enable = {
		tag = ZPA
		has_completed_focus = per_velity_pohod
		country_exists = ZMM
	}
	abort = {
		NOT = { country_exists = ZMM }
	}	
	ai_strategy = {
		type = antagonize
		id = ZMM			
		value = 300
	}
	ai_strategy = {
		type = conquer
		id = ZMM			
		value = 300
	}
}

net_volonteram_v_rim = {
	enable = {		
		tag = ZPA
		country_exists = ZRI
	}
	abort = {
		date > 1995.6.1
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = ZRI
		value = -500
	}
}
net_volonteram_v_slavian = {
	enable = {		
		tag = ZPA
		country_exists = ZSL
	}
	abort = {
		date > 1995.6.1
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = ZSL
		value = -500
	}
}

zpa_industry_we_are_the_baddies = {
	enable = {
		tag = ZPA
		date < 1990.1.1
		date > 1987.1.1
	}
	abort={
		date > 1990.1.1
	}
	ai_strategy = {
		type = added_military_to_civilian_factory_ratio
		value = 33
	}
}

ZPA_pp_spending = {
	enable = {
		original_tag = ZPA
		has_manpower < 100000
		has_political_power < 200
	}
	abort = {
		OR = {
			has_manpower > 100000
			has_political_power > 200
			date > 1994.1.1
		}
	}
	ai_strategy = { # dont burn PP on admirals if you need manpower laws
		type = pp_spend_priority
		id = admiral
		value = -100
	}
}

