dp_rebellion_annex = {
	requires_interest_marker = no
	initiator_can_add_war_goals = no
	target_can_add_war_goals = yes
	backing_down_always_ends_play = no
	allow_negotiated_peace = no
	add_infamy_for_starting_initiator_wargoals = no

	war_goal = annex_country
	
	texture = "gfx/interface/icons/war_goals/secession.dds"
	
	selectable_in_lens = {
		always = no
	}		
	
	possible = {
		
	}

	additional_involvement_trigger = {
		NOT = { is_country_type = decentralized }
		aggressive_diplomatic_plays_permitted = yes
	
		scope:target_country = {
			capital = {
				region = {
					save_temporary_scope_as = target_capital_region
				}
			}
		}
		
		OR = {
			has_interest_marker_in_region = scope:target_capital_region
			is_home_country_for = scope:target_country
		}
	}
	
	on_weekly_pulse = {}

	on_war_begins = {}

	on_war_end = {}
}

dp_rebellion = {
	requires_interest_marker = no
	initiator_can_add_war_goals = no
	target_can_add_war_goals = yes
	backing_down_always_ends_play = no
	allow_negotiated_peace = no
	add_infamy_for_starting_initiator_wargoals = no

	war_goal = annex_country
	
	texture = "gfx/interface/icons/war_goals/secession.dds"
	
	selectable_in_lens = {
		always = no
	}		
	
	possible = {
		scope:target_country = {
			is_secessionist = yes
		}
	}

	additional_involvement_trigger = {
		NOT = { is_country_type = decentralized }
		aggressive_diplomatic_plays_permitted = yes
	
		scope:target_country = {
			capital = {
				region = {
					save_temporary_scope_as = target_capital_region
				}
			}
		}
		
		OR = {
			has_interest_marker_in_region = scope:target_capital_region
			is_home_country_for = scope:target_country
		}
	}
	
	on_weekly_pulse = {}

	on_war_begins = {}

	on_war_end = {}
}

dp_unify_the_empire = {
	war_goal = unification
	
	requires_interest_marker = no
	blocked_by_diplomatic_status = no
	
	texture = "gfx/interface/icons/war_goals/unify_germany.dds"
	
	selectable_in_lens = {
		always = no
	}
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { 
			is_country_type = decentralized
			OR = {
				year >= 1848
				has_global_variable = hre_fail
			}
		}
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_leadership_the_empire = {
	war_goal = unification_leadership
	
	requires_interest_marker = no
	mirror_war_goal = yes
	
	texture = "gfx/interface/icons/war_goals/unify_germany.dds"
	
	selectable_in_lens = {
		always = no
	}	
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { is_country_type = decentralized }
		NOT = { has_technology_researched = nationalism }	
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_aryanam = {
	war_goal = unification
	
	requires_interest_marker = no
	blocked_by_diplomatic_status = no
	
	texture = "gfx/interface/icons/war_goals/conquer_state.dds"
	
	selectable_in_lens = {
		always = no
	}
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { is_country_type = decentralized }
		has_technology_researched = pan-nationalism
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_leadership_aryanam = {
	war_goal = unification_leadership
	
	requires_interest_marker = no
	mirror_war_goal = yes
	
	texture = "gfx/interface/icons/war_goals/contain_threat.dds"
	
	selectable_in_lens = {
		always = no
	}	
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { is_country_type = decentralized }
		has_technology_researched = pan-nationalism
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_dutch = {
	war_goal = unification
	
	requires_interest_marker = no
	blocked_by_diplomatic_status = no
	
	texture = "gfx/interface/icons/war_goals/conquer_state.dds"
	
	selectable_in_lens = {
		always = no
	}
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { is_country_type = decentralized }
		country_has_primary_culture = cu:boer
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_leadership_dutch = {
	war_goal = unification_leadership
	
	requires_interest_marker = no
	mirror_war_goal = yes
	
	texture = "gfx/interface/icons/war_goals/contain_threat.dds"
	
	selectable_in_lens = {
		always = no
	}	
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { is_country_type = decentralized }
		country_has_primary_culture = cu:boer
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_gran_colombia = {
	war_goal = unification
	
	requires_interest_marker = no
	blocked_by_diplomatic_status = no
	
	texture = "gfx/interface/icons/war_goals/conquer_state.dds"
	
	selectable_in_lens = {
		always = no
	}
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { is_country_type = decentralized }
		country_has_primary_culture = cu:boer
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_leadership_gran_colombia = {
	war_goal = unification_leadership
	
	requires_interest_marker = no
	mirror_war_goal = yes
	
	texture = "gfx/interface/icons/war_goals/contain_threat.dds"
	
	selectable_in_lens = {
		always = no
	}	
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { is_country_type = decentralized }
		country_has_primary_culture = cu:boer
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_annex_russia = {
	war_goal = annex_country
	
	texture = "gfx/interface/icons/war_goals/annex_country.dds"
	
	selectable_in_lens = {
		can_form_nation = RUS
	}

	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
        OR = { 
            AND = {
                has_technology_researched = nationalism
                country_rank >= rank_value:major_power
				scope:target_country = {
                    aggressive_diplomatic_plays_permitted = yes
                    can_form_nation = RUS
                }
            }
            AND = {
                has_variable = mus_northern_expansion
                is_subject = no
                can_form_nation = RUS
                scope:target_country = {
                    aggressive_diplomatic_plays_permitted = yes
                    this = c:NOV
                }
            }
			AND = {
                has_global_variable = rus_anarchy
                is_subject = no
                can_form_nation = RUS
                scope:target_country = {
                    aggressive_diplomatic_plays_permitted = yes
					can_form_nation = RUS
                }
            }
		}
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_russia = {
	war_goal = unification
	
	requires_interest_marker = no
	blocked_by_diplomatic_status = no

	texture = "gfx/interface/icons/war_goals/annex_country.dds"
	
	selectable_in_lens = {
		always = no
	}

	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		has_technology_researched = nationalism
		country_rank >= rank_value:major_power
		NOT = { exists = c:RUS }
		NOT = { is_country_type = decentralized }
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_leadership_russia = {
	war_goal = unification_leadership
	
	requires_interest_marker = no
	mirror_war_goal = yes
	
	texture = "gfx/interface/icons/war_goals/contain_threat.dds"
	
	selectable_in_lens = {
		always = no
	}	
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		has_technology_researched = nationalism
		country_rank >= rank_value:major_power		
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_panarab = {
	war_goal = unification
	
	texture = "gfx/interface/icons/war_goals/annex_country.dds"
	
	selectable_in_lens = {
		always = no
	}

	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		has_technology_researched = pan-nationalism
		country_rank >= rank_value:major_power
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_leadership_panarab = {
	war_goal = unification_leadership
	
	requires_interest_marker = no
	mirror_war_goal = yes
	
	texture = "gfx/interface/icons/war_goals/contain_threat.dds"
	
	selectable_in_lens = {
		always = no
	}	
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		has_technology_researched = pan-nationalism
		country_rank >= rank_value:major_power		
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_britain = {
	war_goal = unification
	
	requires_interest_marker = no
	blocked_by_diplomatic_status = no

	texture = "gfx/interface/icons/war_goals/annex_country.dds"
	
	selectable_in_lens = {
		always = no
	}

	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { is_country_type = decentralized }
		has_technology_researched = pan-nationalism
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_leadership_britain = {
	war_goal = unification_leadership
	
	requires_interest_marker = no
	mirror_war_goal = yes
	
	texture = "gfx/interface/icons/war_goals/contain_threat.dds"
	
	selectable_in_lens = {
		always = no
	}	
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		has_technology_researched = pan-nationalism
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_persia = {
	war_goal = annex_country
	mirror_war_goal = yes

	texture = "gfx/interface/icons/war_goals/annex_country.dds"
	
	selectable_in_lens = {
		OR = {
			country_has_primary_culture = cu:persian
			country_has_primary_culture = cu:turkmen
		}
	}
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { is_country_type = decentralized }
		is_subject = no
		custom_tooltip = {
			text = PER_tt
			OR = {
				country_has_primary_culture = cu:persian
				country_has_primary_culture = cu:turkmen
			}
		}
		scope:target_country = {
			NOT = { is_country_type = decentralized }
			aggressive_diplomatic_plays_permitted = yes
			custom_tooltip = {
				text = PER_tt
				OR = {
					country_has_primary_culture = cu:persian
					country_has_primary_culture = cu:turkmen
				}
			}
		}
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_cossacks = {
	war_goal = annex_country
	mirror_war_goal = yes

	texture = "gfx/interface/icons/war_goals/annex_country.dds"
	
	selectable_in_lens = {
		country_has_primary_culture = cu:cossack
	}
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { has_modifier = neutrality }
		NOT = { is_country_type = decentralized }
		country_has_primary_culture = cu:cossack
		scope:target_country = {
			NOT = { has_modifier = neutrality }
			NOT = { is_country_type = decentralized }
			aggressive_diplomatic_plays_permitted = yes
			country_has_primary_culture = cu:cossack
		}
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_unify_tatars = {
	war_goal = annex_country
	mirror_war_goal = yes

	texture = "gfx/interface/icons/war_goals/annex_country.dds"
	
	selectable_in_lens = {
		country_has_primary_culture = cu:tatar
	}
	
	possible = {
		NOT = { has_modifier = diplomatic_plays_blocked }
		NOT = { has_modifier = neutrality }
		NOT = { is_country_type = decentralized }
		country_has_primary_culture = cu:tatar
		scope:target_country = {
			NOT = { has_modifier = neutrality }
			NOT = { is_country_type = decentralized }
			aggressive_diplomatic_plays_permitted = yes
			country_has_primary_culture = cu:tatar
		}
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {}
}

dp_imperial_authority = {
	war_goal = humiliation
	
	texture = "gfx/interface/icons/war_goals/annex_country.dds"
	
	possible = {
		exists = c:BOH
		ROOT = c:BOH
		has_journal_entry = je_hre_external
		country_rank = rank_value:great_power
		NOT = { has_modifier = diplomatic_plays_blocked }
		aggressive_diplomatic_plays_permitted = yes
		scope:target_country = {
			aggressive_diplomatic_plays_permitted = yes
			NOT = {
                country_has_primary_culture = cu:north_german
				country_has_primary_culture = cu:south_german
				country_has_primary_culture = cu:rheinish
			}
			any_subject_or_below = {
				OR = {
                	country_has_primary_culture = cu:north_german
					country_has_primary_culture = cu:south_german
					country_has_primary_culture = cu:rheinish
				}
			}
		}
	}
	
	on_weekly_pulse = {}
	
	on_war_begins = {}

	on_war_end = {
		save_scope_as = diplomatic_play_scope

		if = {
			limit = {
				scope:initiator = {
					has_diplomatic_pact = {
						who = scope:target_country
						type = humiliation
					}
				}
			}
	
			scope:initiator = {
				trigger_event = { id = dvg_imperial_authority.1 popup = yes }
			}
		}
	}
}
