set_country_flag = polit_usa_ally
add_ideas = disarmed_nation 
load_focus_tree = generic_focus
capital = 277

oob = "MEX_1936"


# Starting tech
set_technology = {
	infantry_weapons = 1
	tech_trucks = 1
	gw_artillery = 1
	interwar_antiair = 1
	
	fuel_silos = 1
	fuel_refining = 1
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
	}
}
if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 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
	}
}
if = {
	limit = { has_dlc = "Man the Guns" }
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		early_ship_hull_submarine = 1
		basic_battery = 1
		coastal_defense_ships = 1
	}
}

recruit_character = MEX_lazaro_cardenas
recruit_character = MEX_salvador_abascal
recruit_character = MEX_adolfo_de_la_huerta
recruit_character = MEX_dionisio_encina
recruit_character = MEX_hernan_laborde
recruit_character = MEX_heliodoro_charis
recruit_character = MEX_luis_farell
recruit_character = MEX_gildardo_magana
recruit_character = MEX_manuel_perez_trevino
recruit_character = MEX_abelardo_rodriguez
recruit_character = MEX_manuel_avila_camacho
recruit_character = MEX_othon_blanco
recruit_character = MEX_heriberto_corona
recruit_character = MEX_antonio_cardenas_rodriguez
recruit_character = MEX_jesus_garza_siller
recruit_character = MEX_gilberto_limon
recruit_character = MEX_pablo_macias
recruit_character = MEX_jose_gonzalo_escobar
recruit_character = MEX_agustin_olachea
recruit_character = MEX_leon_trotsky
recruit_character = MEX_saturnino_cedillo
recruit_character = MEX_hector_meixueiro
recruit_character = MEX_matias_santos_ramos
recruit_character = MEX_enrique_estrada
recruit_character = MEX_jose_vasconcelos
recruit_character = MEX_pablo_gonzalez
recruit_character = MEX_bartolome_garcia_correa
recruit_character = MEX_luis_montes_de_oca
recruit_character = MEX_aaron_saenz
recruit_character = MEX_vicente_lombardo
recruit_character = MEX_eduardo_hay
recruit_character = MEX_alberto_pani
recruit_character = MEX_juan_andreu
recruit_character = MEX_plutarco_calles
recruit_character = MEX_francisco_mugica
recruit_character = MEX_jesus_degollado_guizar
recruit_character = MEX_valentin_campa
recruit_character = MEX_luis_maria_martinez
recruit_character = MEX_indigenous_council

set_country_flag = monroe_doctrine

set_convoys = 45
set_stability = 0.2
set_war_support = 0.1

if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	add_ideas = {
		#MEX_callistas
		#MEX_church_power_2
		#MEX_oil_concessions
		#MEX_politicised_army
		#MEX_cedillo_tension_2
	}
}


set_politics = {
	ruling_party = neutrality
	last_election = "1934.7.1"
	election_frequency = 72
	elections_allowed = yes
}
set_popularities = {
	democratic = 18
	fascism = 20
	communism = 9
	neutrality = 53
}

### VARIANTS ###
# 1936 Start #
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	create_equipment_variant = {
		name = "Durango Class"
		type = destroyer_1
		upgrades = {
			ship_anti_air_upgrade = 1
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Nicolás Bravo Class"
		type = destroyer_1
		upgrades = {
			ship_torpedo_upgrade = 1
			destroyer_engine_upgrade = 1
			ship_ASW_upgrade = 1
			ship_anti_air_upgrade = 2
		}
	}
}
if = {
	limit = { has_dlc = "Man the Guns" }
	# Destroyers #
	create_equipment_variant = {
		name = "Nicolás Bravo Class"			
		type = ship_hull_light_1
		name_group = MEX_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 = empty
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Durango Class"			# represents both Guanajuato and Durango classes (gunboats)
		type = ship_hull_light_1
		name_group = MEX_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_1
			fixed_ship_torpedo_slot = empty
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Anahuac Class"			
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = MEX_BB_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_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 = cruiser_ship_engine_1
			fixed_ship_secondaries_slot = ship_secondaries_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
}
add_ideas = CRI_flexible_foreign_policy
set_convoys = 34
country_event = {
	id = instability.001
	days = 3
}