﻿#	Example:
# 
#	example_trigger = {
#		x = 100
#		y = 50
#	}
#
#
#	In a script file:
#
#	effect = {
#		example_trigger = yes
#	}
#

conquer_unrecognized_permited = {
	trigger_if = {
		limit = {
			scope:target_country = {
				is_country_type = unrecognized
				NOR = {
					country_has_primary_culture = cu:han
					country_has_primary_culture = cu:manchu
					country_has_primary_culture = cu:turkish
					country_has_primary_culture = cu:misri
				}
			}
		}
		OR = {
			is_country_type = unrecognized
			has_law = law_type:law_colonial_exploitation
			AND = {
				is_player = no
				has_technology_researched = civilizing_mission
			}
			custom_tooltip = {
				text = DIPLO_ACTION_SAME_CONTINENT_REQUIRED
				is_on_same_continent = yes
			}
			any_country = {
				is_direct_subject_of = ROOT
				has_strategic_adjacency = scope:target_country
				NOT = { is_country_type = unrecognized }
				custom_tooltip = {
					text = DIPLO_ACTION_SAME_CONTINENT_REQUIRED
					is_on_same_continent = yes
				}
			}
		}
	}
}

conquer_china_permited = {
	trigger_if = {
		limit = {
			scope:target_country = {
				OR = {
					country_has_primary_culture = cu:han
					country_has_primary_culture = cu:manchu
				}
			}
		}
		custom_tooltip = {
			text = DIPLO_ACTION_SAME_CONTINENT_REQUIRED
			is_on_same_continent = yes
		}
	}
}