capital = 278
add_ideas = disarmed_nation 
load_focus_tree = generic_focus
oob = "ARG_1936"

IF = {
	limit = { has_dlc = "Man the Guns" }
		set_naval_oob = "ARG_1936_naval_mtg"
	ELSE = {
		set_naval_oob = "ARG_1936_naval_legacy"
	}
}
IF = {
	limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "ARG_1936_air_bba"
		set_technology = {
			iw_small_airframe = 1
			aa_lmg = 1
			engines_1 = 1
			early_bombs = 1
		}
	ELSE = {
		set_air_oob = "ARG_1936_air_legacy"
		set_technology = {
			early_fighter = 1
			CAS1 = 1
		}
	}
}

every_core_state = {
	ROOT = {
		add_to_array = { cores_at_game_start = PREV }
	}
}

# Corruption Modifier
set_variable = { ARG_corruption_political_power_factor = 0.1 }
set_variable = { ARG_corruption_production_factory_max_efficiency_factor = -0.1 }
set_variable = { ARG_corruption_production_speed_buildings_factor = -0.1 }
set_variable = { ARG_corruption_war_support_factor = -0.2 }

# Crackdown on Corruption Modifier
set_variable = { ARG_corruption_crackdown_stability_factor = 0.1 }
set_variable = { ARG_corruption_crackdown_production_factory_max_efficiency_factor = 0.1 }
set_variable = { ARG_corruption_crackdown_neutrality_factor = 0.02 }
set_variable = { ARG_corruption_crackdown_fascism_factor = 0.02 }
set_variable = { ARG_corruption_crackdown_war_support_factor = -0.1 }

# Anti Corruption Modifier
set_variable = { ARG_anti_corruption_stability_factor = 0.15 }
set_variable = { ARG_anti_corruption_production_factory_max_efficiency_factor = 0.1 }
set_variable = { ARG_anti_corruption_neutrality_factor = 0.02 }
set_variable = { ARG_anti_corruption_democratic_factor = 0.03 }
set_variable = { ARG_anti_corruption_war_support_factor = -0.2 }

# Growing Nationalism Modifier
set_variable = { ARG_growing_nationalism_fascism_drift = 0.05 } 
set_variable = { ARG_growing_nationalism_recruitable_population_factor = 0.02 }
set_variable = { ARG_growing_nationalism_stability_factor = 0.05 }
set_variable = { ARG_growing_nationalism_war_support_factor = 0 }
set_variable = { ARG_growing_nationalism_democratic_drift = -0.02 }
set_variable = { ARG_growing_nationalism_political_power_factor = 0 }

IF = {
	# TODO JA, set this to the correct dlc!
	limit = { has_dlc = "Trial of Allegiance" }

	# Army modifier
	JUNO_set_shared_military_branch_defaults = yes

	add_ideas = {
		#SMB_MTG_naval_arms_race_legacy
		#ARG_infamous_decade_idea
		#ARG_roca_runciman_treaty_idea
	}

	add_dynamic_modifier = {
		modifier = ARG_political_corruption_modifier
	}

}

# Starting tech
set_technology = {
	infantry_weapons = 1
	tech_mountaineers = 1
	tech_trucks = 1
	motorised_infantry = 1
	gw_artillery = 1
	interwar_antiair = 1
	basic_train = 1
}

IF = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_submarine = 1
		early_destroyer = 1
		early_light_cruiser = 1
		early_heavy_cruiser = 1
		early_battleship = 1
		transport = 1
	}
}
IF = {
	limit = { has_dlc = "Man the Guns" }
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		basic_ship_hull_light = 1
		early_ship_hull_submarine = 1
		basic_ship_hull_submarine = 1
		early_ship_hull_cruiser = 1
		early_ship_hull_heavy = 1
		basic_battery = 1
		basic_cruiser_armor_scheme = 1
		basic_torpedo = 1
		basic_depth_charges = 1
		coastal_defense_ships = 1
		mtg_transport = 1
	}
}

IF = {
	limit = {
		NOT = {
			has_dlc = "Trial of Allegiance" 
		}
	}
	recruit_character = ARG_agustin_pedro_justo
	recruit_character = ARG_roberto_maria_ortiz
	recruit_character = ARG_ramon_castillo
	recruit_character = ARG_nimio_de_anquin
	recruit_character = ARG_marcelo_t_de_alvear
	recruit_character = ARG_fanny_edelman
	recruit_character = ARG_arturo_rawson
	recruit_character = ARG_juan_pistarini
	recruit_character = ARG_uribaldi_diaz_brittenberg
	recruit_character = ARG_edelmiro_julian_farrell
	recruit_character = ARG_francisco_m_velez
	recruit_character = ARG_jose_tamborni
	recruit_character = ARG_hortensio_quijano
	recruit_character = ARG_antonio_parodi
	recruit_character = ARG_heriberto_la_galine
	recruit_character = ARG_thomas_martinez
	recruit_character = ARG_luis_podesta_costa
	recruit_character = ARG_senor_hitler

	ELSE_IF = {
		limit = {
			has_dlc = "Trial of Allegiance" 
		}
		recruit_character = ARG_agustin_pedro_justo
		recruit_character = ARG_roberto_maria_ortiz
		recruit_character = ARG_ramon_castillo
		recruit_character = ARG_nimio_de_anquin
		recruit_character = ARG_enrique_mosca
		recruit_character = ARG_marcelo_t_de_alvear
		recruit_character = ARG_victorio_codovilla
		recruit_character = ARG_fanny_edelman
		recruit_character = ARG_rodolfo_ghioldi
		recruit_character = ARG_antonio_soto
		recruit_character = ARG_arturo_rawson
		recruit_character = ARG_juan_pistarini
		recruit_character = ARG_alberto_teisaire
		recruit_character = ARG_juan_peron
		recruit_character = ARG_edelmiro_julian_farrell
		recruit_character = ARG_manuel_a_rodriguez
		recruit_character = ARG_pedro_s_casal
		recruit_character = ARG_antonio_parodi
		recruit_character = ARG_pedro_pablo_ramirez
		recruit_character = ARG_eleazar_videla
		recruit_character = ARG_manuel_maria_de_iriondo
		recruit_character = ARG_senor_hitler
		recruit_character = ARG_carlos_marquez
		recruit_character = ARG_eduardo_avalos
		recruit_character = ARG_juan_tonazzi
		recruit_character = ARG_alberto_gilbert
		recruit_character = ARG_diego_mason
		recruit_character = ARG_benito_sueyro
		recruit_character = ARG_leon_scasso
		recruit_character = ARG_oscar_muratorio
		recruit_character = ARG_edmundo_sustaita
		recruit_character = ARG_basilio_pertine
		recruit_character = ARG_bartolome_de_la_colina
		recruit_character = ARG_segundo_storni
		recruit_character = ARG_hugo_wast
		recruit_character = ARG_raul_prebisch
		recruit_character = ARG_ezequiel_pedro_paz
		recruit_character = ARG_julio_roca
		recruit_character = ARG_honorio_pueyrredon
		recruit_character = ARG_diogenes_taboada
		recruit_character = ARG_guillermo_rothe
		recruit_character = ARG_frederick_pinedo
		recruit_character = ARG_jose_cantilo
		recruit_character = ARG_enrique_ruiz_guinazu
		recruit_character = ARG_vincente_gallo
		recruit_character = ARG_carlos_lamas
		recruit_character = ARG_osmar_hellmuth
		recruit_character = ARG_eva_peron
	}
}



set_country_flag = monroe_doctrine



set_convoys = 120

set_politics = {
	ruling_party = neutrality
	last_election = "1931.11.8"
	election_frequency = 72
	elections_allowed = yes
}
set_popularities = {
	democratic = 25
	fascism = 20
	communism = 25
	neutrality = 30
}



### VARIANTS ###
# 1936 Start #
IF = {
	limit = {
		has_dlc = "By Blood Alone"
	}
	create_equipment_variant = {
		name = "FMA D.21" #
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
		obsolete = yes
	}
}
IF = {
	limit = { NOT = { has_dlc = "Man the Guns" } }
	### Ship Variants ###
	create_equipment_variant = {
		name = "Cervantes Class"
		type = destroyer_1
		upgrades = {
			ship_torpedo_upgrade = 1
			destroyer_engine_upgrade = 1
			ship_ASW_upgrade = 1
			ship_anti_air_upgrade = 1
		}
	}
	create_equipment_variant = {
		name = "Veinticinco de Mayo Class"
		type = heavy_cruiser_1
		upgrades = {
			ship_reliability_upgrade = 1
			ship_engine_upgrade = 1
			ship_armor_upgrade = 1
			ship_gun_upgrade = 1
		}
	}

}
IF = {
	limit = { has_dlc = "Man the Guns" }
	# Submarines #
	create_equipment_variant = {
		name = "Santa Fe Class"				
		type = ship_hull_submarine_1
		name_group = ARG_SS_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_torpedo_slot = ship_torpedo_sub_1
			fixed_ship_engine_slot = sub_ship_engine_2
			rear_1_custom_slot = ship_torpedo_sub_1
		}
	}
	# Destroyers #
	create_equipment_variant = {
		name = "Catamarca Class"				# represents Catamarca, La Plata Class		
		type = ship_hull_light_1
		name_group = ARG_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = empty
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Cervantes Class"	
		type = ship_hull_light_2
		name_group = ARG_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			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 = light_ship_engine_2
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = ship_depth_charge_1
		}
	}
	create_equipment_variant = {
		name = "Mendoza Class"				
		type = ship_hull_light_2
		name_group = ARG_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			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 = light_ship_engine_2
			fixed_ship_torpedo_slot = empty
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	# Heavy Cruisers #
	create_equipment_variant = {
		name = "Libertad Class"				
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = ARG_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			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_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = ship_secondaries_1
			mid_1_custom_slot = empty
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Garibaldi Class"				
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = ARG_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			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_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = ship_secondaries_1
			mid_1_custom_slot = ship_secondaries_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Veinticinco de Mayo Class"				
		type = ship_hull_cruiser_1
		name_group = ARG_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			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_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = ship_secondaries_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = ship_airplane_launcher_1
		}
	}
	# Battleships #
	create_equipment_variant = {
		name = "Rivadavia Class"	
		type = ship_hull_heavy_1
		name_group = ARG_BB_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_1
			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 = heavy_ship_engine_1
			fixed_ship_secondaries_slot = ship_secondaries_1
			fixed_ship_armor_slot = ship_armor_bb_1
			front_1_custom_slot = ship_heavy_battery_1
			mid_1_custom_slot = ship_secondaries_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
}


set_convoys = 12