cro_1 = {
	slot = 1
	generic = no
	ai = yes
	potential = {
		NOT = { map_setup = map_setup_random }
		OR = {
			tag = CRO
			tag = RAG
			tag = DAL
		}
	}
	has_country_shield = yes
	
	cro_reconquer_dalmatia = {
		icon = mission_invade_island
		required_missions = {  }
		position = 2
		provinces_to_highlight = {
			OR = {
				province_id = 4753
				province_id = 136
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			4753 = { owned_by = ROOT }
			136 = { owned_by = ROOT }
		}
		effect = {
			add_prestige = 20
			137 = {
				if = {
					limit = {
						NOT = {
							is_permanent_claim = ROOT
							is_core = ROOT
						}
					}
					add_permanent_claim = ROOT
				}
			}
		}
		ai_weight = {
			factor = 500	#Reconquest
		}
	}
	cro_dominate_dubrovnik = {
		icon = mission_dominate_home_trade_node
		required_missions = { cro_reconquer_dalmatia cro_croatian_fleet }
		position = 4
		provinces_to_highlight = {
			province_id = 137
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_strongest_trade_power = ROOT }
			}			
		}
		trigger = {
			137 = { owned_by = ROOT }
			137 = { is_strongest_trade_power = ROOT }
		}
		effect = {
			add_navy_tradition = 20
			if = {
				limit = {
					137 = {
						province_has_center_of_trade_of_level = 1
						NOT = { province_has_center_of_trade_of_level = 3 }
					}
				}
				137 = {
					add_center_of_trade_level = 1
				}
			}
			else = {
				add_treasury = 200
			}
		}
		ai_weight = {
			factor = 500	#More expansion at the coast line
		}
	}
	cro_expel_italians = {
		icon = mission_italian_condottiere
		required_missions = { cro_dominate_dubrovnik }
		provinces_to_highlight = {
			region = balkan_region
			owner = {
				NOT = { primary_culture = dalmatian }
				culture_group = latin
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				region = balkan_region
				value = 20
			}
			balkan_region = {
				type = all
				NOT = {
					owner = {
						NOT = { primary_culture = dalmatian }
						culture_group = latin
					}
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "balkan_liberator"
				duration = -1
			}
			balkan_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 500	#Seems pretty Balkan to me
		}
	}
	cro_withstand_ottomans = {
		icon = mission_non-western_soldiers
		required_missions = { cro_expel_italians }
		provinces_to_highlight = {
			region = balkan_region
			NOT = {
				owned_by = ROOT
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				region = balkan_region
				value = 30
			}
			if = {
				limit = {
					exists = TUR
				}
				custom_trigger_tooltip = {
					tooltip = cro_tur_army
					army_strength = {
						who = TUR
						value = 0.5
					}
				}
			}
			else = {
				army_size = 35 # modified
			}
		}
		effect = {
			add_mil_power = 200
		}
		ai_weight = {
			factor = 75	#Default
		}
	}
}

cro_2 = {
	slot = 2
	generic = no
	ai = yes
	potential = {
		NOT = { map_setup = map_setup_random }
		OR = {
			tag = CRO
			tag = RAG
			tag = DAL
		}
	}
	has_country_shield = yes
	
	cro_independence = {
		icon = mission_monarch_in_throne_room
		required_missions = {  }
		provinces_to_highlight = {
		}
		trigger = {
			is_subject = no
			tag = CRO
		}
		effect = {
			add_legitimacy = 20
			croatia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
			bosnia_area = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
		ai_weight = {
			factor = 75	#Default
		}
	}
	cro_reclaim_bosnia = {
		icon = mission_unite_home_region
		required_missions = {  }
		provinces_to_highlight = {
			OR = {
				area = croatia_area
				area = bosnia_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			is_subject = no
			croatia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
				religion = ROOT
			}
			bosnia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
				religion = ROOT
			}
		}
		effect = {
			if = {
				limit = { has_updated_culture = { culture = slavic } }
				add_accepted_culture_or_dip_power = { culture = bosnian_new dip_reward = yes }
			}
			else = {
				add_accepted_culture_or_dip_power = { culture = bosnian dip_reward = yes }
			}
		}
		ai_weight = {
			factor = 75	#Default
		}
	}
	cro_croatian_fleet = {
		icon = mission_galleys_in_port
		required_missions = {  }
		provinces_to_highlight = {
		}
		trigger = {
			num_of_light_ship = 5
			num_of_galley = 5
			num_of_transport = 5
		}
		effect = {
			add_navy_tradition = 20
			add_country_modifier = {
				name = "croatian_fleet"
				duration = 7300
			}	
		}
		ai_weight = {
			factor = 75	#Default
		}
	}
	cro_conquer_carniola = {
		icon = mission_landsknecht_soldier
		required_missions = { cro_dominate_dubrovnik }
		provinces_to_highlight = {
			area = carinthia_area
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		position = 5
		trigger = {
			carinthia_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
			}
		}
		effect = {
			add_army_tradition = 30
		}
		ai_weight = {
			factor = 75	#Default
		}
	}
}

cro_5 = {
	slot = 5
	generic = no
	ai = yes
	potential = {
		NOT = { map_setup = map_setup_random }
		OR = {
			tag = CRO
			tag = RAG
			tag = DAL
		}
	}
	has_country_shield = yes
	
	cro_gosti = {
		icon = mission_noble_council
		required_missions = {  }
		position = 3
		provinces_to_highlight = {
		}
		trigger = {
			num_of_owned_provinces_with = {
				area = slavonia_area
				development = 10
				value = 3
			}
		}
		effect = {
			add_country_modifier = {
				name = "gosti_guests"
				duration = -1
			}
		}
		ai_weight = {
			factor = 75	#Default
		}
	}
	cro_zagreb = {
		icon = mission_eastern_european_city
		required_missions = { cro_gosti }
		provinces_to_highlight = {
		}
		trigger = {
			131 = {
				owned_by = ROOT
				NOT = { num_free_building_slots = 1 }
			}
		}
		effect = {
			131 = {
				add_base_tax = 2
				add_base_production = 2
				add_base_manpower = 2
				center_of_trade = 2
			}
		}
		ai_weight = {
			factor = 75	#Default
		}
	}
}