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


ZRI_template_design_1 = {
	enable = {	
		original_tag = ZRI
		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 = 40
	}
	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
	}
}


ZRI_template_design_2 = {
	enable = {	
		original_tag = ZRI
		date > 1990.1.1				
	}
	abort_when_not_enabled = yes
	ai_strategy = {
		type = template_prio
		id = motorized
		value = 30
	}
	ai_strategy = {
		type = template_prio
		id = cavalry
		value = -100
	}	
	ai_strategy = {
		type = template_prio
		id = light_armor
		value = -20
	}
	ai_strategy = {
		type = template_prio
		id = medium_armor
		value = 40
	}
	ai_strategy = {
		type = template_prio
		id = heavy_armor
		value = 10
	}
	ai_strategy = {
		type = template_prio
		id = paratroopers
		value = -50
	}	
	ai_strategy = {
		type = template_prio
		id = mechanized
		value = -20
	}
}

opora_mira_v_evropke_1 = {
	enable = {
		tag = ZRI
		has_government = democratic
		has_completed_focus = zri_democr_declarat_vnesh_politiki
		country_exists = ZBO
		ZBO = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
	}
	abort = {
		NOT = { country_exists = ZBO }
	}	
	ai_strategy = {
		type = protect
		id = ZBO
		value = 70
	}
	ai_strategy = {
		type = befriend
		id = ZBO
		value = 50
	}
}
opora_mira_v_evropke_2 = {
	enable = {
		tag = ZRI
		has_government = democratic
		has_completed_focus = zri_democr_declarat_vnesh_politiki
		country_exists = ZBA
		ZBA = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
	}
	abort = {
		NOT = { country_exists = ZBA }
	}	
	ai_strategy = {
		type = protect
		id = ZBA
		value = 70
	}
	ai_strategy = {
		type = befriend
		id = ZBA
		value = 50
	}
}
opora_mira_v_evropke_3 = {
	enable = {
		tag = ZRI
		has_government = democratic
		has_completed_focus = zri_democr_declarat_vnesh_politiki
		country_exists = ZBR
		ZBR = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
	}
	abort = {
		NOT = { country_exists = ZBR }
	}	
	ai_strategy = {
		type = protect
		id = ZBR
		value = 70
	}
	ai_strategy = {
		type = befriend
		id = ZBR
		value = 50
	}
}
opora_mira_v_evropke_4 = {
	enable = {
		tag = ZRI
		has_government = democratic
		has_completed_focus = zri_democr_declarat_vnesh_politiki
		country_exists = TRA
		TRA = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
	}
	abort = {
		NOT = { country_exists = TRA }
	}	
	ai_strategy = {
		type = protect
		id = TRA
		value = 70
	}
	ai_strategy = {
		type = befriend
		id = TRA
		value = 50
	}
}
opora_mira_v_evropke_5 = {
	enable = {
		tag = ZRI
		has_government = democratic
		has_completed_focus = zri_democr_declarat_vnesh_politiki
		country_exists = ZVA
		ZVA = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
	}
	abort = {
		NOT = { country_exists = ZVA }
	}	
	ai_strategy = {
		type = protect
		id = ZVA
		value = 70
	}
	ai_strategy = {
		type = befriend
		id = ZVA
		value = 50
	}
}
opora_mira_v_evropke_6 = {
	enable = {
		tag = ZRI
		has_government = democratic
		has_completed_focus = zri_democr_declarat_vnesh_politiki
		country_exists = ZPV
		ZPV = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
	}
	abort = {
		NOT = { country_exists = ZPV }
	}	
	ai_strategy = {
		type = protect
		id = ZPV
		value = 70
	}
	ai_strategy = {
		type = befriend
		id = ZPV
		value = 50
	}
}
opora_mira_v_evropke_7 = {
	enable = {
		tag = ZRI
		has_government = democratic
		has_completed_focus = zri_democr_declarat_vnesh_politiki
		country_exists = ZVZ
		ZVZ = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
	}
	abort = {
		NOT = { country_exists = ZVZ }
	}	
	ai_strategy = {
		type = protect
		id = ZVZ
		value = 70
	}
	ai_strategy = {
		type = befriend
		id = ZVZ
		value = 50
	}
}
opora_mira_v_evropke_8 = {
	enable = {
		tag = ZRI
		has_government = democratic
		has_completed_focus = zri_democr_declarat_vnesh_politiki
		country_exists = ZSL
		ZSL = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
	}
	abort = {
		NOT = { country_exists = ZSL }
	}	
	ai_strategy = {
		type = protect
		id = ZSL
		value = 70
	}
	ai_strategy = {
		type = befriend
		id = ZSL
		value = 50
	}
}

anti_socialist_rim_1 = {
	enable = {
		tag = ZRI
		OR = {
			has_completed_focus = rim_red_zakat
			ZIK = {				
				has_added_tension_amount > 30				
			}		
		}		
		country_exists = ZIK		
	}
	abort = {
		OR = {
			NOT = { country_exists = ZIK }
			ZIK = {
				NOT = { has_government = communism }
			}
		}		
	}	
	ai_strategy = {
		type = antagonize
		id = ZIK
		value = 200
	}	
}

anti_slavian_rim_1 = {
	enable = {
		tag = ZRI
		OR = {
			has_completed_focus = rim_anti_slaviane
			ZSL = {				
				has_added_tension_amount > 35				
			}		
		}		
		country_exists = ZSL		
	}
	abort = {
		OR = {
			NOT = { country_exists = ZSL }
			ZSL = {
				NOT = { has_government = fascism }
			}
		}		
	}	
	ai_strategy = {
		type = antagonize
		id = ZSL
		value = 200
	}	
}
net_volonteram_v_persia = {
	enable = {		
		tag = ZRI
		country_exists = ZPA
	}
	abort = {
		date > 1995.6.1
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = ZPA
		value = -500
	}
}
net_volonteram_v_slaviane = {
	enable = {		
		tag = ZRI
		country_exists = ZSL
	}
	abort = {
		date > 1995.6.1
	}
	ai_strategy = {
		type = send_volunteers_desire
		id = ZSL
		value = -500
	}
}

agressia_ilhanata_strat = {
	enable = {
		tag = ZRI
		has_government = fascism
		country_exists = ZPA
		ZPA = {
			has_added_tension_amount > 30
		}
	}
	abort = {
		NOT = { country_exists = ZPA }
	}	
	ai_strategy = {
		type = antagonize
		id = ZPA
		value = 200
	}
}

ZRI_naval_role_ratios = {
	enable = {
		has_dlc = "Man the Guns"
		original_tag = ZRI
	}
	abort_when_not_enabled = yes
	ai_strategy = {
		type = role_ratio
		id = naval_capital_bb
		value = 25
	}
	ai_strategy = {
		type = role_ratio
		id = naval_carrier
		value = 10
	}
	ai_strategy = {
		type = role_ratio
		id = naval_submarine
		value = 50
	}
	ai_strategy = {
		type = role_ratio
		id = naval_screen
		value = 120
	}
	ai_strategy = {
		type = role_ratio
		id = naval_cruiser_light
		value = 50
	}
	ai_strategy = {
		type = role_ratio
		id = naval_cruiser_heavy
		value = 50
	}
	ai_strategy = {
		type = role_ratio
		id = naval_mine_sweeper
		value = 50
	}
	ai_strategy = {
		type = role_ratio
		id = naval_mine_layer
		value = 70
	}
}

ZRI_folkungia_ne_nujna = {
	enable = {		 
		original_tag = ZRI		
	}
	abort = {
		OR = {
			date > 1944.1.1
			has_war_with = ZIK
			has_war_with = ZLS
			has_war_with = ZNR
			has_war_with = ZTL
			has_war_with = ZTH
			has_war_with = ZLB			
		}
	}
	ai_strategy = {
		type = area_priority
		id = north_america
		value = -75
	}	
}