
political_actions = {
	PAR_flip_to_fascism = {
		priority = 20
		icon = generic_civil_support
		ai_will_do = {
			base = 0
			modifier = {
				is_historical_focus_on = no
				add = 2
			}
		}

		allowed = {  
			original_tag = PAR
			has_dlc = "Trial of Allegiance"
		}

		available = {
			has_completed_focus = PAR_nazify_the_army
		}
		visible = {
			has_completed_focus = PAR_nazify_the_army
			NOT = { has_government = fascism }
		}
		cost = 35
		complete_effect = {
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
				last_election = "1936.02.04"
			}
		}
	}

	PAR_appoint_estigarribia_as_leader = {
		priority = 20
		icon = generic_civil_support
		ai_will_do = {
			base = 0
			modifier = {
				is_historical_focus_on = no
				add = 2
			}
		}

		allowed = {  
			original_tag = PAR
			has_dlc = "Trial of Allegiance"
		}

		available = {
			has_completed_focus = PAR_put_estigarribia_on_a_pedestal
		}
		visible = {
			has_completed_focus = PAR_put_estigarribia_on_a_pedestal
			NOT = { 
				has_country_leader = {
					ruling_only = yes # default = yes
					character = PAR_Jose_Felix_Estigarribia # recommended<bool>
				}
			}
		}
		cost = 75
		complete_effect = {
			hidden_effect = {
				set_party_name = {
					ideology = neutrality
					long_name = neutrality
					name = neutrality
				}
			}
			set_politics = {
				ruling_party = neutrality
				elections_allowed = no
				last_election = "1936.03.12"
			}
			retire_country_leader = yes
			PAR_Jose_Felix_Estigarribia = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = despotism
						expire = 1950.1.1
						traits = { SWI_militaristic_nationalist } 
					}
				}
			}
		}
	}
}

improving_our_army_category = {
	
	JUNO_specialize_in_infantry_tanks  = {

		priority = 10

		icon = GFX_decision_generic_tank

		ai_will_do = {
			base = 80
		}
 
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL
			}
		}

		available = {
			has_completed_focus = SMB_tank_warfare
			NOT = {
				has_country_flag = JUNO_already_specialized_in_tanks_dummy
			} 
		}

		custom_cost_trigger = { 
			command_power > 39
		}
		custom_cost_text = decision_cost_CP_40	

		visible = { 
			has_completed_focus = SMB_tank_warfare
			NOT = {
				has_country_flag = JUNO_already_specialized_in_tanks
			}
		}

		days_remove = 35

		#cost = 75

		complete_effect = { 
			hidden_effect = {
				add_command_power = -40
				set_country_flag = JUNO_already_specialized_in_tanks_dummy
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.1 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.05 tooltip = army_org_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.1 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.05 tooltip = army_org_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.04 tooltip = army_org_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.04 tooltip = army_org_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.04 tooltip = army_org_factor_tt }
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.04 tooltip = army_org_factor_tt }
			}

			hidden_effect = {
				set_country_flag = JUNO_already_specialized_in_tanks
			}
		}

		ai_will_do = { #shouldn't do it in historical
			base = 9999
		}


	}

	JUNO_specialize_in_breakthrough_tanks  = {

		priority = 9

		icon = GFX_decision_generic_tank

		ai_will_do = {
			base = 80
		}
	
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL
			}
		}
 
		available = {
			has_completed_focus = SMB_tank_warfare
			NOT = {
				has_country_flag = JUNO_already_specialized_in_tanks_dummy
			} 
		}

		custom_cost_trigger = { 
			command_power > 39
		}
		custom_cost_text = decision_cost_CP_40	

		visible = { 
			has_completed_focus = SMB_tank_warfare
			NOT = {
				has_country_flag = JUNO_already_specialized_in_tanks
			}
		}

		days_remove = 35

		#cost = 75

		complete_effect = { 
			hidden_effect = {
				add_command_power = -40
				set_country_flag = JUNO_already_specialized_in_tanks_dummy
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.1 tooltip = army_armor_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.1 tooltip = army_armor_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.1 tooltip = army_armor_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.035 tooltip = army_armor_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.035 tooltip = army_armor_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.1 tooltip = army_armor_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}

			hidden_effect = {
				set_country_flag = JUNO_already_specialized_in_tanks
			}
		}

		ai_will_do = { #shouldn't do it in historical
			base = 0
		}

	}

	JUNO_invite_japanese_army_advisors  = {

		priority = 20

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 60
		}
	
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR 
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL 
			}
		}
	
		available = {
			has_completed_focus = SMB_foreign_advisors
			any_country = {
				original_tag = JAP
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_japanese_advisors_completed
					has_country_flag = JUNO_already_invited_american_advisors_completed
					has_country_flag = JUNO_already_invited_french_advisors_completed
				}
			} 
			custom_trigger_tooltip = {
				tooltip = has_japanese_ideology
				OR = {
					is_ai = yes
					JAP = {
						has_opinion = {
							target = ROOT
							value > 99
						}
					}
					AND = {
						JAP = {
							has_government = fascism
						}
						ROOT = {
							NOT = {
								has_government = communism
							}
						}
					}
					AND = {
						JAP = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
					AND = {
						JAP = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						JAP = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
						}
					}
				}
			}
		}

		visible = { 
			has_completed_focus = SMB_foreign_advisors
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_japanese_advisors_removed
					has_country_flag = JUNO_already_invited_american_advisors_removed
					has_country_flag = JUNO_already_invited_french_advisors_removed
				}
			}
		}

		days_remove = 70

		cost = 75

		complete_effect = { 
			hidden_effect = {
				set_country_flag = JUNO_already_invited_japanese_advisors_completed
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.05 tooltip = army_org_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.05 tooltip = army_org_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.05 tooltip = army_org_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.05 tooltip = army_org_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.05 tooltip = army_org_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_org_factor = 0.05 tooltip = army_org_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
			}

			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_grand_battle_plan
			}

			hidden_effect = {
				set_country_flag = JUNO_already_invited_japanese_advisors_removed
			}
		}

		ai_will_do = { #shouldn't do it in historical
			base = 9999
		}

	}

	JUNO_invite_american_army_advisors  = {

		priority = 19

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 80
		}
	
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR 
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL 
			}
		}
	
		available = {
			has_completed_focus = SMB_foreign_advisors
			any_country = {
				original_tag = USA
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_american_advisors_completed
					has_country_flag = JUNO_already_invited_italian_advisors_completed
					has_country_flag = JUNO_already_invited_japanese_advisors_completed
				}
			} 
			IF = {
				limit = {
					original_tag = CHL
				}
				NOT = {
					has_completed_focus = CHL_promote_broad_anti_americansim
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_american_ideology
				OR = {
					is_ai = yes
					USA = {
						has_opinion = {
							target = ROOT
							value > 99
						}
					}
					AND = {
						USA = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
					AND = {
						USA = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = neutrality
						}
					}
					AND = {
						USA = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						USA = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
						}
					}
				}
			}
		}

		visible = { 
			has_completed_focus = SMB_foreign_advisors
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_american_advisors_removed
					has_country_flag = JUNO_already_invited_italian_advisors_removed
					has_country_flag = JUNO_already_invited_japanese_advisors_removed
				}
			}
		}

		days_remove = 70

		cost = 75

		complete_effect = { 
			hidden_effect = {
				set_country_flag = JUNO_already_invited_american_advisors_completed
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.05 tooltip = special_forces_cap_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.05 tooltip = special_forces_cap_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.05 tooltip = special_forces_cap_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = army_artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.05 tooltip = special_forces_cap_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = army_artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.05 tooltip = special_forces_cap_tt }
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.05 tooltip = special_forces_cap_tt }
			}

			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_superior_firepower
			}

			hidden_effect = {
				set_country_flag = JUNO_already_invited_american_advisors_removed
			}
		}

		ai_will_do = { #shouldn't do it in historical
			base = 0
		}

	}

	JUNO_invite_soviet_army_advisors  = {

		priority = 18

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 50
		}
	
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR 
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL 
			}
		}
	
		available = {
			has_completed_focus = SMB_foreign_advisors
			any_country = {
				original_tag = SOV
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_american_advisors_completed
					has_country_flag = JUNO_already_invited_german_advisors_completed
					has_country_flag = JUNO_already_invited_french_advisors_completed
				}
			} 
			custom_trigger_tooltip = {
				tooltip = has_soviet_ideology
				OR = {
					is_ai = yes
					SOV = {
						has_opinion = {
							target = ROOT
							value > 99
						}
					}
					AND = {
						SOV = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
							has_government = neutrality
						}
					}
					AND = {
						SOV = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = neutrality
							has_government = fascism
						}
					}
					AND = {
						SOV = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						SOV = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
				}
			}
		}

		visible = { 
			has_completed_focus = SMB_foreign_advisors
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_soviet_advisors_removed
					has_country_flag = JUNO_already_invited_german_advisors_removed
					has_country_flag = JUNO_already_invited_japanese_advisors_removed
				}
			}
		}

		days_remove = 70

		cost = 75

		complete_effect = { 
			hidden_effect = {
				set_country_flag = JUNO_already_invited_soviet_advisors_completed
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
				add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.05 tooltip = supply_combat_penalties_on_core_factor_tt }
				add_to_variable = { JUNO_army_modifier_conscription = 0.01 tooltip = conscription_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
				add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.05 tooltip = supply_combat_penalties_on_core_factor_tt }
				add_to_variable = { JUNO_army_modifier_conscription = 0.01 tooltip = conscription_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
				add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.05 tooltip = supply_combat_penalties_on_core_factor_tt }
				add_to_variable = { JUNO_army_modifier_conscription = 0.01 tooltip = conscription_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
				add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.05 tooltip = supply_combat_penalties_on_core_factor_tt }
				add_to_variable = { JUNO_army_modifier_conscription = 0.01 tooltip = conscription_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
				add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.05 tooltip = supply_combat_penalties_on_core_factor_tt }
				add_to_variable = { JUNO_army_modifier_conscription = 0.01 tooltip = conscription_tt }
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
				add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.05 tooltip = supply_combat_penalties_on_core_factor_tt }
				add_to_variable = { JUNO_army_modifier_conscription = 0.01 tooltip = conscription_tt }
			}

			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_mass_assault
			}

			hidden_effect = {
				set_country_flag = JUNO_already_invited_soviet_advisors_removed
			}
		}

		ai_will_do = { #shouldn't do it in historical
			base = 9999
		}

	}

	JUNO_invite_german_army_advisors  = {

		priority = 17

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 60
		}
	
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR 
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL 
			}
		}
	
		available = {
			has_completed_focus = SMB_foreign_advisors
			any_country = {
				original_tag = GER
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_german_advisors_completed
					has_country_flag = JUNO_already_invited_british_advisors_completed
					has_country_flag = JUNO_already_invited_soviet_advisors_completed
				}
			} 
			custom_trigger_tooltip = {
				tooltip = has_german_ideology
				OR = {
					is_ai = yes
					GER = {
						has_opinion = {
							target = ROOT
							value > 99
						}
					}
					AND = {
						GER = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
						}
					}
					AND = {
						GER = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
					AND = {
						GER = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						GER = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = fascism
							has_government = democratic
						}
					}
				}
			}
		}

		visible = { 
			has_completed_focus = SMB_foreign_advisors
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_german_advisors_removed
					has_country_flag = JUNO_already_invited_british_advisors_removed
					has_country_flag = JUNO_already_invited_soviet_advisors_removed
				}
			}
		}

		days_remove = 70

		cost = 75

		complete_effect = { 
			hidden_effect = {
				set_country_flag = JUNO_already_invited_german_advisors_completed
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.05 tooltip = army_armor_attack_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.05 tooltip = army_armor_attack_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.05 tooltip = army_armor_attack_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.05 tooltip = army_armor_attack_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.05 tooltip = army_armor_attack_factor_tt }
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_armor_defence_factor = 0.05 tooltip = army_armor_defence_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_armor_attack_factor = 0.05 tooltip = army_armor_attack_factor_tt }
			}

			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_mobile_warfare
			}

			hidden_effect = {
				set_country_flag = JUNO_already_invited_german_advisors_removed
			}
		}

		ai_will_do = { #shouldn't do it in historical
			base = 1
		}

	}

	JUNO_invite_italian_army_advisors  = {

		priority = 16

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 60
		}
	
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR 
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL 
			}
		}
	
		available = {
			has_completed_focus = SMB_foreign_advisors
			any_country = {
				original_tag = ITA
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_italian_advisors_completed
					has_country_flag = JUNO_already_invited_american_advisors_completed
					has_country_flag = JUNO_already_invited_british_advisors_completed
				}
			} 
			custom_trigger_tooltip = {
				tooltip = has_italian_ideology
				OR = {
					is_ai = yes
					ITA = {
						has_opinion = {
							target = ROOT
							value > 99
						}
					}
					AND = {
						ITA = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = neutrality
						}
					}
					AND = {
						ITA = {
							has_government = democratic
						}
						NOT = {
							has_government = fascism
						}
					}
					AND = {
						ITA = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						ITA = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
				}
			}
		}

		visible = { 
			has_completed_focus = SMB_foreign_advisors
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_italian_advisors_removed
					has_country_flag = JUNO_already_invited_american_advisors_removed
					has_country_flag = JUNO_already_invited_british_advisors_removed
				}
			}
		}

		days_remove = 70

		cost = 75

		complete_effect = { 
			hidden_effect = {
				set_country_flag = JUNO_already_invited_italian_advisors_completed
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.1 tooltip = army_core_defence_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.1 tooltip = army_core_defence_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.1 tooltip = army_core_defence_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.1 tooltip = army_core_defence_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.1 tooltip = army_core_defence_factor_tt }
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_attack_speed_factor = 0.05 tooltip = army_attack_speed_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.1 tooltip = army_core_defence_factor_tt }
			}

			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_grand_battle_plan
			}

			hidden_effect = {
				set_country_flag = JUNO_already_invited_italian_advisors_removed
			}
		}

		ai_will_do = { #shouldn't do it in historical
			base = 1
		}

	}

	JUNO_invite_british_army_advisors  = {

		priority = 16

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 70
		}
	
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR 
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL 
			}
		}
	
		available = {
			has_completed_focus = SMB_foreign_advisors
			any_country = {
				original_tag = ENG
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_british_advisors_completed
					has_country_flag = JUNO_already_invited_italian_advisors_completed
					has_country_flag = JUNO_already_invited_german_advisors_completed
				}
			} 
			custom_trigger_tooltip = {
				tooltip = has_british_ideology
				OR = {
					is_ai = yes
					ENG = {
						has_opinion = {
							target = ROOT
							value > 99
						}
					}
					AND = {
						ENG = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = neutrality
							has_government = democratic
						}
					}
					AND = {
						ENG = {
							has_government = democratic
						}
						NOT = {
							has_government = fascism
							has_government = communism
						}
					}
					AND = {
						ENG = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						ENG = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
				}
			}
		}

		visible = { 
			has_completed_focus = SMB_foreign_advisors
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_british_advisors_removed
					has_country_flag = JUNO_already_invited_italian_advisors_removed
					has_country_flag = JUNO_already_invited_german_advisors_removed
				}
			}
		}

		days_remove = 70

		cost = 75

		complete_effect = { 
			hidden_effect = {
				set_country_flag = JUNO_already_invited_british_advisors_completed
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
				add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.1 tooltip = experience_gain_army_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.05 tooltip = army_attack_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
				add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.1 tooltip = experience_gain_army_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.05 tooltip = army_attack_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
				add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.1 tooltip = experience_gain_army_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.05 tooltip = army_attack_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.1 tooltip = experience_gain_army_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.03 tooltip = army_attack_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.1 tooltip = experience_gain_army_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.03 tooltip = army_attack_factor_tt }
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
				add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.1 tooltip = experience_gain_army_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.05 tooltip = army_attack_factor_tt }
			}

			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_grand_battle_plan
			}

			hidden_effect = {
				set_country_flag = JUNO_already_invited_british_advisors_removed
			}
		}

		ai_will_do = { #shouldn't do it in historical
			base = 9999
		}

	}

	JUNO_invite_french_army_advisors  = {

		priority = 15

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 50
		}
	
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR 
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL 
			}
		}
	
		available = {
			has_completed_focus = SMB_foreign_advisors
			any_country = {
				original_tag = FRA
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_french_advisors_completed
					has_country_flag = JUNO_already_invited_italian_advisors_completed
					has_country_flag = JUNO_already_invited_german_advisors_completed
				}
			} 
			custom_trigger_tooltip = {
				tooltip = has_french_ideology
				OR = {
					is_ai = yes
					FRA = {
						has_opinion = {
							target = ROOT
							value > 99
						}
					}
					AND = {
						FRA = {
							has_government = fascism
						}
						NOT = {
							has_government = communism
							has_government = democratic
						}
					}
					AND = {
						FRA = {
							has_government = democratic
						}
						NOT = {
							has_government = fascism
						}
					}
					AND = {
						FRA = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						FRA = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
							has_government = democratic
							has_government = fascism
						}
					}
				}
			}
		}

		visible = { 
			has_completed_focus = SMB_foreign_advisors
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_french_advisors_removed
					has_country_flag = JUNO_already_invited_italian_advisors_removed
					has_country_flag = JUNO_already_invited_german_advisors_removed
				}
			}
		}

		days_remove = 70

		cost = 75

		complete_effect = { 
			hidden_effect = {
				set_country_flag = JUNO_already_invited_french_advisors_completed
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_artillery_defence_factor = 0.1 tooltip = army_artillery_defence_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_artillery_defence_factor = 0.1 tooltip = army_artillery_defence_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = army_artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_artillery_defence_factor = 0.1 tooltip = army_artillery_defence_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = army_artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_artillery_defence_factor = 0.1 tooltip = army_artillery_defence_factor_tt }
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = army_artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_artillery_defence_factor = 0.1 tooltip = army_artillery_defence_factor_tt }
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
				add_to_variable = { JUNO_army_modifier_army_artillery_attack_factor = 0.05 tooltip = army_artillery_attack_factor_tt }
				add_to_variable = { JUNO_army_modifier_army_artillery_defence_factor = 0.1 tooltip = army_artillery_defence_factor_tt }
			}

			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_superior_firepower
			}

			hidden_effect = {
				set_country_flag = JUNO_already_invited_french_advisors_removed
			}
		}

		ai_will_do = { #shouldn't do it in historical
			base = 5
		}

	}

	JUNO_purchase_aircraft = {

		priority = 1

		icon = generic_air

		allowed = { 
			OR = {
				AND = {
					has_dlc = "Trial of Allegiance"
					OR = {
						original_tag = URG
						original_tag = PAR 
						original_tag = BOL
						original_tag = BRA
						original_tag = ARG
						original_tag = CHL 
					}
				}
				AND = {
					has_dlc = "Graveyard of Empires"
					original_tag = AFG
				}

			}
		} 

		available = {
			any_country = {
				has_opinion = {
					target = ROOT
					value > 0
				}
				is_major = yes
				OR = { 
					has_tech = early_fighter 
					has_tech = iw_small_airframe 
				}

				NOT = {
					OR = {
						has_war_with = ROOT
						is_justifying_wargoal_against = ROOT
					}
				}
			}

			NOT = { has_country_flag = JUNO_purchasing_aircraft_flag }

			NOT = { has_war_with = FROM }
			NOT = { is_justifying_wargoal_against = FROM }
		}

		visible = {
			any_country = {
				has_opinion = {
					target = ROOT
					value > 0
				}
				is_major = yes
				OR = { 
					has_tech = early_fighter 
					has_tech = iw_small_airframe 
				}

				NOT = {
					OR = {
						has_war_with = ROOT
						is_justifying_wargoal_against = ROOT
					}
				}
			}
			OR = {
				has_completed_focus = SMB_purchase_aircraft
				has_completed_focus = AFG_purchase_aircraft
			}
			has_completed_focus = SMB_purchase_aircraft

			NOT = {
				has_dlc = "Trial of Allegiance"
			}
		}

		cost = 50

		days_remove = 90

		days_re_enable = 90

		fire_only_once = no

		ai_will_do = {
			factor = 0.1
			modifier = {
				factor = 0
				OR = {
					num_of_civilian_factories < 10
					AND = {
						stockpile_ratio = { 
			  				archetype = small_plane_airframe
			  				ratio > 0.75
			  			}
			  			stockpile_ratio = { 
			  				archetype = small_plane_naval_bomber_airframe
			  				ratio > 0.75
			  			}
			  			stockpile_ratio = { 
			  				archetype = medium_plane_airframe
			  				ratio > 0.75
			  			}
					}
				}
			}
		}

		modifier = {
			civilian_factory_use = 1
		}
		
		complete_effect = {
			set_country_flag = JUNO_purchasing_aircraft_flag

			custom_effect_tooltip = JUNO_purchase_aircraft_tt

			hidden_effect = {
				random_list =  {
					50 = {
						set_country_flag = JUNO_fighters_flag
					}
					50 = {
						set_country_flag = JUNO_tactical_bomber_flag
					}
				}
			}
		}

		remove_effect = {
			IF = {
				limit = {
					has_country_flag = JUNO_fighters_flag
				}
				IF = {
					limit = {
						NOT = { has_dlc = "By Blood Alone" }
					}
					add_equipment_to_stockpile = {
						producer = USA
						type = fighter_equipment_1
						amount = 100
					}
				}
				ELSE = {
					
					create_equipment_variant = {
						name = "P-40" #
						type = small_plane_airframe_2
						allow_without_tech = yes #For tooltip purposes, doesn't affect anything really
						modules = {
							fixed_main_weapon_slot = heavy_mg_4x
							fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
							fixed_auxiliary_weapon_slot_2 = bomb_locks
							engine_type_slot = engine_3_1x
							special_type_slot_1 = drop_tanks
						}
					}
					add_equipment_to_stockpile = {
						producer = USA
						type = small_plane_airframe_2
						amount = 100
						variant_name = "P-40"
					}
					
				}
				clr_country_flag = JUNO_fighters_flag
			}
			ELSE_IF = {
				limit = {
					has_country_flag = JUNO_tactical_bomber_flag
				}
				IF = {
					limit = {
						NOT = {
							has_dlc = "By Blood Alone"
						}
					}
					add_equipment_to_stockpile = {
						producer = SOV
						type = tac_bomber_equipment_1
						amount = 100
					}	
				}
				ELSE = {
					create_equipment_variant = {
						name = "DB-3" #
						type = medium_plane_airframe_0
						allow_without_tech = yes #For tooltip purposes, doesn't affect anything really
						modules = {
							fixed_main_weapon_slot = bomb_locks
							fixed_auxiliary_weapon_slot_1 = bomb_locks
							engine_type_slot = engine_3_1x
							special_type_slot_1 = drop_tanks
						}
					}
					add_equipment_to_stockpile = {
						producer = SOV
						type = medium_plane_airframe_0
						amount = 100
						variant_name = "DB-3"
					}	
				}
				clr_country_flag = JUNO_tactical_bomber_flag
			}
			clr_country_flag = JUNO_purchasing_aircraft_flag 
		}
	}

}

south_american_naval_arms_race_category = {
	purchase_dreadnoughts_usa = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_country_flag = generic_purchase_dreadnoughts_flag
			USA = { 
				NOT = { 
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT  
				}
			}
			NOT = { has_war_with = USA}
		}
		available = {
			NOT = {
				USA = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}					
				}
			}
			
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			USA = {
				country_event = {
					id = generic_purchase_ships_events.04
					hours = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	purchase_dreadnoughts_ENG = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_country_flag = generic_purchase_dreadnoughts_flag
			ENG = { 
				NOT = { 
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT  
				}
			}
			NOT = { has_war_with = ENG}
		}
		available = {
			NOT = {
				ENG = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}					
				}
			}			
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			ENG = {
				country_event = {
					id = generic_purchase_ships_events.04
					hours = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	purchase_dreadnoughts_FRA = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_country_flag = generic_purchase_dreadnoughts_flag
			FRA = { 
				NOT = { 
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT  
				}
			}
			NOT = { has_war_with = FRA}
		}
		available = {
			NOT = {
				FRA = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}					
				}
			}			
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			FRA = {
				country_event = {
					id = generic_purchase_ships_events.04
					hours = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	purchase_dreadnoughts_ITA = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_country_flag = generic_purchase_dreadnoughts_flag
			ITA = { 
				NOT = { 
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT  
				}
			}
			NOT = { has_war_with = ITA}
		}
		available = {
			NOT = {
				ITA = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}					
				}
			}			
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			ITA = {
				country_event = {
					id = generic_purchase_ships_events.04
					hours = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	purchase_dreadnoughts_GER = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_country_flag = generic_purchase_dreadnoughts_flag
			GER = { 
				NOT = { 
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT  
				}
			}
			NOT = { has_war_with = GER}
		}
		available = {
			NOT = {
				GER = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}					
				}
			}			
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			GER = {
				country_event = {
					id = generic_purchase_ships_events.04
					hours = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}
	purchase_dreadnoughts_JAP = {
		cost = 100
		icon = GFX_decision_generic_naval
		fire_only_once = no
		visible = {
			has_country_flag = generic_purchase_dreadnoughts_flag
			JAP = { 
				NOT = { 
					has_country_flag = sold_dreadnoughts_to_us@ROOT
					has_country_flag = negotiating_ship_purchase_flag@ROOT  
				}
			}
			NOT = { has_war_with = JAP}
		}
		available = {
			NOT = {
				JAP = {
					OR = {
						has_civil_war = yes
						has_capitulated = yes
						has_opinion = {
							target = FROM
							value < 50
						}
					}					
				}
			}			
		}
		days_remove = 14
		remove_effect = {
			SMB_purchase_dreadnoughts_tt_gen = yes
			JAP = {
				country_event = {
					id = generic_purchase_ships_events.04
					hours = 1
				}
				set_country_flag = negotiating_dreadnought_purchase_flag@ROOT
			}
		}
	}

	JUNO_invite_japanese_naval_advisors = {

		priority = 20

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 60
		}
	
		allowed = {  
			OR = {
				original_tag = URG
				original_tag = PAR 
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
				original_tag = CHL 
			}
		}
	
		available = {
			has_completed_focus = SMB_naval_foreign_advisors
			any_country = {
				original_tag = JAP
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_japanese_naval_advisors_completed
					has_country_flag = JUNO_already_invited_american_naval_advisors_completed
					has_country_flag = JUNO_already_invited_soviet_naval_advisors_completed
				}
			} 
			custom_trigger_tooltip = {
				tooltip = has_japanese_ideology
				OR = {
					AND = {
						JAP = {
							has_government = fascism
						}
						ROOT = {
							NOT = {
								has_government = communism
							}
						}
					}
					AND = {
						JAP = {
							has_government = democratic
						}
						NOT = {
							has_government = communism
							has_government = fascism
						}
					}
					AND = {
						JAP = {
							has_government = communism
						}
						NOT = {
							has_government = fascism
							has_government = neutrality
						}
					}
					AND = {
						JAP = {
							has_government = neutrality
						}
						NOT = {
							has_government = communism
						}
					}
				}
			}
		}

		visible = { 
			has_completed_focus = SMB_naval_foreign_advisors
			NOT = {
				OR = {
					has_country_flag = JUNO_already_invited_japanese_naval_advisors_removed
					has_country_flag = JUNO_already_invited_american_naval_advisors_removed
					has_country_flag = JUNO_already_invited_soviet_naval_advisors_removed
				}
			}
		}

		days_remove = 70

		cost = 50

		complete_effect = { 
			hidden_effect = {
				set_country_flag = JUNO_already_invited_japanese_naval_advisors_completed
			}
		}

		remove_effect = {
			
			IF = {
				limit = {
					original_tag = CHL
				}
				custom_effect_tooltip = CHL_modify_chilean_navy_ns_intro
				SMB_naval_jap_advisors_effect = yes
			}
			ELSE_IF = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = BRA_modify_brazilian_navy_ns_intro
				SMB_naval_jap_advisors_effect = yes
			}
			ELSE_IF = {
				limit = {
					original_tag = ARG
				}
				custom_effect_tooltip = ARG_modify_argentine_navy_ns_intro
				SMB_naval_jap_advisors_effect = yes
			}
			ELSE_IF = {
				limit = {
					original_tag = PAR
				}
				custom_effect_tooltip = PAR_modify_paraguayan_navy_ns_intro
				SMB_naval_jap_advisors_effect = yes
			}
			ELSE_IF = {
				limit = {
					original_tag = URG
				}
				custom_effect_tooltip = URG_modify_uruguayan_navy_ns_intro
				SMB_naval_jap_advisors_effect = yes
			}
			ELSE = {
				custom_effect_tooltip = JUNO_modify_south_american_navy_ns_intro
				SMB_naval_jap_advisors_effect = yes
			}

			add_doctrine_cost_reduction = {
				cost_reduction = 0.75
				uses = 1
				category = cat_base_strike
			}

			hidden_effect = {
				set_country_flag = JUNO_already_invited_japanese_naval_advisors_removed
			}
		}
	}

		JUNO_invite_american_navy_advisors  = {

			priority = 19

			icon = GFX_decision_generic_army_support

			ai_will_do = {
				base = 80
			}
		
			allowed = {  
				OR = {
					original_tag = URG
					original_tag = PAR 
					original_tag = BOL
					original_tag = BRA
					original_tag = ARG
					original_tag = CHL 
				}
			}
		
			available = {
				has_completed_focus = SMB_naval_foreign_advisors
				any_country = {
					original_tag = USA
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_american_naval_advisors_completed
						has_country_flag = JUNO_already_invited_italian_naval_advisors_completed
						has_country_flag = JUNO_already_invited_japanese_naval_advisors_completed
					}
				} 
				IF = {
					limit = {
						original_tag = CHL
					}
					NOT = {
						has_completed_focus = CHL_promote_broad_anti_americansim
					}
				}
				custom_trigger_tooltip = {
					tooltip = has_american_ideology
					OR = {
						AND = {
							USA = {
								has_government = fascism
							}
							NOT = {
								has_government = communism
								has_government = democratic
							}
						}
						AND = {
							USA = {
								has_government = democratic
							}
							NOT = {
								has_government = communism
								has_government = fascism
							}
						}
						AND = {
							USA = {
								has_government = communism
							}
							NOT = {
								has_government = fascism
								has_government = neutrality
							}
						}
						AND = {
							USA = {
								has_government = neutrality
							}
							NOT = {
								has_government = communism
							}
						}
					}
				}
			}

			visible = { 
				has_completed_focus = SMB_naval_foreign_advisors
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_american_naval_advisors_removed
						has_country_flag = JUNO_already_invited_italian_naval_advisors_removed
						has_country_flag = JUNO_already_invited_japanese_naval_advisors_removed
					}
				}
			}

			days_remove = 70

			cost = 50

			complete_effect = { 
				hidden_effect = {
					set_country_flag = JUNO_already_invited_american_naval_advisors_completed
				}
			}

			remove_effect = {
				
				IF = {
					limit = {
						original_tag = CHL
					}
					custom_effect_tooltip = CHL_modify_chilean_navy_ns_intro
					SMB_naval_usa_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = BRA
					}
					custom_effect_tooltip = BRA_modify_brazilian_navy_ns_intro
					SMB_naval_usa_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = ARG
					}
					custom_effect_tooltip = ARG_modify_argentine_navy_ns_intro
					SMB_naval_usa_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = PAR
					}
					custom_effect_tooltip = PAR_modify_paraguayan_navy_ns_intro
					SMB_naval_usa_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = URG
					}
					custom_effect_tooltip = URG_modify_uruguayan_navy_ns_intro
					SMB_naval_usa_advisors_effect = yes
				}
				ELSE = {
					custom_effect_tooltip = JUNO_modify_south_american_navy_ns_intro
					SMB_naval_usa_advisors_effect = yes
				}

				add_doctrine_cost_reduction = {
					cost_reduction = 0.75
					uses = 1
					category = cat_base_strike
				}

				hidden_effect = {
					set_country_flag = JUNO_already_invited_american_naval_advisors_removed
				}
			}

		}

		JUNO_invite_soviet_navy_advisors  = {

			priority = 18

			icon = GFX_decision_generic_army_support

			ai_will_do = {
				base = 50
			}
		
			allowed = {  
				OR = {
					original_tag = URG
					original_tag = PAR 
					original_tag = BOL
					original_tag = BRA
					original_tag = ARG
					original_tag = CHL 
				}
			}
		
			available = {
				has_completed_focus = SMB_naval_foreign_advisors
				any_country = {
					original_tag = SOV
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_soviet_naval_advisors_completed
						has_country_flag = JUNO_already_invited_german_naval_advisors_completed
						has_country_flag = JUNO_already_invited_japanese_naval_advisors_completed
					}
				} 
				custom_trigger_tooltip = {
					tooltip = has_soviet_ideology
					OR = {
						AND = {
							SOV = {
								has_government = fascism
							}
							NOT = {
								has_government = communism
								has_government = democratic
								has_government = neutrality
							}
						}
						AND = {
							SOV = {
								has_government = democratic
							}
							NOT = {
								has_government = communism
								has_government = neutrality
								has_government = fascism
							}
						}
						AND = {
							SOV = {
								has_government = communism
							}
							NOT = {
								has_government = fascism
								has_government = neutrality
							}
						}
						AND = {
							SOV = {
								has_government = neutrality
							}
							NOT = {
								has_government = communism
								has_government = fascism
							}
						}
					}
				}
			}

			visible = { 
				has_completed_focus = SMB_naval_foreign_advisors
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_soviet_naval_advisors_removed
						has_country_flag = JUNO_already_invited_german_naval_advisors_removed
						has_country_flag = JUNO_already_invited_japanese_naval_advisors_removed
					}
				}
			}

			days_remove = 70

			cost = 50

			complete_effect = { 
				hidden_effect = {
					set_country_flag = JUNO_already_invited_soviet_naval_advisors_completed
				}
			}

			remove_effect = {
				
				IF = {
					limit = {
						original_tag = CHL
					}
					custom_effect_tooltip = CHL_modify_chilean_navy_ns_intro
					SMB_naval_sov_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = BRA
					}
					custom_effect_tooltip = BRA_modify_brazilian_navy_ns_intro
					SMB_naval_sov_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = ARG
					}
					custom_effect_tooltip = ARG_modify_argentine_navy_ns_intro
					SMB_naval_sov_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = PAR
					}
					custom_effect_tooltip = PAR_modify_paraguayan_navy_ns_intro
					SMB_naval_sov_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = URG
					}
					custom_effect_tooltip = URG_modify_uruguayan_navy_ns_intro
					SMB_naval_sov_advisors_effect = yes
				}
				ELSE = {
					custom_effect_tooltip = JUNO_modify_south_american_navy_ns_intro
					SMB_naval_sov_advisors_effect = yes
				}

				add_doctrine_cost_reduction = {
					cost_reduction = 0.75
					uses = 1
					category = cat_fleet_in_being
				}

				hidden_effect = {
					set_country_flag = JUNO_already_invited_soviet_naval_advisors_removed
				}
			}

		}

		JUNO_invite_german_navy_advisors  = {

			priority = 17

			icon = GFX_decision_generic_army_support

			ai_will_do = {
				base = 60
			}
		
			allowed = {  
				OR = {
					original_tag = URG
					original_tag = PAR 
					original_tag = BOL
					original_tag = BRA
					original_tag = ARG
					original_tag = CHL 
				}
			}
		
			available = {
				has_completed_focus = SMB_naval_foreign_advisors
				any_country = {
					original_tag = GER
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_german_naval_advisors_completed
						has_country_flag = JUNO_already_invited_british_naval_advisors_completed
						has_country_flag = JUNO_already_invited_soviet_naval_advisors_completed
					}
				} 
				custom_trigger_tooltip = {
					tooltip = has_german_ideology
					OR = {
						AND = {
							GER = {
								has_government = fascism
							}
							NOT = {
								has_government = communism
							}
						}
						AND = {
							GER = {
								has_government = democratic
							}
							NOT = {
								has_government = communism
								has_government = fascism
							}
						}
						AND = {
							GER = {
								has_government = communism
							}
							NOT = {
								has_government = fascism
								has_government = neutrality
							}
						}
						AND = {
							GER = {
								has_government = neutrality
							}
							NOT = {
								has_government = communism
								has_government = fascism
								has_government = democratic
							}
						}
					}
				}
			}

			visible = { 
				has_completed_focus = SMB_naval_foreign_advisors
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_german_naval_advisors_removed
						has_country_flag = JUNO_already_invited_british_naval_advisors_removed
						has_country_flag = JUNO_already_invited_soviet_naval_advisors_removed
					}
				}
			}

			days_remove = 70

			cost = 50

			complete_effect = { 
				hidden_effect = {
					set_country_flag = JUNO_already_invited_german_naval_advisors_completed
				}
			}

			remove_effect = {
				
				IF = {
					limit = {
						original_tag = CHL
					}
					custom_effect_tooltip = CHL_modify_chilean_navy_ns_intro
					SMB_naval_ger_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = BRA
					}
					custom_effect_tooltip = BRA_modify_brazilian_navy_ns_intro
					SMB_naval_ger_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = ARG
					}
					custom_effect_tooltip = ARG_modify_argentine_navy_ns_intro
					SMB_naval_ger_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = PAR
					}
					custom_effect_tooltip = PAR_modify_paraguayan_navy_ns_intro
					SMB_naval_ger_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = URG
					}
					custom_effect_tooltip = URG_modify_uruguayan_navy_ns_intro
					SMB_naval_ger_advisors_effect = yes
				}
				ELSE = {
					custom_effect_tooltip = JUNO_modify_south_american_navy_ns_intro
					SMB_naval_ger_advisors_effect = yes
				}

				add_doctrine_cost_reduction = {
					cost_reduction = 0.75
					uses = 1
					category = cat_trade_interdiction
				}

				hidden_effect = {
					set_country_flag = JUNO_already_invited_german_naval_advisors_removed
				}
			}

		}

		JUNO_invite_italian_navy_advisors  = {

			priority = 16

			icon = GFX_decision_generic_army_support

			ai_will_do = {
				base = 60
			}
		
			allowed = {  
				OR = {
					original_tag = URG
					original_tag = PAR 
					original_tag = BOL
					original_tag = BRA
					original_tag = ARG
					original_tag = CHL 
				}
			}
		
			available = {
				has_completed_focus = SMB_naval_foreign_advisors
				any_country = {
					original_tag = ITA
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_italian_naval_advisors_completed
						has_country_flag = JUNO_already_invited_american_naval_advisors_completed
						has_country_flag = JUNO_already_invited_british_naval_advisors_completed
					}
				} 
				custom_trigger_tooltip = {
					tooltip = has_italian_ideology
					OR = {
						AND = {
							ITA = {
								has_government = fascism
							}
							NOT = {
								has_government = communism
								has_government = neutrality
							}
						}
						AND = {
							ITA = {
								has_government = democratic
							}
							NOT = {
								has_government = fascism
							}
						}
						AND = {
							ITA = {
								has_government = communism
							}
							NOT = {
								has_government = fascism
								has_government = neutrality
							}
						}
						AND = {
							ITA = {
								has_government = neutrality
							}
							NOT = {
								has_government = communism
								has_government = democratic
							}
						}
					}
				}
			}

			visible = { 
				has_completed_focus = SMB_naval_foreign_advisors
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_italian_naval_advisors_removed
						has_country_flag = JUNO_already_invited_american_naval_advisors_removed
						has_country_flag = JUNO_already_invited_british_naval_advisors_removed
					}
				}
			}

			days_remove = 70

			cost = 50

			complete_effect = { 
				hidden_effect = {
					set_country_flag = JUNO_already_invited_italian_naval_advisors_completed
				}
			}

			remove_effect = {
				
				IF = {
					limit = {
						original_tag = CHL
					}
					custom_effect_tooltip = CHL_modify_chilean_navy_ns_intro
					SMB_naval_ita_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = BRA
					}
					custom_effect_tooltip = BRA_modify_brazilian_navy_ns_intro
					SMB_naval_ita_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = ARG
					}
					custom_effect_tooltip = ARG_modify_argentine_navy_ns_intro
					SMB_naval_ita_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = PAR
					}
					custom_effect_tooltip = PAR_modify_paraguayan_navy_ns_intro
					SMB_naval_ita_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = URG
					}
					custom_effect_tooltip = URG_modify_uruguayan_navy_ns_intro
					SMB_naval_ita_advisors_effect = yes
				}
				ELSE = {
					custom_effect_tooltip = JUNO_modify_south_american_navy_ns_intro
					SMB_naval_ita_advisors_effect = yes
				}

				add_doctrine_cost_reduction = {
					cost_reduction = 0.75
					uses = 1
					category = cat_fleet_in_being
				}

				hidden_effect = {
					set_country_flag = JUNO_already_invited_italian_naval_advisors_removed
				}
			}

		}

		JUNO_invite_british_navy_advisors  = {

			priority = 16

			icon = GFX_decision_generic_army_support

			ai_will_do = {
				base = 70
			}
		
			allowed = {  
				OR = {
					original_tag = URG
					original_tag = PAR 
					original_tag = BOL
					original_tag = BRA
					original_tag = ARG
					original_tag = CHL 
				}
			}
		
			available = {
				has_completed_focus = SMB_naval_foreign_advisors
				any_country = {
					original_tag = ENG
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_british_naval_advisors_completed
						has_country_flag = JUNO_already_invited_italian_naval_advisors_completed
						has_country_flag = JUNO_already_invited_german_naval_advisors_completed
					}
				} 
				custom_trigger_tooltip = {
					tooltip = has_british_ideology
					OR = {
						AND = {
							ENG = {
								has_government = fascism
							}
							NOT = {
								has_government = communism
								has_government = neutrality
								has_government = democratic
							}
						}
						AND = {
							ENG = {
								has_government = democratic
							}
							NOT = {
								has_government = fascism
								has_government = communism
							}
						}
						AND = {
							ENG = {
								has_government = communism
							}
							NOT = {
								has_government = fascism
								has_government = neutrality
							}
						}
						AND = {
							ENG = {
								has_government = neutrality
							}
							NOT = {
								has_government = communism
								has_government = democratic
							}
						}
					}
				}
			}

			visible = { 
				has_completed_focus = SMB_naval_foreign_advisors
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_british_naval_advisors_removed
						has_country_flag = JUNO_already_invited_italian_naval_advisors_removed
						has_country_flag = JUNO_already_invited_german_naval_advisors_removed
					}
				}
			}

			days_remove = 70

			cost = 50

			complete_effect = { 
				hidden_effect = {
					set_country_flag = JUNO_already_invited_british_naval_advisors_completed
				}
			}

			remove_effect = {
				
				IF = {
					limit = {
						original_tag = CHL
					}
					custom_effect_tooltip = CHL_modify_chilean_navy_ns_intro
					SMB_naval_eng_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = BRA
					}
					custom_effect_tooltip = BRA_modify_brazilian_navy_ns_intro
					SMB_naval_eng_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = ARG
					}
					custom_effect_tooltip = ARG_modify_argentine_navy_ns_intro
					SMB_naval_eng_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = PAR
					}
					custom_effect_tooltip = PAR_modify_paraguayan_navy_ns_intro
					SMB_naval_eng_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = URG
					}
					custom_effect_tooltip = URG_modify_uruguayan_navy_ns_intro
					SMB_naval_eng_advisors_effect = yes
				}
				ELSE = {
					custom_effect_tooltip = JUNO_modify_south_american_navy_ns_intro
					SMB_naval_eng_advisors_effect = yes
				}

				add_doctrine_cost_reduction = {
					cost_reduction = 0.75
					uses = 1
					category = cat_fleet_in_being
				}

				hidden_effect = {
					set_country_flag = JUNO_already_invited_british_naval_advisors_removed
				}
			}

		}

		JUNO_invite_french_navy_advisors  = {

			priority = 15

			icon = GFX_decision_generic_army_support

			ai_will_do = {
				base = 50
			}
		
			allowed = {  
				OR = {
					original_tag = URG
					original_tag = PAR 
					original_tag = BOL
					original_tag = BRA
					original_tag = ARG
					original_tag = CHL 
				}
			}
		
			available = {
				has_completed_focus = SMB_naval_foreign_advisors
				any_country = {
					original_tag = FRA
					exists = yes
					NOT = {
						has_war_with = ROOT
					}
				}
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_french_naval_advisors_completed
						has_country_flag = JUNO_already_invited_italian_naval_advisors_completed
						has_country_flag = JUNO_already_invited_german_naval_advisors_completed
					}
				} 
				custom_trigger_tooltip = {
					tooltip = has_french_ideology
					OR = {
						AND = {
							FRA = {
								has_government = fascism
							}
							NOT = {
								has_government = communism
								has_government = democratic
							}
						}
						AND = {
							FRA = {
								has_government = democratic
							}
							NOT = {
								has_government = fascism
							}
						}
						AND = {
							FRA = {
								has_government = communism
							}
							NOT = {
								has_government = fascism
								has_government = neutrality
							}
						}
						AND = {
							FRA = {
								has_government = neutrality
							}
							NOT = {
								has_government = communism
								has_government = democratic
								has_government = fascism
							}
						}
					}
				}
			}

			visible = { 
				has_completed_focus = SMB_naval_foreign_advisors
				NOT = {
					OR = {
						has_country_flag = JUNO_already_invited_french_naval_advisors_removed
						has_country_flag = JUNO_already_invited_italian_naval_advisors_removed
						has_country_flag = JUNO_already_invited_german_naval_advisors_removed
					}
				}
			}

			days_remove = 70

			cost = 50

			complete_effect = { 
				hidden_effect = {
					set_country_flag = JUNO_already_invited_french_naval_advisors_completed
				}
			}

			remove_effect = {
				
				IF = {
					limit = {
						original_tag = CHL
					}
					custom_effect_tooltip = CHL_modify_chilean_navy_ns_intro
					SMB_naval_fra_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = BRA
					}
					custom_effect_tooltip = BRA_modify_brazilian_navy_ns_intro
					SMB_naval_fra_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = ARG
					}
					custom_effect_tooltip = ARG_modify_argentine_navy_ns_intro
					SMB_naval_fra_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = PAR
					}
					custom_effect_tooltip = PAR_modify_paraguayan_navy_ns_intro
					SMB_naval_fra_advisors_effect = yes
				}
				ELSE_IF = {
					limit = {
						original_tag = URG
					}
					custom_effect_tooltip = URG_modify_uruguayan_navy_ns_intro
					SMB_naval_fra_advisors_effect = yes
				}
				ELSE = {
					custom_effect_tooltip = JUNO_modify_south_american_navy_ns_intro
					SMB_naval_fra_advisors_effect = yes
				}

				add_doctrine_cost_reduction = {
					cost_reduction = 0.75
					uses = 1
					category = cat_fleet_in_being
				}

				hidden_effect = {
					set_country_flag = JUNO_already_invited_french_naval_advisors_removed
				}
			}
		}
}

JUNO_promote_immigration_cat = {

	JUNO_promote_immigration_in_state_ITA = {


		icon = GFX_decision_SWI_support_humanitarian_efforts
	
		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				has_political_power > 300
			}
		}
	
		cost = 150
		fire_only_once = yes
	
		allowed = {
			AND = {
				OR = {
					original_tag = ARG
					original_tag = BRA
					original_tag = CHL
				}
			}
		}
	
		available = {
			has_country_flag = JUNO_promote_immigration_flag
			NOT = {
				has_country_flag = JUNO_promote_immigration_ongoing
				has_country_flag = JUNO_ITA_immigration_completed
			}
		}
	
	
		visible = {
			has_country_flag = JUNO_promote_immigration_flag
			NOT = {
				has_country_flag = JUNO_ITA_immigration_completed
			}
		}

		on_map_mode = decision_view_only

		state_target = yes

		targets = {
			500 501 499 # BRA
		    278 956 512 # ARG
			950 949 507 # CHL
		}

		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = {
					has_state_flag = JUNO_promote_immigration_complete
				}
				if = {
					limit = {
						ROOT = {
							original_tag = BRA
						}
					}
					OR = {
						state = 500
						state = 501
						state = 499
					}
				}

				else_if = {
					limit = {
						ROOT = {
							original_tag = ARG
						}
					}
					OR = {
						state = 278
						state = 956
						state = 512
					}
				}

				else_if = {
					limit = {
						ROOT = {
							original_tag = CHL
						}
					}
					OR = {
						state = 950
						state = 949
						state = 507
					}
				}
			}
		}

		days_remove = 20

		complete_effect = {
			set_country_flag = JUNO_promote_immigration_ongoing
			set_country_flag = JUNO_ITA_immigration_completed
			ITA = {
				add_opinion_modifier = {
   					target = ROOT
  					modifier = JUNO_promoted_immigration
  				}	
			}

			custom_effect_tooltip = JUNO_promote_immigration_in_state_tt
		}
	
		remove_effect = {
			clr_country_flag = JUNO_promote_immigration_ongoing

			FROM = {
				add_dynamic_modifier = {
					modifier = JUNO_immigration_promoted
				}
				set_state_flag = JUNO_promote_immigration_complete
			}
		}
	}

	JUNO_promote_immigration_in_state_JAP = {


		icon = GFX_decision_SWI_support_humanitarian_efforts
	
		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				has_political_power > 300
			}
		}
	
		cost = 150
		fire_only_once = yes
	
		allowed = {
			original_tag = BRA
		}
	
		available = {
			has_country_flag = JUNO_promote_immigration_flag
			NOT = {
				has_country_flag = JUNO_promote_immigration_ongoing
				has_country_flag = JUNO_JAP_immigration_completed
			}
		}
	
	
		visible = {
			has_country_flag = JUNO_promote_immigration_flag
			NOT = {
				has_country_flag = JUNO_JAP_immigration_completed
			}
		}

		on_map_mode = decision_view_only

		state_target = yes
		targets = { 500 501 499 }

		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = {
					has_state_flag = JUNO_promote_immigration_complete
				}
				OR = {
					state = 500
					state = 501
					state = 499
				}
			}
		}

		days_remove = 20

		complete_effect = {
			set_country_flag = JUNO_promote_immigration_ongoing
			set_country_flag = JUNO_JAP_immigration_completed
			JAP = {
				add_opinion_modifier = {
   					target = ROOT
  					modifier = JUNO_promoted_immigration
  				}	
			}
			custom_effect_tooltip = JUNO_promote_immigration_in_state_tt
		}
	
		remove_effect = {
			clr_country_flag = JUNO_promote_immigration_ongoing

			FROM = {
				add_dynamic_modifier = {
					modifier = JUNO_immigration_promoted
				}
				set_state_flag = JUNO_promote_immigration_complete
			}
		}
	}

	JUNO_promote_immigration_in_state_POR = {


		icon = GFX_decision_SWI_support_humanitarian_efforts
	
		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				has_political_power > 300
			}
		}
	
		cost = 150
		fire_only_once = yes
	
		allowed = {
			original_tag = BRA
		}
	
		available = {
			has_country_flag = JUNO_promote_immigration_flag
			NOT = {
				has_country_flag = JUNO_promote_immigration_ongoing
				has_country_flag = JUNO_POR_immigration_completed
			}
		}
	
	
		visible = {
			has_country_flag = JUNO_promote_immigration_flag

			NOT = {
				has_country_flag = JUNO_POR_immigration_completed
			}
		}

		on_map_mode = decision_view_only

		state_target = yes
		targets = { 500 501 499 }

		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = {
					has_state_flag = JUNO_promote_immigration_complete
				}
				OR = {
					state = 500
					state = 501
					state = 499
				}
			}
		}

		days_remove = 20

		complete_effect = {
			set_country_flag = JUNO_promote_immigration_ongoing
			set_country_flag = JUNO_POR_immigration_completed
			POR = {
				add_opinion_modifier = {
   					target = ROOT
  					modifier = JUNO_promoted_immigration
  				}	
			}
			custom_effect_tooltip = JUNO_promote_immigration_in_state_tt
		}
	
		remove_effect = {
			clr_country_flag = JUNO_promote_immigration_ongoing

			FROM = {
				add_dynamic_modifier = {
					modifier = JUNO_immigration_promoted
				}
				set_state_flag = JUNO_promote_immigration_complete
			}
		}
	}


	

	JUNO_promote_immigration_in_state_GER = {


		icon = GFX_decision_SWI_support_humanitarian_efforts
	
		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				has_political_power > 300
			}
		}
	
		cost = 150
		fire_only_once = yes
	
		allowed = {
			AND = {
				OR = {
					original_tag = ARG
					original_tag = CHL
				}
			}
		}
	
		available = {
			has_country_flag = JUNO_promote_immigration_flag
			NOT = {
				has_country_flag = JUNO_promote_immigration_ongoing
				has_country_flag = JUNO_GER_immigration_completed
			}
		}
	
	
		visible = {
			has_country_flag = JUNO_promote_immigration_flag

			NOT = {
				has_country_flag = JUNO_GER_immigration_completed
			}
		}

		on_map_mode = decision_view_only

		state_target = yes

		targets = {
			278 956 512 # ARG
			279 950 949 # CHL
		}

		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = {
					has_state_flag = JUNO_promote_immigration_complete
				}

				if = {
					limit = {
						ROOT = {
							original_tag = ARG
						}
					}
					OR = {
						state = 278
						state = 956
						state = 512
					}
				}

				else_if = {
					limit = {
						ROOT = {
							original_tag = CHL
						}
					}
					OR = {
						state = 279
						state = 950
						state = 949
					}
				}
			}
		}

		days_remove = 20

		complete_effect = {
			set_country_flag = JUNO_promote_immigration_ongoing
			set_country_flag = JUNO_GER_immigration_completed
			GER = {
				add_opinion_modifier = {
   					target = ROOT
  					modifier = JUNO_promoted_immigration
  				}	
			}
			custom_effect_tooltip = JUNO_promote_immigration_in_state_tt
		}
	
		remove_effect = {
			clr_country_flag = JUNO_promote_immigration_ongoing

			FROM = {
				add_dynamic_modifier = {
					modifier = JUNO_immigration_promoted
				}
				set_state_flag = JUNO_promote_immigration_complete
			}
		}
	}

	JUNO_promote_immigration_in_state_SPR = {


		icon = GFX_decision_SWI_support_humanitarian_efforts
	
		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				has_political_power > 300
			}
		}
	
		cost = 150
		fire_only_once = yes
	
		allowed = {
			AND = {
				OR = {
					original_tag = CHL
				}
			}
		}
	
		available = {
			has_country_flag = JUNO_promote_immigration_flag
			NOT = {
				has_country_flag = JUNO_promote_immigration_ongoing
				has_country_flag = JUNO_SPR_immigration_completed
			}
		}
	
	
		visible = {
			has_country_flag = JUNO_promote_immigration_flag

			NOT = {
				has_country_flag = JUNO_SPR_immigration_completed
			}
		}

		on_map_mode = decision_view_only

		state_target = yes
		targets = { 279 949 507 }

		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = {
					has_state_flag = JUNO_promote_immigration_complete
				}

				if = {
					limit = {
						ROOT = {
							original_tag = CHL
						}
					}
					OR = {
						state = 279
						state = 949
						state = 507
					}
				}
			}
		}

		days_remove = 20

		complete_effect = {
			set_country_flag = JUNO_promote_immigration_ongoing
			set_country_flag = JUNO_SPR_immigration_completed
			SPR = {
				add_opinion_modifier = {
   					target = ROOT
  					modifier = JUNO_promoted_immigration
  				}	
			}
			custom_effect_tooltip = JUNO_promote_immigration_in_state_tt
		}
	
		remove_effect = {
			clr_country_flag = JUNO_promote_immigration_ongoing

			FROM = {
				add_dynamic_modifier = {
					modifier = JUNO_immigration_promoted
				}
				set_state_flag = JUNO_promote_immigration_complete
			}
		}
	}

	JUNO_promote_immigration_in_state_ENG = {


		icon = GFX_decision_SWI_support_humanitarian_efforts
	
		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				has_political_power > 300
			}
		}
	
		cost = 150
		fire_only_once = yes
	
		allowed = {
			AND = {
				OR = {
					original_tag = ARG
				}
			}
		}
	
		available = {
			has_country_flag = JUNO_promote_immigration_flag
			NOT = {
				has_country_flag = JUNO_promote_immigration_ongoing
				has_country_flag = JUNO_ENG_immigration_completed
			}
		}
	
	
		visible = {
			has_country_flag = JUNO_promote_immigration_flag

			NOT = {
				has_country_flag = JUNO_ENG_immigration_completed
			}
		}

		on_map_mode = decision_view_only

		state_target = yes

		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = {
					has_state_flag = JUNO_promote_immigration_complete
				}

				if = {
					limit = {
						ROOT = {
							original_tag = ARG
						}
					}
					OR = {
						state = 278
						state = 956
						state = 512
					}
				}
			}
		}

		days_remove = 20

		complete_effect = {
			set_country_flag = JUNO_promote_immigration_ongoing
			set_country_flag = JUNO_ENG_immigration_completed
			ENG = {
				add_opinion_modifier = {
   					target = ROOT
  					modifier = JUNO_promoted_immigration
  				}	
			}
			custom_effect_tooltip = JUNO_promote_immigration_in_state_tt
		}
	
		remove_effect = {
			clr_country_flag = JUNO_promote_immigration_ongoing

			FROM = {
				add_dynamic_modifier = {
					modifier = JUNO_immigration_promoted
				}
				set_state_flag = JUNO_promote_immigration_complete
			}
		}
	}
}



political_actions = {
	TOA_blockade_ven = {
		icon = generic_naval
		priority = -1
		ai_will_do = { 
			base = 0 #we like to kill Venezuela
			modifier = {
				add = 10
				OR = {
					tag = USA
					has_war = yes
				}
				world_war_is_active = yes
			}
		}
	
		cost = 25
		fire_only_once = no
		days_re_enable = 180
		allowed = {
			always = yes
		}

		visible = {
			threat > 0.2
			VEN = {
				exists = yes
				NOT = { has_government = ROOT }
			}
			NOT = {
				has_war_with = VEN
				original_tag = VEN
			}
			OR = {	
				has_navy_size = {
					size > 1 # Use < or >
					type = capital_ship # optional<INT>
				}	
				has_navy_size = {
					size > 9 # Use < or >
					type = screen_ship # optional<INT>
				}	
				has_navy_size = {
					size > 14 # Use < or >
					type = submarine # optional<INT>
				}
			}
			NOT = {
				is_in_array = {
					array = global.ven_blockade_countries
					value = ROOT
				}
			}
		}

		available = {
			VEN = {
				NOT = { has_government = ROOT }
			}
			threat > 0.45
			OR = {
				ships_in_area = {
					area = 53
					type = capital_ship
					size > 1
				}
				ships_in_area = {
					area = 53
					type = screen_ship
					size > 9
				}
				ships_in_area = {
					area = 53
					type = submarine
					size > 14
				}
			}
		}

		complete_effect = {
			add_to_array = {
				array = global.ven_blockade_countries
				value = ROOT
			}
			if = {
				limit = {
					NOT = {
						has_idea = idea_VEN_blockade_active
					}
				}
				VEN = { 
					swap_ideas = {
						remove_idea = idea_VEN_blockade_inactive
						add_idea = idea_VEN_blockade_active
					}
				}
			}

			ITA = { save_event_target_as = blockade_target }
			VEN_blockade_countries = yes

			GER = { save_event_target_as = blockade_target }
			VEN_blockade_countries = yes

			JAP = { save_event_target_as = blockade_target }
			VEN_blockade_countries = yes

			ENG = { save_event_target_as = blockade_target }
			VEN_blockade_countries = yes

			FRA = { save_event_target_as = blockade_target }
			VEN_blockade_countries = yes

			USA = { save_event_target_as = blockade_target }
			VEN_blockade_countries = yes

			if = {
				limit = {
					SOV = { #somethig something Stalin allies something special rules I hate it
						has_government = communism
					}
					ROOT = {
						NOT = { has_government = communism }
						NOT = { has_government = democratic }
						NOT = { has_war_with = SOV }
					}
				}

				SOV = { save_event_target_as = blockade_target }
				VEN_blockade_countries = yes
			}

			every_country = {
				limit = {
					OR = {
						is_major = yes
						is_faction_leader = yes
					}
					NOT = {
						original_tag = GER
						original_tag = ITA
						original_tag = JAP
						original_tag = ENG
						original_tag = FRA
						original_tag = USA
						original_tag = SOV

					}
				}
				save_event_target_as = blockade_target
				VEN_blockade_countries = yes
			}

		}
	}
}


				#if = {
				#	limit = {
				#		ROOT = {
				#			has_war_with = GER   
				#		}
				#		GER = { NOT = { has_government = ROOT } }
				#	}
				#	VEN = { 
				#		send_embargo = GER 
				#		add_to_array = {
				#			array = global.ven_countries_that_are_under_embargo
				#			value = GER
				#		}
				#	}
				#	if = {
				#		limit = {
				#			GER = { is_in_faction = yes }
				#		}
				#		every_country = {
				#			limit = {
				#				NOT = { is_embargoed_by = VEN }
				#				OR = {
				#					is_in_faction_with = GER
				#					is_subject_of = GER
				#				}
				#			}
				#			add_to_array = {
				#				array = global.ven_countries_that_are_under_embargo
				#				value = THIS
				#			}
#
				#			VEN = { send_embargo = PREV }
				#		}
				#	}
				#}
#
				#if = {
				#	limit = {
				#		ROOT = {
				#			has_war_with = JAP   
				#		}
				#	}
				#	VEN = { 
				#		send_embargo = JAP 
				#		add_to_array = {
				#			array = global.ven_countries_that_are_under_embargo
				#			value = JAP
				#		}
				#	}
				#	if = {
				#		limit = {
				#			JAP = { is_in_faction = yes }
				#		}
				#		every_country = {
				#			limit = {
				#				NOT = { is_embargoed_by = VEN }
				#				OR = {
				#					is_in_faction_with = JAP
				#					is_subject_of = JAP
				#				}
				#			}
				#			add_to_array = {
				#				array = global.ven_countries_that_are_under_embargo
				#				value = THIS
				#			}
				#			VEN = { send_embargo = PREV }
				#		}
				#	}
				#}
#
				#if = {
				#	limit = {
				#		ROOT = {
				#			has_war_with = FRA   
				#		}
				#	}
				#	VEN = { 
				#		send_embargo = FRA 
				#		add_to_array = {
				#			array = global.ven_countries_that_are_under_embargo
				#			value = FRA
				#		}
				#	}
				#	if = {
				#		limit = {
				#			FRA = { is_in_faction = yes }
				#		}
				#		every_country = {
				#			limit = {
				#				NOT = { is_embargoed_by = VEN }
				#				OR = {
				#					is_in_faction_with = FRA
				#					is_subject_of = FRA
				#				}
				#			}
				#			add_to_array = {
				#				array = global.ven_countries_that_are_under_embargo
				#				value = THIS
				#			}
				#			VEN = { send_embargo = PREV }
				#		}
				#	}
				#}
#
				#if = {
				#	VEN = { 
				#		send_embargo = ENG 
				#		add_to_array = {
				#			array = global.ven_countries_that_are_under_embargo
				#			value = ENG
				#		}
				#	}
				#	if = {
				#		limit = {
				#			ENG = { is_in_faction = yes }
				#		}
				#		every_country = {
				#			limit = {
				#				NOT = { is_embargoed_by = VEN }
				#				OR = {
				#					is_in_faction_with = ENG
				#					is_subject_of = ENG
				#				}
				#			}
				#			add_to_array = {
				#				array = global.ven_countries_that_are_under_embargo
				#				value = THIS
				#			}
				#			VEN = { send_embargo = PREV }
				#		}
				#	}
				#}
			#}