﻿je_colonization_laws = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		NOT = { has_law = law_type:law_no_colonial_affairs }
	}
	
	on_complete = {
		hidden_effect = {
			owner = {
				start_tutorial_lesson = { 
					tutorial_lesson = colonization_law_passed_complete
					journal_entry = je:je_colonization_laws
				}
			}
		}
	}

	weight = 1000
	transferable = yes
}

je_african_colonies = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		any_scope_state = {
			custom_tooltip = {
				text = "je_african_colonies_own_a_colony"
				state_in_africa = yes
				is_incorporated = no
			}
			custom_tooltip = {
				text = "je_african_colonies_own_whole_state_region"
				is_split_state = no
			}
		}
	}

	on_complete = {
	}

	weight = 1001
	transferable = yes
}

je_expand_navy_and_army = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		ROOT = {
			army_size >= 150
			navy_size >= 75
		}
	}
	
	on_complete = {
	}
		
	weight = 1002
	transferable = yes
}

je_form_alliance = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		any_country = {
			hidden_trigger = { NOT = { THIS = ROOT } }
			country_rank >= rank_value:major_power
			has_diplomatic_pact = {
				who = root
				type = alliance
			}
			count >= 2
		}
	}
	
	on_complete = {
	}
		
	weight = 1003
	transferable = yes
}

je_take_subject = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		any_country = {
			hidden_trigger = { NOT = { THIS = ROOT } }
			or = {
				has_diplomatic_pact = {
					who = root
					type = colony
				}
				has_diplomatic_pact = {
					who = root
					type = puppet
				}
				has_diplomatic_pact = {
					who = root
					type = dominion
				}
				has_diplomatic_pact = {
					who = root
					type = protectorate
				}
				has_diplomatic_pact = {
					who = root
					type = personal_union
				}
				has_diplomatic_pact = {
					who = root
					type = vassal
				}
				has_diplomatic_pact = {
					who = root
					type = tributary
				}
			}
			count >= 5
		}
	}
	
	on_complete = {
	}

	weight = 1004
	transferable = yes
}

je_increase_technology = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		has_technology_researched = bolt_action_rifles
		has_technology_researched = dreadnought
		has_technology_researched = malaria_prevention
	}
	
	on_complete = {
	}
		
	weight = 1005
	transferable = yes
}

je_greatest_power = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		global_country_ranking = 1
	}
	
	on_complete = {
	}
		
	weight = 1006
	transferable = yes
}

je_greater_power = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		country_rank = rank_value:great_power
	}
	
	on_complete = {
	}
		
	weight = 1007
	transferable = yes
}

je_great_power = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		country_rank >= rank_value:major_power
	}
	
	on_complete = {
	}
		
	weight = 1008
	transferable = yes
}

je_unrecognized_power = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives

	complete = {
		NOT = { is_country_type = unrecognized }
	}
	
	on_complete = {
		hidden_effect = {
			add_journal_entry = {
				type = je_the_hegemon
				objective_subgoal = sg_the_hegemon
			}
		}
	}
		
	weight = 1009
	transferable = yes
}

je_the_hegemon = {
	should_be_pinned_by_default = yes
	icon = "gfx/interface/icons/objectives/hegemon.dds"

	group = je_group_objectives
	active_update_frequency = 1

	complete = {
		total_population_including_subjects_share >= 0.4
	}

	on_complete = {
		hidden_effect = {
			owner = {
				start_tutorial_lesson = { 
					tutorial_lesson = hegemon_complete
					journal_entry = je:je_the_hegemon
				}
			}
		}
	}

	weight = 1009
	transferable = yes
}