political_actions = {
	
	GER_reintegrate_luxemburg = {

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 8 # Luxembourg
		}

		highlight_states = {
			highlight_state_targets = {
				state = 8 # Luxembourg
			}
		}

		visible = {
			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			NOT = { 8 = { is_core_of = GER } } # Luxembourg
		}
		
		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 8 # Luxembourg
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		ai_will_do = {
			factor = 20
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_luxemburg
			
				remove_state_claim = 8 # Luxembourg

				set_province_name = { id = 6583 name = "Luxemburg" }
			}

			add_state_core = 8 # Luxembourg

			8 = { set_state_name = "Luxemburg" }
		}
		
	}

	GER_reintegrate_alsace_lorraine = {

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 28 # Alsace-Lorraine
		}

		highlight_states = {
			highlight_state_targets = {
				state = 28 # Alsace-Lorraine
			}
		}

		visible = {
			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			OR = {
				NOT = { 28 = { is_core_of = GER } } # Alsace-Lorraine
			}
		}
		
		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 28 # Alsace-Lorraine
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		ai_will_do = {
			factor = 20
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_alsace
			
				remove_state_claim = 28 # Alsace-Lorraine
				
				set_province_name = { id = 9503 name = "Straßburg" }
				set_province_name = { id = 678 name = "Mülhausen" }
				set_province_name = { id = 549 name = "Hagenau" }
			}

			add_state_core = 28 # Alsace-Lorraine

			28 = { set_state_name = "Elsaß-Lothringen" }
		}
		
	}

	GER_reintegrate_danzig = {

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 807 # Gdynia
			has_full_control_of_state = 85 # Danzig
		}

		highlight_states = {
			highlight_state_targets = {
				state = 807 # Gdynia
				state = 85 # Danzig
			}
		}
		
		visible = {
			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			OR = {
				NOT = { 807 = { is_core_of = GER } } # Gdynia
				NOT = { 85 = { is_core_of = GER } } # Danzig
			}
		}
		
		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 807 # Gdynia
				has_full_control_of_state = 85 # Danzig
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		ai_will_do = {
			factor = 20
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_danzig
			
				remove_state_claim = 807 # Gdynia
				remove_state_claim = 85 # Danzig

				set_province_name = { id = 9263 name = "Gotenhafen" }
				set_province_name = { id = 3295 name = "Thorn" }
				set_province_name = { id = 279 name = "Bromberg" }
			}

			add_state_core = 807 # Gdynia
			add_state_core = 85 # Danzig

			807 = { set_state_name = "Gotenhafen" }
		}
		
	}

	GER_reintegrate_poznan = {

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 86 # Poznan
		}

		highlight_states = {
			highlight_state_targets = {
				state = 86 # Poznan
			}
		}
		
		visible = {
			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			NOT = { 86 = { is_core_of = GER } } # Poznan
		}
		
		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 86 # Poznan
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		ai_will_do = {
			factor = 20
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_poznan
			
				remove_state_claim = 86 # Poznan

				set_province_name = { id = 6558 name = "Posen" }
			}

			add_state_core = 86 # Poznan

			86 = { set_state_name = "Posen" }
		}
		
	}

	GER_reintegrate_katowice = {

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 762 # Katowice
		}

		highlight_states = {
			highlight_state_targets = {
				state = 762 # Katowice
			}
		}
		
		visible = {
			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			OR = {
				NOT = { 762 = { is_core_of = GER } } # Katowice
			}
		}
		
		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 762 # Katowice
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		ai_will_do = {
			factor = 20
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_katowice
			
				remove_state_claim = 762 # Katowice

				set_province_name = { id = 6464 name = "Kattowitz" }
			}

			add_state_core = 762 # Katowice

			762 = { set_state_name = "Kattowitz" }
		}
		
	}

	GER_reintegrate_memel = {

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 188 # Memel
		}

		highlight_states = {
			highlight_state_targets = {
				state = 188 # Memel
			}
		}
		
		visible = {
			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			NOT = { 188 = { is_core_of = GER } } # Memel
		}
		
		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 188 # Memel
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		ai_will_do = {
			factor = 20
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_memel
			
				remove_state_claim = 188 # Memel

				set_province_name = { id = 3288 name = "Memel" }
			}

			add_state_core = 188 # Memel

			188 = { set_state_name = "Memelland" }
		}
		
	}

	GER_reintegrate_austria = {

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 152 # Upper Austria
			has_full_control_of_state = 4 # Lower Austria
			has_full_control_of_state = 153 # Tyrol
			has_full_control_of_state = 39 # South Tyrol
			has_full_control_of_state = 850 # Trentino
			has_full_control_of_state = 848 # Vorarlberg
			has_full_control_of_state = 976 # Steiermark-Kärnten
			has_full_control_of_state = 975 # Burgenland
		}

		highlight_states = {
			highlight_state_targets = {
				state = 152 # Upper Austria
				state = 4 # Lower Austria
				state = 153 # Tyrol
				state = 39 # South Tyrol
				state = 850 # Trentino
				state = 848 # Vorarlberg
				state = 976 # Steiermark-Kärnten
				state = 975 # Burgenland
			}
		}
		
		visible = {
			NOT = { has_country_flag = AUS_annexed } # Germany never completed Anschluss or was unsuccessful

			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			OR = {
				NOT = { 152 = { is_core_of = GER } } # Upper Austria
				NOT = { 4 = { is_core_of = GER } } # Lower Austria
				NOT = { 153 = { is_core_of = GER } } # Tyrol
				NOT = { 39 = { is_core_of = GER } } # South Tyrol
				NOT = { 850 = { is_core_of = GER } } # Trentino
				NOT = { 848 = { is_core_of = GER } } # Vorarlberg
				NOT = { 976 = { is_core_of = GER } } # Steiermark-Kärnten
				NOT = { 975 = { is_core_of = GER } } # Burgenland
			}
		}
		
		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 152 # Upper Austria
				has_full_control_of_state = 4 # Lower Austria
				has_full_control_of_state = 153 # Tyrol
				has_full_control_of_state = 39 # South Tyrol
				has_full_control_of_state = 850 # Trentino
				has_full_control_of_state = 848 # Vorarlberg
				has_full_control_of_state = 976 # Steiermark-Kärnten
				has_full_control_of_state = 975 # Burgenland
			}
		}

		fire_only_once = yes

		cost = 100
		days_remove = 90

		ai_will_do = {
			factor = 30
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_austria
			
				remove_state_claim = 152 # Upper Austria
				remove_state_claim = 4 # Lower Austria
				remove_state_claim = 153 # Tyrol
				remove_state_claim = 39 # South Tyrol
				remove_state_claim = 850 # Trentino
				remove_state_claim = 848 # Vorarlberg
				remove_state_claim = 976 # Steiermark-Kärnten
				remove_state_claim = 975 # Burgenland

				set_province_name = { id = 11666 name = "Wien" }
				set_province_name = { id = 11598 name = "Bozen" }
				set_province_name = { id = 9598 name = "Trient" }
			}

			add_state_core = 152 # Upper Austria
			add_state_core = 4 # Lower Austria
			add_state_core = 153 # Tyrol
			add_state_core = 39 # South Tyrol
			add_state_core = 850 # Trentino
			add_state_core = 848 # Vorarlberg
			add_state_core = 976 # Steiermark-Kärnten
			add_state_core = 975 # Burgenland
			
			152 = { set_state_name = "Oberösterreich" }
			4 = { set_state_name = "Niederösterreich" }
			153 = { set_state_name = "Tirol" }
			39 = { set_state_name = "Südtirol" }
			850 = { set_state_name = "Trient" }
		}
		
	}

	GER_reintegrate_south_tyrol = { # aka Alto Adige

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 39 # South Tyrol
			has_full_control_of_state = 850 # Trentino
		}

		highlight_states = {
			highlight_state_targets = {
				state = 39 # South Tyrol
				state = 850 # Trentino
			}
		}

		visible = {
			has_country_flag = AUS_annexed # Germany completed Anschluss succesfully

			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			NOT = { 39 = { is_core_of = GER } } # South Tyrol
			NOT = { 850 = { is_core_of = GER } } # Trentino
		}
		
		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 39 # South Tyrol
				has_full_control_of_state = 850 # Trentino
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_south_tyrol
			
				remove_state_claim = 39 # South Tyrol
				remove_state_claim = 850 # Trentino

				set_province_name = { id = 11598 name = "Bozen" }
				set_province_name = { id = 9598 name = "Trient" }
			}

			add_state_core = 39 # South Tyrol
			add_state_core = 850 # Trentino

			39 = { set_state_name = "Südtirol" }
			850 = { set_state_name = "Trient" }
		}
		
	}
	
	GER_reintegrate_sudetenland = {

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 69 # North Sudetenland
			has_full_control_of_state = 972 # South Sudetenland
			has_full_control_of_state = 74 # Sudeten Silesia
		}

		highlight_states = {
			highlight_state_targets = {
				state = 69 # North Sudetenland
				state = 972 # South Sudetenland
				state = 74 # Sudeten Silesia
			}
		}
		
		visible = {
			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			OR = {
				NOT = { 69 = { is_core_of = GER } } # North Sudetenland
				NOT = { 972 = { is_core_of = GER } } # South Sudetenland
				NOT = { 74 = { is_core_of = GER } } # Sudeten Silesia
			}
		}

		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 69 # North Sudetenland
				has_full_control_of_state = 972 # South Sudetenland
				has_full_control_of_state = 74 # Sudeten Silesia
			}
		}

		fire_only_once = yes

		cost = 50
		days_remove = 90

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_sudetenland
			
				remove_state_claim = 69 # North Sudetenland
				remove_state_claim = 972 # South Sudetenland
				remove_state_claim = 74 # Sudeten Silesia

				set_province_name = { id = 11401 name = "Reichenberg" }
				set_province_name = { id = 11432 name = "Aussig" }
				set_province_name = { id = 3585 name = "Karlsbad" }
				set_province_name = { id = 557 name = "Znaim" }
				set_province_name = { id = 3414 name = "Troppau" }
				set_province_name = { id = 3583 name = "Ostrau" }
			}

			add_state_core = 69 # North Sudetenland
			add_state_core = 972 # South Sudetenland
			add_state_core = 74 # Sudeten Silesia

			69 = { set_state_name = "Deutschböhmen" }
			972 = { set_state_name = "Böhmerwaldgau" }
			74 = { set_state_name = "Sudetenschlesien" }
		}
		
	}
	
	GER_integrate_switzerland = {

		icon = generic_political_discourse

		allowed = {
			original_tag = GER
		}

		available = {
			has_full_control_of_state = 3 # Swiss Plateau
			has_full_control_of_state = 151 # Eastern Swiss Alps
			has_full_control_of_state = 847 # Western Swiss Alps
		}

		highlight_states = {
			highlight_state_targets = {
				state = 3 # Swiss Plateau
				state = 151 # Eastern Swiss Alps
				state = 847 # Western Swiss Alps
			}
		}
		
		visible = {
			has_war = yes
			OR = {
				has_global_flag = ragnarok_party
				has_global_flag = ragnarok_early_war
			}
			OR = {
				NOT = { 3 = { is_core_of = GER } } # Swiss Plateau
				NOT = { 151 = { is_core_of = GER } } # Eastern Swiss Alps
				NOT = { 847 = { is_core_of = GER } } # Western Swiss Alps
			}
		}

		cancel_trigger = {
			NOT = {
				has_full_control_of_state = 3 # Swiss Plateau
				has_full_control_of_state = 151 # Eastern Swiss Alps
				has_full_control_of_state = 847 # Western Swiss Alps
			}
		}

		fire_only_once = yes

		cost = 150
		days_remove = 120

		ai_will_do = {
			factor = 10
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = integrated_switzerland
			
				remove_state_claim = 3 # Swiss Plateau
				remove_state_claim = 151 # Eastern Swiss Alps
				remove_state_claim = 847 # Western Swiss Alps
			}

			add_state_core = 3 # Swiss Plateau
			add_state_core = 151 # Eastern Swiss Alps
			add_state_core = 847 # Western Swiss Alps
		}
		
	}

}