ARG_category_unify_with_paraguay = { 

 propagandize_the_unification = { 
		
		icon = eng_propaganda_campaigns

		allowed = {
			
		}

		available = {
		    PAR = { is_in_faction_with = ARG }
			has_government = communism
			has_completed_focus = ARG_unify_with_paraguay
			NOT = { has_country_flag = paraguayan_unification_ongoing_flag }
		}

		visible = {
		PAR = { exists = yes }
		has_completed_focus = ARG_unify_with_paraguay
				NOT = {
					has_country_flag = PAR_unification_propagandized
				}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 25

		modifier = {
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = paraguayan_unification_ongoing_flag
		}
		
		remove_effect = { 
		clr_country_flag = paraguayan_unification_ongoing_flag
			set_country_flag = PAR_unification_propagandized
			PAR = { add_stability = -0.1 }
		}
	}
	
 negotiate_with_paraguays_president = { 
		
		icon = eng_trade_unions_support

		allowed = {
			
		}

		available = {
		    PAR = { is_in_faction_with = ARG }
			has_government = communism
			has_completed_focus = ARG_unify_with_paraguay
			 has_country_flag = PAR_unification_propagandized
			NOT = { has_country_flag = paraguayan_unification_ongoing_flag }
		}

		visible = {
		PAR = { exists = yes }
		has_completed_focus = ARG_unify_with_paraguay
				NOT = {
					has_country_flag = PAR_unification_deal
				}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 25

		modifier = {
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = paraguayan_unification_ongoing_flag
		}
		
		remove_effect = { 
		clr_country_flag = paraguayan_unification_ongoing_flag
			set_country_flag = PAR_unification_deal
			PAR = { add_stability = -0.1 }
		}
	}

 stich_the_paraguayan_army = { 
		
		icon = generic_army_support

		allowed = {
			
		}

		available = {
		    PAR = { is_in_faction_with = ARG }
			has_government = communism
			has_completed_focus = ARG_unify_with_paraguay
			has_country_flag = PAR_unification_deal
			has_equipment = {
            infantry_equipment > 1499
            }
			NOT = { has_country_flag = paraguayan_unification_ongoing_flag }
		}

		visible = {
		PAR = { exists = yes }
		has_completed_focus = ARG_unify_with_paraguay
				NOT = {
					has_country_flag = paraguayan_army_stitched
				}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 20

		modifier = {
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = paraguayan_unification_ongoing_flag
			send_equipment = {
          equipment = infantry_equipment
           amount = 1500
           target = PAR
            }
		}
		
		remove_effect = { 
		clr_country_flag = paraguayan_unification_ongoing_flag
			set_country_flag = paraguayan_army_stitched
			
		}
	}
	
	annex_paraguay = { 
		
		icon = generic_operation

		allowed = {
			
		}

		available = {
		    PAR = { is_in_faction_with = ARG }
			has_government = communism
			has_completed_focus = ARG_unify_with_paraguay
			has_country_flag = paraguayan_army_stitched
			NOT = { has_country_flag = paraguayan_unification_ongoing_flag }
		}

		visible = {
		PAR = { exists = yes }
		has_completed_focus = ARG_unify_with_paraguay
				NOT = {
					has_country_flag = paraguay_annexed
				}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 25

		modifier = {
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = paraguayan_unification_ongoing_flag
		}
		
		remove_effect = { 
		clr_country_flag = paraguayan_unification_ongoing_flag
			set_country_flag = paraguay_annexed
			
			annex_country = {
              target = PAR
              transfer_troops = yes
                }
			PAR = { every_unit_leader = { set_nationality = ARG } }
		}
	}
	
 win_the_peopels_support = { 
		
		icon = hol_exchange_intelligence_data

		allowed = {
			
		}

		available = {
			has_government = communism
			has_completed_focus = ARG_unify_with_paraguay
			has_country_flag = paraguay_annexed
			NOT = { has_country_flag = paraguayan_unification_ongoing_flag }
		}

		visible = {
		has_completed_focus = ARG_unify_with_paraguay
				NOT = {
					has_country_flag = paraguay_fully_annexed
				}
		}

		fire_only_once = yes

		cost = 10
		days_remove = 30

		modifier = {
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = paraguayan_unification_ongoing_flag
		}
		
		remove_effect = { 
		clr_country_flag = paraguayan_unification_ongoing_flag
			set_country_flag = paraguay_fully_annexed
			every_state = {
				limit = {
					AND = {
						is_core_of = PAR
						NOT = { is_core_of = ARG }
					}
				}
				add_core_of = ARG
			}
			
		}
	}

}

ARG_category_leaders_of_southamerica_invites = {


    ARG_decision_invite_tag_to_fascist_alliance_2 = {
	
		icon = generic_political_discourse
		
		fire_only_once = no
		
		days_remove = 50

		allowed = {
			original_tag = ARG
		}
		
		visible = {
			is_faction_leader = yes
			has_completed_focus = ARG_an_unholy_alliance
		}
		
		target_root_trigger = {
				has_completed_focus = ARG_an_unholy_alliance
		}

		target_trigger = {
			FROM = {
				NOT = { is_in_faction_with = ROOT }
				OR = {
				tag = PRU
				tag = VEN
				tag = ELS
				tag = DOM
				}
			}
        }

		available = {
			OR = {
				has_opinion = {
					target = FROM
					value > 49
				}
				FROM = {
					has_opinion = {
						target = ROOT
						value > 49
					}
					has_government = fascism
				}
			}
			FROM = {
				is_in_faction = no
				is_subject = no
			}

		}

		cost = 25
		
		complete_effect = {
			FROM = {
				country_event = {
					id = southamerica.2
				}				
			}
		}
		
		ai_will_do = {
			factor = 100
		}
	}

	ARG_decision_invite_tag_to_fascist_alliance = {
	
		icon = generic_political_discourse
		
		fire_only_once = no
		
		days_remove = 50

		allowed = {
			original_tag = ARG
		}
		
		visible = {
			is_faction_leader = yes
			has_completed_focus = ARG_invite_our_neighbours
		}
		
		target_root_trigger = {
				has_completed_focus = ARG_an_unholy_alliance
		}

		target_trigger = {
			FROM = {
				NOT = { is_in_faction_with = ROOT }
				OR = {
				tag = CHL
				tag = PAR
				tag = URG
				tag = BOL
				}
			}
        }

		available = {
			OR = {
				has_opinion = {
					target = FROM
					value > 49
				}
				FROM = {
					has_opinion = {
						target = ROOT
						value > 49
					}
					fascism > 0.39
				}
			}
			FROM = {
				is_in_faction = no
				is_subject = no
			}

		}

		cost = 25
		
		complete_effect = {
			FROM = {
				country_event = {
					id = southamerica.3
				}				
			}
		}
		
		ai_will_do = {
			factor = 100
		}
	}
	
	
}


ARG_category_southamerican_union_invites = {


    ARG_decision_invite_tag_to_communist_alliance = {
	
		icon = generic_political_discourse
		
		fire_only_once = no
		
		days_remove = 50

		allowed = {
			original_tag = ARG
		}
		
		visible = {
			is_faction_leader = yes
			has_completed_focus = ARG_expand_our_union
		}
		
		target_root_trigger = {
				has_completed_focus = ARG_expand_our_union
		}

		target_trigger = {
			FROM = {
				NOT = { is_in_faction_with = ROOT }
				OR = {
				tag = PRU
				tag = URG
				tag = BOL
				}
			}
        }

		available = {
			OR = {
				has_opinion = {
					target = FROM
					value > 49
				}
				FROM = {
					has_opinion = {
						target = ROOT
						value > 49
					}
					communism > 0.39
				}
			}
			FROM = {
				is_in_faction = no
				is_subject = no
			}

		}

		cost = 25
		
		complete_effect = {
			FROM = {
				country_event = {
					id = southamerica.event_1
				}				
			}
		}
		
		ai_will_do = {
			factor = 100
		}
	}
}

ARG_united_south_america = {


    ARG_decision_push_for_closer_relations = {
	
		icon = generic_political_discourse
		
		fire_only_once = no
		
		days_remove = 90

		allowed = {
			original_tag = ARG
		}
		
		visible = {
			is_faction_leader = yes
			has_completed_focus = ARG_push_for_closer_relations
		}
		
		target_root_trigger = {
				has_completed_focus = ARG_push_for_closer_relations
		}

		target_trigger = {
			FROM = {
			NOT = { is_subject_of = ROOT }
				is_in_faction_with = ROOT 
				OR = {
				tag = PRU
				tag = PAR
				tag = URG
				tag = BOL
				tag = CHL
				tag = BRA
				tag = ECU
				tag = VEN
				tag = COL
				}
			}
        }

		available = {
			OR = {
				has_opinion = {
					target = FROM
					value > 49
				}
				FROM = {
					has_opinion = {
						target = ROOT
						value > 49
					}
					communism > 0.2
				}
			}
			FROM = {
				is_in_faction_with = ROOT
				NOT = { is_subject_of = ROOT }
			}

		}

		cost = 75
		
		complete_effect = {
			FROM = {
				country_event = {
					id = southamerica.6
				}				
			}
		}
		
		ai_will_do = {
			factor = 100
		}
	}
}



ARG_develop_new_plants = {

	develop_mendoza_aluminium_deposits = { #511
		
		icon = aluminium

		allowed = {
			
		}
         
		highlight_states = {
		highlight_state_targets = {
			state = 511
		}
		}

		available = {
			has_completed_focus = ARG_bauxite_sources
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 511
			controls_state = 511
			has_tech = excavation3
		}

		visible = {
		has_completed_focus = ARG_bauxite_sources
			owns_state = 511
			controls_state = 511
			511 = {
				NOT = {
					has_state_flag = mendoza_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 70

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			511 = { set_state_flag = mendoza_aluminium_developed } 
			511 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
		}
	}
	
	develop_catamarca_aluminium_deposits = { #508
		
		icon = aluminium

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 508
		}
		}

		available = {
			has_completed_focus = ARG_bauxite_sources
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 508
			controls_state = 508
			has_tech = excavation2
		}

		visible = {
		has_completed_focus = ARG_bauxite_sources
			owns_state = 508
			controls_state = 508
			508 = {
				NOT = {
					has_state_flag = catamarca_aluminium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			508 = { set_state_flag = catamarca_aluminium_developed } 
			508 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
		}
	}
	
	develop_mendoza_chromium_deposits = { #511
		
		icon = chromium

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 511
		}
		}

		available = {
			has_completed_focus = ARG_chromium_sources
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 511
			controls_state = 511
			has_tech = excavation2
		}

		visible = {
		has_completed_focus = ARG_chromium_sources
			owns_state = 511
			controls_state = 511
			511 = {
				NOT = {
					has_state_flag = mendoza_chromium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			511 = { set_state_flag = mendoza_chromium_developed } 
			511 = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}
	}
	
	develop_catamarca_chromium_deposits = { #508
		
		icon = chromium

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 508
		}
		}

		available = {
			has_completed_focus = ARG_chromium_sources
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 508
			controls_state = 508
			has_tech = excavation3
		}

		visible = {
		has_completed_focus = ARG_chromium_sources
			owns_state = 508
			controls_state = 508
			508 = {
				NOT = {
					has_state_flag = catamarca_chromium_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 70

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			508 = { set_state_flag = catamarca_chromium_developed } 
			508 = {
				add_resource = {
					type = chromium
					amount = 10
				}
			}
		}
	}
	
	
	
	
}

ARG_ypf_expansions = { 
	
	develop_falklands_oil_field = { #299
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 299
		}
		}

		available = {
			has_completed_focus = ARG_the_ypf
			has_completed_focus = ARG_searching_for_oil_on_the_falklands_coast
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 299
			controls_state = 299
			has_tech = excavation3
		}

		visible = {
		has_completed_focus = ARG_searching_for_oil_on_the_falklands_coast
			owns_state = 299
			controls_state = 299
			299 = {
				NOT = {
					has_state_flag = falklands_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			299 = { set_state_flag = falklands_oil_developed } 
			299 = {
				add_resource = {
					type = oil
					amount = 16
				}
			}
		}
	}
	
	develop_salta_oil_field = { #931
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 931
		}
		}

		available = {
			has_completed_focus = ARG_the_ypf
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 931
			controls_state = 931
			has_tech = excavation2
		}

		visible = {
		has_completed_focus = ARG_the_ypf
			owns_state = 931
			controls_state = 931
			931 = {
				NOT = {
					has_state_flag = salta_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			931 = { set_state_flag = salta_oil_developed } 
			931 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
	
	develop_chaco_oil_field = { #509
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 509
		}
		}

		available = {
			has_completed_focus = ARG_the_ypf
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 509
			controls_state = 509
			has_tech = excavation2
		}

		visible = {
		has_completed_focus = ARG_the_ypf
			owns_state = 509
			controls_state = 509
			509 = {
				NOT = {
					has_state_flag = chaco_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			509 = { set_state_flag = chaco_oil_developed } 
			509 = {
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}
	
	expand_santa_cruz_oil_field = { #512
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 512
		}
		}

		available = {
			has_completed_focus = ARG_expand_the_oilfields
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 512
			controls_state = 512
			has_tech = excavation4
		}

		visible = {
		has_completed_focus = ARG_expand_the_oilfields
			owns_state = 512
			controls_state = 512
			512 = {
				NOT = {
					has_state_flag = santacruz_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			512 = { set_state_flag = santacruz_oil_developed } 
			512 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}
	}
	
	expand_chubut_oil_field = { #932
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 932
		}
		}

		available = {
			has_completed_focus = ARG_expand_the_oilfields
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 932
			controls_state = 932
			has_tech = excavation4
		}

		visible = {
		has_completed_focus = ARG_expand_the_oilfields
			owns_state = 932
			controls_state = 932
			932 = {
				NOT = {
					has_state_flag = chubut_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			932 = { set_state_flag = chubut_oil_developed } 
			932 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
		}
	}
	
	expand_magallanes_oil_field = { #507
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 507
		}
		}

		available = {
			has_completed_focus = ARG_expand_the_oilfields
			num_of_civilian_factories_available_for_projects > 4
			owns_state = 507
			controls_state = 507
			has_tech = excavation4
		}

		visible = {
		has_completed_focus = ARG_expand_the_oilfields
			owns_state = 507
			controls_state = 507
			507 = {
				NOT = {
					has_state_flag = magallanes_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			507 = { set_state_flag = magallanes_oil_developed } 
			507 = {
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}
	}
	
	expand_neuquen_oil_field = { #936
		
		icon = oil

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 936
		}
		}

		available = {
		custom_trigger_tooltip = {
				tooltip = neuquen_basin_research_tt
				has_country_flag = neuquen_expansion_recessed
			}
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 936
			controls_state = 936
			has_tech = excavation3
		}

		visible = {
		has_country_flag = neuquen_expansion_recessed
			owns_state = 936
			controls_state = 936
			936 = {
				NOT = {
					has_state_flag = neuquen_oil_developed
				}
			}
		}

		fire_only_once = yes

		cost = 50
		days_remove = 90

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			936 = { set_state_flag = neuquen_oil_developed } 
			936 = {
				add_resource = {
					type = oil
					amount = 32
				}
			}
		}
	}
	
	 develop_santafe_rubber_farms = { #510
		
		icon = rubber

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 510
		}
		}

		available = {
			has_completed_focus = ARG_form_a_rubber_department
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 510
			controls_state = 510
		}

		visible = {
		has_completed_focus = ARG_form_a_rubber_department
			owns_state = 510
			controls_state = 510
			510 = {
				NOT = {
					has_state_flag = santafe_rubber_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			510 = { set_state_flag = santafe_rubber_developed } 
			510 = {
				add_resource = {
					type = rubber
					amount = 12
				}
			}
		}
	}
	
	develop_chaco_rubber_farms = { #509
		
		icon = rubber

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 509
		}
		}

		available = {
			has_completed_focus = ARG_form_a_rubber_department
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 509
			controls_state = 509
		}

		visible = {
		has_completed_focus = ARG_form_a_rubber_department
			owns_state = 509
			controls_state = 509
			509 = {
				NOT = {
					has_state_flag = chaco_rubber_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			509 = { set_state_flag = chaco_rubber_developed } 
			509 = {
				add_resource = {
					type = rubber
					amount = 12
				}
			}
		}
	}
	
	develop_paraguari_rubber_farms = { #301
		
		icon = rubber

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 301
		}
		}

		available = {
			has_completed_focus = ARG_form_a_rubber_department
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 301
			controls_state = 301
		}

		visible = {
		has_completed_focus = ARG_form_a_rubber_department
			owns_state = 301
			controls_state = 301
			301 = {
				NOT = {
					has_state_flag = paraguari_rubber_developed
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 4
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			301 = { set_state_flag = paraguari_rubber_developed } 
			301 = {
				add_resource = {
					type = rubber
					amount = 16
				}
			}
		}
	}
	
	
}

ARG_integrate_immigrants = { 

    #######German##############

   governmental_paid_spanish_courses = { #278
		
		icon = eng_trade_unions_support

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 278
		}
		}

		available = {
		NOT = { has_country_flag = ARG_integrate_immigrants_ongoing_flag }
		has_completed_focus = ARG_controlled_immigration
		num_of_civilian_factories_available_for_projects > 1
			owns_state = 278
			controls_state = 278
		}

		visible = {
		has_completed_focus = ARG_controlled_immigration
			owns_state = 278
			controls_state = 278
			278 = {
				NOT = {
					has_state_flag = buenos_aires_spanish_courses
				}
			}
		}

		fire_only_once = yes

		cost = 30
		days_remove = 120

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = ARG_integrate_immigrants_ongoing_flag
		}
		
		
		remove_effect = { 
		clr_country_flag = ARG_integrate_immigrants_ongoing_flag
			278 = { set_state_flag = buenos_aires_spanish_courses } 
		if = {
		limit = { has_idea = ARG_german_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_german_immigrants_2
          add_idea = ARG_german_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_german_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_german_immigrants_3
          add_idea = ARG_german_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_german_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_german_immigrants_4
          add_idea = ARG_german_immigrants_3
             }
			 }
		###Croatian##############
		if = {
		limit = { has_idea = ARG_croatian_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_croatian_immigrants_2
          add_idea = ARG_croatian_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_croatian_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_croatian_immigrants_3
          add_idea = ARG_croatian_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_croatian_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_croatian_immigrants_4
          add_idea = ARG_croatian_immigrants_3
             }
			 }
			 
		###Spanish##############
		if = {
		limit = { has_idea = ARG_spanish_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_spanish_immigrants_2
          add_idea = ARG_spanish_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_spanish_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_spanish_immigrants_3
          add_idea = ARG_spanish_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_spanish_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_spanish_immigrants_4
          add_idea = ARG_spanish_immigrants_3
             }
			 }
			 
		###French##############
		if = {
		limit = { has_idea = ARG_french_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_french_immigrants_2
          add_idea = ARG_french_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_french_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_french_immigrants_3
          add_idea = ARG_french_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_french_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_french_immigrants_4
          add_idea = ARG_french_immigrants_3
             }
			 }
			 
		###Greek##############
		if = {
		limit = { has_idea = ARG_greek_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_greek_immigrants_2
          add_idea = ARG_greek_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_greek_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_greek_immigrants_3
          add_idea = ARG_greek_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_greek_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_greek_immigrants_4
          add_idea = ARG_greek_immigrants_3
             }
			 }
			 
		###Bulgarian##############
		if = {
		limit = { has_idea = ARG_bulgarian_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_bulgarian_immigrants_2
          add_idea = ARG_bulgarian_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_bulgarian_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_bulgarian_immigrants_3
          add_idea = ARG_bulgarian_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_bulgarian_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_bulgarian_immigrants_4
          add_idea = ARG_bulgarian_immigrants_3
             }
			 }
			 
		###Dutch##############
		if = {
		limit = { has_idea = ARG_dutch_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_dutch_immigrants_2
          add_idea = ARG_dutch_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_dutch_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_dutch_immigrants_3
          add_idea = ARG_dutch_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_dutch_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_dutch_immigrants_4
          add_idea = ARG_dutch_immigrants_3
             }
			 }
			 
		###Belgian##############
		if = {
		limit = { has_idea = ARG_belgian_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_belgian_immigrants_2
          add_idea = ARG_belgian_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_belgian_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_belgian_immigrants_3
          add_idea = ARG_belgian_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_belgian_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_belgian_immigrants_4
          add_idea = ARG_belgian_immigrants_3
             }
			 }
			
		}
	}
	
	immigrant_schooling_program = { #510
		
		icon = generic_decision

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 510
		}
		}

		available = {
		NOT = { has_country_flag = ARG_integrate_immigrants_ongoing_flag }
		has_completed_focus = ARG_controlled_immigration
		num_of_civilian_factories_available_for_projects > 1
			owns_state = 510
			controls_state = 510
		}

		visible = {
		has_completed_focus = ARG_controlled_immigration
			owns_state = 510
			controls_state = 510
			510 = {
				NOT = {
					has_state_flag = santa_fe_schooling_program
				}
			}
		}

		fire_only_once = yes

		cost = 30
		days_remove = 120

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = ARG_integrate_immigrants_ongoing_flag
		}
		
		remove_effect = { 
		clr_country_flag = ARG_integrate_immigrants_ongoing_flag
			510 = { set_state_flag = santa_fe_schooling_program } 
		if = {
		limit = { has_idea = ARG_german_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_german_immigrants_2
          add_idea = ARG_german_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_german_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_german_immigrants_3
          add_idea = ARG_german_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_german_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_german_immigrants_4
          add_idea = ARG_german_immigrants_3
             }
			 }
			 
		###Croatian##############
		if = {
		limit = { has_idea = ARG_croatian_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_croatian_immigrants_2
          add_idea = ARG_croatian_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_croatian_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_croatian_immigrants_3
          add_idea = ARG_croatian_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_croatian_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_croatian_immigrants_4
          add_idea = ARG_croatian_immigrants_3
             }
			 }
			 
		###Spanish##############
		if = {
		limit = { has_idea = ARG_spanish_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_spanish_immigrants_2
          add_idea = ARG_spanish_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_spanish_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_spanish_immigrants_3
          add_idea = ARG_spanish_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_spanish_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_spanish_immigrants_4
          add_idea = ARG_spanish_immigrants_3
             }
			 }
			 
		###French##############
		if = {
		limit = { has_idea = ARG_french_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_french_immigrants_2
          add_idea = ARG_french_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_french_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_french_immigrants_3
          add_idea = ARG_french_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_french_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_french_immigrants_4
          add_idea = ARG_french_immigrants_3
             }
			 }
			 
		###Greek##############
		if = {
		limit = { has_idea = ARG_greek_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_greek_immigrants_2
          add_idea = ARG_greek_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_greek_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_greek_immigrants_3
          add_idea = ARG_greek_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_greek_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_greek_immigrants_4
          add_idea = ARG_greek_immigrants_3
             }
			 }
			 
		###Bulgarian##############
		if = {
		limit = { has_idea = ARG_bulgarian_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_bulgarian_immigrants_2
          add_idea = ARG_bulgarian_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_bulgarian_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_bulgarian_immigrants_3
          add_idea = ARG_bulgarian_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_bulgarian_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_bulgarian_immigrants_4
          add_idea = ARG_bulgarian_immigrants_3
             }
			 }
			 
		###Dutch##############
		if = {
		limit = { has_idea = ARG_dutch_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_dutch_immigrants_2
          add_idea = ARG_dutch_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_dutch_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_dutch_immigrants_3
          add_idea = ARG_dutch_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_dutch_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_dutch_immigrants_4
          add_idea = ARG_dutch_immigrants_3
             }
			 }
			 
		###Belgian##############
		if = {
		limit = { has_idea = ARG_belgian_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_belgian_immigrants_2
          add_idea = ARG_belgian_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_belgian_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_belgian_immigrants_3
          add_idea = ARG_belgian_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_belgian_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_belgian_immigrants_4
          add_idea = ARG_belgian_immigrants_3
             }
			 }
			
		}
	}
	
	integration_in_the_job_market = { #925
		
		icon = hol_attract_foreign_investors

		allowed = {
			
		}

		highlight_states = {
		highlight_state_targets = {
			state = 925
		}
		}

		available = {
		NOT = { has_country_flag = ARG_integrate_immigrants_ongoing_flag }
		has_completed_focus = ARG_controlled_immigration
		num_of_civilian_factories_available_for_projects > 1
			owns_state = 925
			controls_state = 925
		}

		visible = {
		has_completed_focus = ARG_controlled_immigration
			owns_state = 925
			controls_state = 925
			925 = {
				NOT = {
					has_state_flag = cordoba_job_market_integration
				}
			}
		}

		fire_only_once = yes

		cost = 30
		days_remove = 120

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = ARG_integrate_immigrants_ongoing_flag
		}
		
		remove_effect = { 
		clr_country_flag = ARG_integrate_immigrants_ongoing_flag
			925 = { set_state_flag = cordoba_job_market_integration } 
		if = {
		limit = { has_idea = ARG_german_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_german_immigrants_2
          add_idea = ARG_german_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_german_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_german_immigrants_3
          add_idea = ARG_german_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_german_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_german_immigrants_4
          add_idea = ARG_german_immigrants_3
             }
			 }
			 
		###Croatian##############
		if = {
		limit = { has_idea = ARG_croatian_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_croatian_immigrants_2
          add_idea = ARG_croatian_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_croatian_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_croatian_immigrants_3
          add_idea = ARG_croatian_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_croatian_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_croatian_immigrants_4
          add_idea = ARG_croatian_immigrants_3
             }
			 }
			 
		###Spanish##############
		if = {
		limit = { has_idea = ARG_spanish_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_spanish_immigrants_2
          add_idea = ARG_spanish_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_spanish_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_spanish_immigrants_3
          add_idea = ARG_spanish_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_spanish_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_spanish_immigrants_4
          add_idea = ARG_spanish_immigrants_3
             }
			 }
			 
		###French##############
		if = {
		limit = { has_idea = ARG_french_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_french_immigrants_2
          add_idea = ARG_french_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_french_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_french_immigrants_3
          add_idea = ARG_french_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_french_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_french_immigrants_4
          add_idea = ARG_french_immigrants_3
             }
			 }
			 
		###Greek##############
		if = {
		limit = { has_idea = ARG_greek_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_greek_immigrants_2
          add_idea = ARG_greek_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_greek_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_greek_immigrants_3
          add_idea = ARG_greek_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_greek_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_greek_immigrants_4
          add_idea = ARG_greek_immigrants_3
             }
			 }
			 
		###Bulgarian##############
		if = {
		limit = { has_idea = ARG_bulgarian_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_bulgarian_immigrants_2
          add_idea = ARG_bulgarian_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_bulgarian_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_bulgarian_immigrants_3
          add_idea = ARG_bulgarian_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_bulgarian_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_bulgarian_immigrants_4
          add_idea = ARG_bulgarian_immigrants_3
             }
			 }
			 
		###Dutch##############
		if = {
		limit = { has_idea = ARG_dutch_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_dutch_immigrants_2
          add_idea = ARG_dutch_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_dutch_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_dutch_immigrants_3
          add_idea = ARG_dutch_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_dutch_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_dutch_immigrants_4
          add_idea = ARG_dutch_immigrants_3
             }
			 }
			 
		###Belgian##############
		if = {
		limit = { has_idea = ARG_belgian_immigrants_2 }
		swap_ideas = {
          remove_idea = ARG_belgian_immigrants_2
          add_idea = ARG_belgian_immigrants_1
             }
			 }
		if = {
		limit = { has_idea = ARG_belgian_immigrants_3 }
		swap_ideas = {
          remove_idea = ARG_belgian_immigrants_3
          add_idea = ARG_belgian_immigrants_2
             }
			 }
		if = {
		limit = { has_idea = ARG_belgian_immigrants_4 }
		swap_ideas = {
          remove_idea = ARG_belgian_immigrants_4
          add_idea = ARG_belgian_immigrants_3
             }
			 }
			
		}
	}

}

ARG_foreign_weaponry = { 

 buy_type_x_submarines = { 
		
		icon = generic_naval

		allowed = {
			tag = ARG
		}

		available = {
			has_completed_focus = ARG_buy_type_ix_submarines
			num_of_civilian_factories_available_for_projects > 14
			has_government = fascism
			GER = {
				has_opinion = {
					target = ARG
					value > 79
				} 
				}
		}

		visible = {
		has_completed_focus = ARG_buy_type_ix_submarines
				NOT = {
					has_country_flag = type_ix_submarines_bought
				}
		}

		fire_only_once = yes

		cost = 50
		days_remove = 150

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
		  set_country_flag = type_ix_submarines_bought
		  if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				custom_effect_tooltip = type_ix_submarines_tt
				hidden_effect = {
					create_equipment_variant = {
						name = "Type-IX"
						type = ship_hull_submarine_3
						name_group = ARG_SS_HISTORICAL
						parent_version = 0
						modules = {
				         fixed_ship_torpedo_slot = ship_torpedo_sub_3
				         fixed_ship_engine_slot = sub_ship_engine_2
						 front_1_custom_slot = ship_torpedo_sub_2
						 mid_1_custom_slot = ship_sub_snorkel_1
				         rear_1_custom_slot = ship_torpedo_sub_2
			            }
						obsolete = yes
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_submarine_3
							creator = "ARG" 
							version_name = "Type-IX"
						}
					 name = "U-167"
		             requested_factories = 1
		             progress = 0.95
		             amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_submarine_3
							creator = "ARG" 
							version_name = "Type-IX"
						}
						name = "U-168"
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_submarine_3
							creator = "ARG" 
							version_name = "Type-IX"
						}
					 name = "U-169"
		             requested_factories = 1
		             progress = 0.95
		             amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_submarine_3
							creator = "ARG" 
							version_name = "Type-IX"
						}
						name = "U-170"
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_submarine_3
							creator = "ARG" 
							version_name = "Type-IX"
						}
						name = "U-183"
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
				}	
			}
		}
	}
	
	order_kanonenvogel_fighter = { 
		
		icon = generic_air

		allowed = {
			tag = ARG
		}

		available = {
			has_completed_focus = ARG_order_kanonenvogel_fighters
			num_of_civilian_factories_available_for_projects > 9
			has_government = fascism
			GER = { has_tech = CAS2 }
			GER = {
				has_opinion = {
					target = ARG
					value > 49
				} 
				}
		}

		visible = {
		has_completed_focus = ARG_order_kanonenvogel_fighters
				NOT = {
					has_country_flag = kanonenvogel_bought
				}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 10
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
		  set_country_flag = kanonenvogel_bought
		  add_equipment_to_stockpile = {
             type = CAS_equipment_2
             amount = 200
             producer = GER
           }
		}
	}
	
	order_german_bombers = { 
		
		icon = generic_air

		allowed = {
			tag = ARG
		}

		available = {
			has_completed_focus = ARG_order_german_bombers
			num_of_civilian_factories_available_for_projects > 9
			has_government = fascism
			GER = { has_tech = tactical_bomber2 }
			GER = {
				has_opinion = {
					target = ARG
					value > 49
				} 
				}
		}

		visible = {
		has_completed_focus = ARG_order_german_bombers
				NOT = {
					has_country_flag = ju_bombers_bought
				}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 10
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
		  set_country_flag = ju_bombers_bought
		  add_equipment_to_stockpile = {
             type = tac_bomber_equipment_2
             amount = 150
             producer = GER
           }
		}
	}
	
	

 buy_essex_class_carriers = { 
		
		icon = generic_naval

		allowed = {
			tag = ARG
		}

		available = {
			has_completed_focus = ARG_buy_essex_class_carriers
			num_of_civilian_factories_available_for_projects > 14
			has_government = democratic
			USA = {
				has_opinion = {
					target = ARG
					value > 79
				} 
				}
		}

		visible = {
		has_completed_focus = ARG_buy_essex_class_carriers
				NOT = {
					has_country_flag = essex_carriers_bought
				}
		}

		fire_only_once = yes

		cost = 30
		days_remove = 120

		modifier = {
			civilian_factory_use = 15
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
		  set_country_flag = essex_carriers_bought
		  if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				custom_effect_tooltip = 100_ARG_tt
				hidden_effect = {
					create_equipment_variant = {
						name = "Essex-Class"
						type = ship_hull_carrier_2
						name_group = ARG_CV_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_deck_slot_1 = ship_deck_space
							fixed_ship_deck_slot_2 = ship_deck_space
							fixed_ship_anti_air_slot = ship_anti_air_1
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = carrier_ship_engine_2
							fixed_ship_secondaries_slot = dp_ship_secondaries_1
							front_1_custom_slot = empty
							mid_1_custom_slot = ship_deck_space
						}
						obsolete = yes
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_carrier_2
							creator = "ARG" 
							version_name = "Essex-Class"
						}
					 name = "ARA Independencia"
		             requested_factories = 1
		             progress = 0.95
		             amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_carrier_2
							creator = "ARG" 
							version_name = "Essex-Class"
						}
						name = "ARA Veinticinco de Mayo"
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
				}	
			}
		}
	}
	
	buy_gato_class_submarines = { 
		
		icon = generic_naval

		allowed = {
			tag = ARG
		}

		available = {
			has_completed_focus = ARG_order_gato_class_submarines
			num_of_civilian_factories_available_for_projects > 9
			has_government = democratic
			USA = {
				has_opinion = {
					target = ARG
					value > 49
				} 
				}
		}

		visible = {
		has_completed_focus = ARG_order_gato_class_submarines
				NOT = {
					has_country_flag = gato_submarines_bought
				}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 10
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
		  set_country_flag = gato_submarines_bought
		  if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				custom_effect_tooltip = 101_ARG_tt
				hidden_effect = {
					create_equipment_variant = {
						name = "Gato Class"
						type = ship_hull_submarine_2
						name_group = ARG_SS_HISTORICAL
						parent_version = 0
						modules = {
				fixed_ship_torpedo_slot = ship_torpedo_sub_2
				fixed_ship_engine_slot = sub_ship_engine_2
				rear_1_custom_slot = ship_torpedo_sub_2
			}
			obsolete = yes
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_submarine_2
							creator = "ARG" 
							version_name = "Gato Class"
						}
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_submarine_2
							creator = "ARG" 
							version_name = "Gato Class"
						}
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_submarine_2
							creator = "ARG" 
							version_name = "Gato Class"
						}
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_submarine_2
							creator = "ARG" 
							version_name = "Gato Class"
						}
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
				}	
			}
		}
	}
	
  buy_baltimore_class_cruisers = { 
		
		icon = generic_naval

		allowed = {
			tag = ARG
		}

		available = {
			has_completed_focus = ARG_order_baltimore_class_cruiser
			num_of_civilian_factories_available_for_projects > 9
			has_government = democratic
			USA = {
				has_opinion = {
					target = ARG
					value > 49
				} 
				}
		}

		visible = {
		has_completed_focus = ARG_order_baltimore_class_cruiser
				NOT = {
					has_country_flag = baltimore_cruisers_bought
				}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 10
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
		  set_country_flag = baltimore_cruisers_bought
		  if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				custom_effect_tooltip = 102_ARG_tt
				hidden_effect = {
					create_equipment_variant = {
						name = "Baltimore Class"
						type = ship_hull_cruiser_2
						name_group = ARG_CA_HISTORICAL
						parent_version = 0
						modules = {
				fixed_ship_battery_slot = ship_medium_battery_2
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = cruiser_ship_engine_2
				fixed_ship_armor_slot = ship_armor_cruiser_3
				mid_1_custom_slot = ship_airplane_launcher_1
				mid_2_custom_slot = ship_anti_air_1
				rear_1_custom_slot = ship_medium_battery_2
			}
			obsolete = yes
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_cruiser_2
							creator = "ARG" 
							version_name = "Baltimore Class"
						}
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_cruiser_2
							creator = "ARG" 
							version_name = "Baltimore Class"
						}
						requested_factories = 1
						progress = 0.95
						amount = 1
					}
				}	
			}
		 
	   }
	  }

}

ARG_category_trade_missions = { 

start_a_trading_mission = { 
		
		icon = generic_naval

		allowed = {
			tag = ARG
		}

		available = {
			has_completed_focus = ARG_trans_ocean_trading
		}

		visible = {
		has_completed_focus = ARG_trans_ocean_trading
		}

		fire_only_once = no

		cost = 10
		days_remove = 365

		modifier = {
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			country_event = argentina.14
		}
		
		remove_effect = { 
		}
	}

}


ARG_category_expand_military_facilities = { 

 ARG_expand_military_schools = { 
		
		icon = generic_police_action

		allowed = {
			tag = ARG
		}

		available = {
			has_completed_focus = ARG_reform_the_army
			NOT = { has_country_flag =  ARG_military_facility_expansion_ongoing_flag }
		}

		visible = {
		has_completed_focus = ARG_reform_the_army
		}

		fire_only_once = yes

		cost = 25
		days_remove = 1

		modifier = {
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = ARG_military_facility_expansion_ongoing_flag
			custom_effect_tooltip = ARG_build_military_factories_tt
			set_country_flag = ARG_build_military_factories_activated
			
			ARG = {
			set_variable = { arms_factory_goal = num_of_military_factories }
			add_to_variable = { arms_factory_goal = 3 }
			}
		}
		
		remove_effect = { 
		
		}
	}
	
	ARG_build_military_facilities_mission = {

		icon = GFX_decision_generic_factory

		ai_will_do = {
			base = 1
		}

		allowed = {
			original_tag = ARG
		}

		available = { #GOAL
		custom_trigger_tooltip = {
				tooltip = ARG_build_enough_military_factories_tt
			 ARG = { 
			  check_variable = {
	           var = num_of_military_factories
	           value = arms_factory_goal
	           compare = greater_than_or_equals
               }
			 }
			}
		}

		activation = {
			has_country_flag = ARG_build_military_factories_activated
		}
		
		visible = {
			has_country_flag = ARG_build_military_factories_activated
		}

		days_mission_timeout = 730

		fire_only_once = yes

		is_good = no
		
		timeout_effect = { #FAIL
			add_war_support = -0.1
			add_political_power = -100
			clr_country_flag = ARG_military_facility_expansion_ongoing_flag
		}

		complete_effect = { #SUCCESS
			ARG = { country_event = argentina.15 }
			clr_country_flag = ARG_military_facility_expansion_ongoing_flag
		}
	}
	
	
	ARG_expand_naval_schools = { 
		
		icon = generic_naval

		allowed = {
			tag = ARG
		}

		available = {
			has_completed_focus = ARG_reform_the_army
			NOT = { has_country_flag =  ARG_military_facility_expansion_ongoing_flag }
		}

		visible = {
		has_completed_focus = ARG_reform_the_army
		}

		fire_only_once = yes

		cost = 25
		days_remove = 1

		modifier = {
		}

		ai_will_do = {
			factor = 1
		}
		
		complete_effect = {
			set_country_flag = ARG_military_facility_expansion_ongoing_flag
			custom_effect_tooltip = ARG_build_dockyards_tt
			set_country_flag = ARG_build_dockyards_activated
			
			ARG = {
			set_variable = { ARG_dockyard_goal = num_of_naval_factories }
			add_to_variable = { ARG_dockyard_goal = 3 }
			}
		}
		
		remove_effect = { 
		}
	}
	
	ARG_build_naval_facilities_mission = {

		icon = GFX_decision_generic_construction

		ai_will_do = {
			base = 1
		}

		allowed = {
			original_tag = ARG
		}

		available = { #GOAL
		custom_trigger_tooltip = {
			tooltip = ARG_build_enough_naval_factories_tt
			   ARG = { 
			  check_variable = {
	           var = num_of_naval_factories
	           value = ARG_dockyard_goal
	           compare = greater_than_or_equals
               }
			 }
			 }
		}

		activation = {
			has_country_flag = ARG_build_dockyards_activated
		}
		
		visible = {
			has_country_flag = ARG_build_dockyards_activated
		}

		days_mission_timeout = 730

		fire_only_once = yes

		is_good = no
		
		timeout_effect = { #FAIL
			add_war_support = -0.1
			add_political_power = -100
			clr_country_flag = ARG_military_facility_expansion_ongoing_flag
		}

		complete_effect = { #SUCCESS
			ARG = { country_event = argentina.16 }
			clr_country_flag = ARG_military_facility_expansion_ongoing_flag
		}
	}

}


  