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

ZMN_unit_production = {
	enable = {
		original_tag = ZMN
	}
	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 = 2
	}
	ai_strategy = {
		type = role_ratio
		id = mechanized
		value = 0
	}
	ai_strategy = {
		type = role_ratio
		id = armor
		value = 5
	}
	ai_strategy = {
		type = role_ratio
		id = infantry
		value = 20 #because doctrine 70
	}	
	#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 = 35
	}
	ai_strategy = {
		type = unit_ratio
		id = submarine
		value = -150 #because doctrine this = 50
	}
	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
	}
}

ZMN_template_design_1 = {
	enable = {
		original_tag = ZMN
		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
	}
}

ZMN_template_design_2 = {
	enable = {
		original_tag = ZMN
		date > 1990.1.1				
	}
	abort_when_not_enabled = yes
	ai_strategy = {
		type = template_prio
		id = mechanized
		value = 20
	}
	ai_strategy = {
		type = template_prio
		id = cavalry
		value = -100
	}	
	ai_strategy = {
		type = template_prio
		id = light_armor
		value = 10
	}
	ai_strategy = {
		type = template_prio
		id = medium_armor
		value = 50
	}	
	ai_strategy = {
		type = template_prio
		id = modern_armor
		value = 60
	}
	ai_strategy = {
		type = template_prio
		id = heavy_armor
		value = 20
	}
	ai_strategy = {
		type = template_prio
		id = paratroopers
		value = -50
	}	
	ai_strategy = {
		type = template_prio
		id = infantry
		value = 10
	}
}

ZMN_pp_spending = {
	enable = {
		original_tag = ZMN
		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
	}
}

ZMN_net_volonteram_v_ZJA = {
	enable = {		
		tag = ZMN
		country_exists = ZJA		
	}
	abort = {
		date > 1995.6.1
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = ZJA
		value = -500
	}
}
ZMN_net_volonteram_v_ZNP = {
	enable = {		
		tag = ZMN
		country_exists = ZNP		
	}
	abort = {
		date > 1995.6.1
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = ZNP
		value = -500
	}
}
ZMN_net_volonteram_v_ZCS = {
	enable = {		
		tag = ZMN
		country_exists = ZCS		
	}
	abort = {
		date > 1995.6.1
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = ZCS
		value = -500
	}
}

ZMN_jungo_dolkna_byt_odna = {
	enable = {
		tag = ZMN		
		country_exists = ZRE
	}
	abort = {
		NOT = { country_exists = ZRE }
	}	
	ai_strategy = {
		type = antagonize
		id = ZRE
		value = 200
	}
}
