foreign_influence = {

	# Decisions for masters to push their ideology onto puppets
	# Note that subject status is not checked due to those only appearing in DLC
	# (Subjects are puppets with high autonomy)

	nation_building = {

		icon = eng_propaganda_campaigns

		days_remove = 120

		available = {
			FROM = {
				is_puppet_of = ROOT
			}
			OR = {
				political_power_daily > 0.5
				has_political_power > 50
			}
		}

		visible = {
			has_government = democratic
		}

		target_array = subjects

		target_trigger = {
			FROM = {
				is_puppet_of = ROOT
			}
		}

		complete_effect = {
			FROM = { add_timed_idea = { idea = nation_building days = 120 } }
		}
		cost = 50
		ai_will_do = {
			factor = 0
		}
	}

	socialist_education = {

		icon = eng_propaganda_campaigns

		days_remove = 120

		available = {
			FROM = {
				is_puppet_of = ROOT
			}
			OR = {
				political_power_daily > 0.5
				has_political_power > 50
			}
		}

		visible = {
			has_government = communism
			NOT = {
				AND = {
					tag = ENG
					has_completed_focus = ENG_concessions_to_the_trade_unions
					FROM = {
						OR = {
							tag = CAN
							tag = SAF
							tag = RAJ
							tag = AST
							tag = NZL
						}
						has_government = communism
					}
				}
			}
		}

		target_array = subjects

		target_trigger = {
			FROM = {
				is_puppet_of = ROOT
			}
		}

		complete_effect = {
			FROM = {
				add_timed_idea = { idea = socialist_education days = 120 }
			}
		}
		
		cost = 50
		
		ai_will_do = {
			factor = 0
		}
	}

	paramilitary_training = {

		icon = eng_propaganda_campaigns

		days_remove = 120

		available = {
			FROM = {
				is_puppet_of = ROOT
			}
			OR = {
				political_power_daily > 0.5
				has_political_power > 50
			}
		}

		visible = {
			has_government = fascism
			NOT = {
				AND = {
					tag = ENG
					has_completed_focus = ENG_organize_the_blackshirts
					FROM = {
						OR = {
							tag = CAN
							tag = SAF
							tag = RAJ
							tag = AST
							tag = NZL
						}
						has_government = fascism
					}
				}
			}
		}

		target_array = subjects

		target_trigger = {
			FROM = {
				is_puppet_of = ROOT
			}
		}

		complete_effect = {
			FROM = {
				add_timed_idea = { idea = paramilitary_training days = 120 }
			}
		}

		cost = 50


		ai_will_do = {
			factor = 0
		}
	}

	military_parade = {

		icon = eng_propaganda_campaigns

		days_remove = 120

		available = {
			OR = {
				political_power_daily > 0.5
				has_political_power > 50
			}
		}

		visible = {
			has_government = neutrality
		}

		target_array = subjects

		target_trigger = {
			FROM = {
				is_puppet_of = ROOT
			}
		}

		complete_effect = {
			FROM = {
				add_timed_idea = { idea = military_parade days = 120 }
			}
		}

		cost = 50
		
		ai_will_do = {
			factor = 0
		}
	}

	police_action = {

		icon = generic_prepare_civil_war

		cost = 50

		available = {
			FROM = {
				is_puppet_of = ROOT
			}
			FROM = {
				democratic > 0.6
			}
			FROM = {
				NOT = { has_government = democratic }
			}
		}

		visible = {
			has_government = democratic
			FROM = {
				is_puppet_of = ROOT
				NOT = { has_government = democratic }
			}
		}

		target_array = subjects

		target_trigger = {
			FROM = {
				is_puppet_of = ROOT
			}
		}

		complete_effect = {
			FROM = { country_event = { id = mtg_generic.1 } }
			FROM = {
				add_timed_idea = {
					idea = political_turmoil
					days = 365
				}
			}
			FROM = {
				set_politics = {
					ruling_party = democratic
					elections_allowed = yes
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	fraternal_republic = {

		icon = generic_prepare_civil_war

		cost = 50

		available = {
			FROM = {
				is_puppet_of = ROOT
			}
			FROM = {
				communism > 0.6
			}
			FROM = {
				NOT = { has_government = communism }
			}
		}

		visible = {
			has_government = communism
			FROM = {
				is_puppet_of = ROOT
				NOT = { has_government = communism }
			}
			NOT = {
				AND = {
					tag = ENG
					has_completed_focus = ENG_concessions_to_the_trade_unions
					FROM = {
						OR = {
							tag = CAN
							tag = SAF
							tag = RAJ
							tag = AST
							tag = NZL
						}
					}
				}
			}
		}

		target_array = subjects

		target_trigger = {
			FROM = {
				is_puppet_of = ROOT
			}
		}

		complete_effect = {
			FROM = { country_event = { id = mtg_generic.1 } }
			FROM = {
				add_timed_idea = {
					idea = political_turmoil
					days = 365
				}
			}
			FROM = {
				set_politics = {
					ruling_party = communism
					elections_allowed = no
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	ultranationalist_coup = {

		icon = generic_prepare_civil_war

		cost = 50

		available = {
			FROM = {
				is_puppet_of = ROOT
			}
			FROM = {
				fascism > 0.6
			}
			FROM = {
				NOT = { has_government = fascism }
			}
		}

		visible = {
			has_government = fascism
			FROM = {
				is_puppet_of = ROOT
				NOT = { has_government = fascism }
			}
			NOT = {
				AND = {
					tag = ENG
					has_completed_focus = ENG_organize_the_blackshirts
					FROM = {
						OR = {
							tag = CAN
							tag = SAF
							tag = RAJ
							tag = AST
							tag = NZL
						}
					}
				}
			}
		}

		target_array = subjects

		target_trigger = {
			FROM = {
				is_puppet_of = ROOT
			}
		}

		complete_effect = {
			FROM = { country_event = { id = mtg_generic.1 } }
			FROM = {
				add_timed_idea = {
					idea = political_turmoil
					days = 365
				}
			}
			FROM = {
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	military_dictatorship = {

		icon = generic_prepare_civil_war

		cost = 50

		available = {
			FROM = {
				is_puppet_of = ROOT
			}
			FROM = {
				neutrality > 0.6
			}
			FROM = {
				NOT = { has_government = neutrality }
			}
		}

		visible = {
			has_government = neutrality
			FROM = {
				is_puppet_of = ROOT
				NOT = { has_government = neutrality }
			}
		}

		target_array = subjects

		target_trigger = {
			FROM = {
				is_puppet_of = ROOT
			}
		}

		complete_effect = {
			FROM = { country_event = { id = mtg_generic.1 } }
			FROM = {
				add_timed_idea = {
					idea = political_turmoil
					days = 365
				}
			}
			FROM = {
				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	instantiate_collaboration = {
		icon = generic_prepare_civil_war

		cost = 150

		available = {
		    surrender_progress < 0.1
            has_stability > 0.5
	        has_war_support > 0.5
			has_war = no
			is_subject = no
            is_available_to_collaboration_government = yes
			date > 1939.1.1
			has_core_occupation_modifier = {
				occupied_country_tag = FROM
				modifier = compliance_80
			}
		}
        visible = {
			has_war = no
			is_subject = no
			is_ai = no
            has_stability > 0.35
	        has_war_support > 0.35
			has_rule = can_create_collaboration_government
			is_available_to_collaboration_government = yes
			has_core_occupation_modifier = {
				occupied_country_tag = FROM
				modifier = compliance_80
			}
        }

		complete_effect = {
		    add_stability = -0.02
		    add_war_support = -0.02
			set_temp_variable = { country_to_initiate = FROM }
			instantiate_collaboration_government = yes
		}

		target_non_existing = yes
		target_array = occupied_countries


		ai_will_do = {
			factor = 0
		}
	}
}