POR_fascist_axis_plan = {
	name = "Portuguese Fascist Dictatorship"
	desc = "Rafael Pereira will take control of Portugal as a Fascist dictator, supporting the Nationalists during the Spanish Civil War and attempting to join the Axis afterwards."

	allowed = {
		original_tag = POR
	}
	enable = {
		OR = {
			has_country_flag = POR_AI_RANDOM_FASCIST_AXIS
			has_game_rule = {
				rule = POR_ai_behavior
				option = FASCIST
			}
		}	
	}
	abort = {

	}

	ai_national_focuses = {
		#1936
		POR_a_new_industry
		POR_colonial_army
		POR_food_industries
		POR_industrial_modernization
		POR_instituto_superior_tecnico
		POR_continue_the_public_works
		POR_roads_bridges_and_dams
		
		#1937
		POR_estado_novo
		POR_support_the_spanish_nationalists
		POR_portuguese_legion
		POR_national_syndicalism
		POR_observation_mission
		
		#1938
		POR_arsenal_do_alfeite
		POR_metropolitan_army
		POR_field_maneuvers
		POR_army_reorganization
		POR_extraction_industries
		POR_ogma
		POR_ogme
		POR_a_powerful_merchant_marine
		POR_corpo_do_estado_maior
		
		#1939
		POR_ditadura_militar
		POR_camisas_azuis
		
		#1940
		POR_hydroelectricity
		POR_military_vehicles
		POR_light_aircraft_focus
		POR_submarine_effort
		POR_national_cruiser_production
	    POR_battleship_effort
		POR_atlantic_defense_strategy
		
		#1941
        POR_join_the_axis
		
	}

	focus_factors = {
		POR_recover_brazil = 0
		POR_limited_self_rule = 0
		POR_expand_the_chinese_territories = 0
	}				

	research = {

	}

	ideas = {

	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}
}

POR_fascist_fifth_empire_plan = {
	name = "The Fifth Empire - Fascist"
	desc = "The Poruguese government will embrace Fascism, fight against the Republicans during the Spanish Civil War and attempt to recover its lost territories in Africa, Asia and America, raising as a major power once again."

	allowed = {
		original_tag = POR
	}
	enable = {
		OR = {
			has_country_flag = POR_AI_RANDOM_FASCIST_FIFTH_EMPIRE
			has_game_rule = {
				rule = POR_ai_behavior
				option = FASCIST_FIFTH_EMPIRE
			}
		}	
	}
	abort = {

	}

	ai_national_focuses = {
		#1936
		POR_a_new_industry
		POR_colonial_army
		POR_food_industries
		POR_industrial_modernization
		POR_instituto_superior_tecnico
		POR_continue_the_public_works
		POR_roads_bridges_and_dams
		
		#1937
		POR_estado_novo
		POR_support_the_spanish_nationalists
		POR_portuguese_legion
		POR_national_syndicalism
		POR_observation_mission
		
		#1938
		POR_arsenal_do_alfeite
		POR_metropolitan_army
		POR_field_maneuvers
		POR_army_reorganization
		POR_extraction_industries
		POR_ogma
		POR_ogme
		POR_a_powerful_merchant_marine
		POR_corpo_do_estado_maior
		
		#1939
		POR_ditadura_militar
		POR_camisas_azuis
		
		#1940
		POR_hydroelectricity
		POR_military_vehicles
		POR_light_aircraft_focus
		POR_submarine_effort
		POR_national_cruiser_production
	    POR_battleship_effort
		POR_atlantic_defense_strategy
		
		#1941
		POR_the_fifth_empire

	}	

	focus_factors = {
		POR_limited_self_rule = 0
	}			

	research = {

	}

	ideas = {

	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}
}

POR_neutrality_monarchist_plan = {
	name = "Monarchist - Neutrality"
	desc = "After the restoration of the monarchy in Portugal, King Duarte will appeal to the Brazilian monarchists and attempt to restore the Empire of Portugal and Brazil."

	allowed = {
		original_tag = POR
	}
	enable = {
		OR = {
			has_country_flag = POR_AI_RANDOM_NEUTRALITY_MONARCHIST
			has_game_rule = {
				rule = POR_ai_behavior
				option = NEUTRALITY_MONARCHIST
			}
		}	
	}
	abort = {

	}

	ai_national_focuses = {
		#1936
		POR_a_new_industry
		POR_colonial_army
		POR_food_industries
		POR_industrial_modernization
		POR_instituto_superior_tecnico
		POR_continue_the_public_works
		POR_roads_bridges_and_dams
		
		#1937
		POR_a_royal_wedding
		POR_the_return_of_duarte
		POR_promote_the_monarchist_cause_in_portugal
		POR_restoration_of_the_monarchy
		
		#?
		POR_support_a_spanish_monarchy_in_the_war
		POR_monarchist_uprising_in_brazil
		
		#1938
		POR_arsenal_do_alfeite
		POR_metropolitan_army
		POR_field_maneuvers
		POR_army_reorganization
		POR_extraction_industries
		POR_ogma
		POR_ogme
		POR_a_powerful_merchant_marine
		POR_corpo_do_estado_maior
		
		#1939
		POR_the_empire_of_brazil
		POR_remember_olivenca
	
	}		

	focus_factors = {

	}		

	research = {

	}

	ideas = {

	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}
}

POR_democratic_plan = {
	name = "Democratic - Strict Neutrality"
	desc = "With the influence of the United Kingdom, a democratic goverment will overturn the regime of Salazar and, aided by the British, focus on develop the country before joining the Allies."

	allowed = {
		original_tag = POR
	}
	enable = {
		OR = {
			has_country_flag = POR_AI_RANDOM_DEMOCRATIC
			has_game_rule = {
				rule = POR_ai_behavior
				option = DEMOCRATIC
			}
		}	
	}
	abort = {

	}

	ai_national_focuses = {
		#1936
		POR_a_new_industry
		POR_colonial_army
		POR_food_industries
		POR_industrial_modernization
		POR_instituto_superior_tecnico
		POR_continue_the_public_works
		POR_roads_bridges_and_dams
		
		#1937
		POR_strict_neutrality_in_the_spanish_civil_war
		POR_british_investment_in_mines
		POR_british_industrial_investments
		
		#1938
		POR_arsenal_do_alfeite
		POR_metropolitan_army
		POR_field_maneuvers
		POR_army_reorganization
		POR_extraction_industries
		POR_ogma
		POR_ogme
		POR_a_powerful_merchant_marine
		POR_corpo_do_estado_maior
		

		#1940
		POR_allow_free_elections
		
		POR_hydroelectricity
		POR_military_vehicles
		POR_light_aircraft_focus
		
		POR_submarine_effort
		POR_national_cruiser_production
	    POR_battleship_effort
		POR_atlantic_defense_strategy
	
	
	}	

	focus_factors = {
		POR_intervention_in_spain = 0
	}			

	research = {

	}

	ideas = {

	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}
}

POR_communist_comintern_plan = {
	name = "The Socialist Republic of Portugal"
	desc = "Portugal will align itself towards the Soviet Union, supporting the Spanish Republic and attempting to join the Comintern."

	allowed = {
		original_tag = POR
	}
	enable = {
		OR = {
			has_country_flag = POR_AI_RANDOM_COMMUNIST_COMINTERN
			has_game_rule = {
				rule = POR_ai_behavior
				option = COMMUNIST_COMINTERN
			}
		}	
	}
	abort = {

	}

	ai_national_focuses = {
		#1936
		POR_a_new_industry
		POR_colonial_army
		POR_food_industries
		POR_industrial_modernization
		POR_instituto_superior_tecnico
		POR_continue_the_public_works
		POR_roads_bridges_and_dams
		
		
		#1937
		POR_popular_front
		POR_support_the_spanish_republic
		POR_nation_in_arms
		POR_visit_the_front
		POR_unify_leftist_youth_wings
		
		#1938
		POR_arsenal_do_alfeite
		POR_metropolitan_army
		POR_field_maneuvers
		POR_army_reorganization
		
		POR_reorganization_of_the_communist_party
		POR_nationalize_industry
	
	    #1939
		POR_extraction_industries
		POR_ogma
		POR_ogme
		POR_a_powerful_merchant_marine
		POR_corpo_do_estado_maior
		POR_hydroelectricity
		POR_military_vehicles
		POR_light_aircraft_focus
		
		#1940
		POR_join_the_comintern
		
	}

	focus_factors = {
	}					

	research = {

	}

	ideas = {

	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}
}

POR_communist_independent_plan = {
	name = "United European Socialist Republics"
	desc = "Communists will overturn the government and fight against the Spanish Nationalists during the Spanish Civil War, unifying the Iberian Peninsula as the United European Socialist Republics, the last European bastion against fascism."

	allowed = {
		original_tag = POR
	}
	enable = {
		OR = {
			has_country_flag = POR_AI_RANDOM_COMMUNIST_INDEPENDENT
			has_game_rule = {
				rule = POR_ai_behavior
				option = COMMUNIST_INDEPENDENT
			}
		}	
	}
	abort = {

	}

	ai_national_focuses = {
		#1936
		POR_a_new_industry
		POR_colonial_army
		POR_food_industries
		POR_industrial_modernization
		POR_instituto_superior_tecnico
		POR_continue_the_public_works
		POR_roads_bridges_and_dams
		
		#1937
		POR_popular_front
		POR_support_the_spanish_republic
		POR_nation_in_arms
		
		POR_arsenal_do_alfeite
		POR_metropolitan_army
		POR_field_maneuvers
		POR_army_reorganization
		POR_extraction_industries
		POR_ogma
		POR_ogme
		
	    #1938
		POR_workers_of_iberia_unite
		POR_unify_leftist_youth_wings
		POR_nationalize_industry
		POR_reorganization_of_the_communist_party

		POR_a_powerful_merchant_marine
		POR_corpo_do_estado_maior
		POR_hydroelectricity
		POR_military_vehicles
		POR_light_aircraft_focus
		
		#1939
		POR_the_iberian_socialist_union
		POR_submarine_effort
		POR_national_cruiser_production
	    POR_battleship_effort
		POR_atlantic_defense_strategy
		POR_the_popular_front_bloc
		POR_cooperate_with_french_militants
	
	}	

	research = {

	}

	ideas = {

	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}
}