capital = 266

oob = "PER_1936"
if = {
	limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "PER_1936_air_bba"
	else = {
		set_air_oob = "PER_1936_air_legacy"
		set_technology = {
			early_fighter = 1
			CAS1 = 1

		}
	}
}

# Starting tech

IF = {
	limit = {
		has_dlc = "Graveyard of Empires"
	}

	set_technology = {
		infantry_weapons = 1
		infantry_weapons1 = 1
		tech_trucks = 1
		tech_support = 1
		gw_artillery = 1
		tech_military_police = 1
		tech_engineers = 1
	}

	ELSE = {
		set_technology = {
			infantry_weapons = 1
			infantry_weapons1 = 1
			tech_trucks = 1
			tech_support = 1
			gw_artillery = 1
		}
	}
	## This is a placeholder name until the player picks a fascist party to form
	set_party_name = {
		ideology = fascism
		name = PER_ultra_nationalists
		long_name = PER_ultra_nationalists_long
	}
}

### VARIABLES ###

### VARIABLES FOR POPULARITY ###
set_variable = { PER_democratic_popularity = 20 }
set_variable = { PER_communism_popularity = 5 }
set_variable = { PER_neutrality_popularity = 60 }
set_variable = { PER_fascism_popularity = 15 }

### VARIABLES FOR AIRFORCE ###

set_variable = { PER_airforce_modifier_air_doctrine_cost_factor = 0 }
set_variable = { PER_airforce_modifier_air_ace_generation_chance_factor = 0 }
set_variable = { PER_airforce_modifier_air_range_factor = 0 }
set_variable = { PER_airforce_modifier_air_superiority_efficiency = 0 }
set_variable = { PER_airforce_modifier_air_intercept_efficiency = 0 }
set_variable = { PER_airforce_modifier_air_mission_xp_gain_factor = 0 }
set_variable = { PER_airforce_modifier_air_agility_factor = 0 }
set_variable = { PER_airforce_modifier_ground_attack_factor = 0 }
set_variable = { PER_airforce_modifier_experience_gain_air = 0.2 }
set_variable = { PER_army_modifier_industrial_capacity_factory_airfoce = 0 }
set_variable = { PER_airforce_modifier_conscription_factor = 0 }
set_variable = { PER_airforce_modifier_air_strategic_bomber_bombing_factor = 0 }
set_variable = { PER_airforce_modifier_air_cas_present_factor = 0 }
set_variable = { PER_airforce_modifier_air_defence_factor = 0 }

### VARIABLES FOR LEGACY OF GREATNESS ###

set_variable = { PER_legacy_pp = 0.02 }
set_variable = { PER_legacy_research = 0 }
set_variable = { PER_legacy_civ = 0.05 }
set_variable = { PER_legacy_stability = 0}
set_variable = { PER_legacy_consumer_goods = 0}
set_variable = { PER_legacy_industrial_capacity_factory = 0}
set_variable = { PER_legacy_infra = 0}
set_variable = { PER_legacy_factory_efficiency = 0}
set_variable = { PER_legacy_conscription = 0}

### VARIABLES FOR STAND WITH GIANTS ###

set_variable = { PER_giants_pp = 0.02 }
set_variable = { PER_giants_research = 0 }
set_variable = { PER_giants_civ = 0 }
set_variable = { PER_giants_stability = 0.05 }
set_variable = { PER_giants_consumer_goods = 0}
set_variable = { PER_giants_industrial_capacity_factory = 0}
set_variable = { PER_giants_infra = 0}
set_variable = { PER_giants_factory_efficiency = 0}
set_variable = { PER_giants_conscription = 0}
set_variable = { PER_giants_mils = 0 }
set_variable = { PER_giants_training_time = 0 }


### Variables for opposition modifier
set_variable = { PER_opposition_political_power_factor = -0.1 }
set_variable = { PER_opposition_research_speed_factor = 0 }
set_variable = { PER_opposition_stability_factor = -0.1 }
set_variable = { PER_opposition_conscription_factor = -0.05 }
set_variable = { PER_opposition_fascism_drift = 0.02 }
set_variable = { PER_opposition_communism_drift = 0.02 }
set_variable = { PER_opposition_democratic_drift = 0.02 }
set_variable = { PER_army_core_defence_factor = 0 }
set_variable = { PER_army_core_attack_factor = 0 }
set_variable = { PER_fascist_militia_count = 4 }

### VARIABLES FOR OFFENSIVE TACTICS ###
set_variable = { PER_sub_unit_infantry_attack_factor = 0.1 }
set_variable = { PER_sub_unit_infantry_irregular_attack_factor = 0.1 }
set_variable = { PER_army_defence_factor = -0.05 }

### VARIABLES FOR DEFENSIVE MANEUVRES ###
set_variable = { PER_sub_unit_infantry_defence_factor = 0.1 }
set_variable = { PER_sub_unit_infantry_irregular_defence_factor = 0.1 }
set_variable = { PER_army_attack_factor = -0.05 }

### VARIABLES FOR SPECIAL FORCES ###
set_variable = { PER_special_units_special_forces = 0.15 }
set_variable = { PER_spec_force_training = -0.15 }

IF = {
	limit = {
		has_dlc = "Graveyard of Empires"
	}
	add_ideas = PER_anglo_iranian_oil_ns
	add_ideas = PER_rural_feudalism_ns
	add_ideas = PER_islamic_traditions_ns
	add_ideas = PER_azerbaijan_resistance_idea
	add_ideas = PER_kurdistan_resistance_idea

	recruit_character = PER_reza_shah_pahlavi
	recruit_character = PER_mohammed_reza_pahlavi
	recruit_character = PER_mohammad_ali_foroughi
	recruit_character = PER_ali_dashti
	recruit_character = PER_zia_ol_din_tabatabee
	recruit_character = PER_mohammad_mosaddegh
	recruit_character = PER_iraj_eskandari
	recruit_character = PER_soleiman_eskandari
	recruit_character = PER_ruhollah_khomeini
	recruit_character = PER_fakhrafagh_parsa
	recruit_character = PER_andre_godard
	recruit_character = PER_arthur_millspaugh
	recruit_character = PER_ardeshir_ovanessian
	recruit_character = PER_ali_akbar_davar
	recruit_character = PER_abdolhossein_hazhir
	recruit_character = PER_teymur_bakhtiar
	recruit_character = PER_ahmad_ahmadi
	recruit_character = PER_nikolai_markov
	recruit_character = PER_bahram_aryana
	recruit_character = PER_gholam_ali_oveissi
	recruit_character = PER_ahmad_amir_ahmadi
	recruit_character = PER_fazlollah_zahedi
	recruit_character = PER_ali_akbar_derakhshani
	recruit_character = PER_ghulam_yahya_daneshian
	recruit_character = PER_jafar_kavian
	recruit_character = PER_ahmad_khan_nakhjavan
	recruit_character = PER_gholamali_bayandor
	recruit_character = PER_azad_hashemi
	recruit_character = PER_abdollah_zelli
	recruit_character = PER_abbas_darja_nawardi
	recruit_character = PER_fawzia_faud
	recruit_character = PER_teymourtash
	recruit_character = PER_irandokht
	recruit_character = PER_davud_monshizadeh
	recruit_character = PER_hasan_arfa
	recruit_character = PER_abol_ghasem_kashani
	recruit_character = PER_generic_non_aligned
	recruit_character = PER_sky_guy
	recruit_character = PER_land_guy

	ELSE_IF = {
		limit = {
			NOT = {
				has_dlc = "Graveyard of Empires"
			}
		}
		recruit_character = PER_reza_shah_pahlavi
		recruit_character = PER_soleyman_mirza_eskandari
		recruit_character = PER_hasan_arfa
		recruit_character = PER_dalir_pesyan
		recruit_character = PER_sohrab_tahmasebi
		recruit_character = PER_mir_afkhami
		recruit_character = PER_ahmad_khan_nakhjavan
		recruit_character = PER_reza_mizani
		recruit_character = PER_ali_razmara
		recruit_character = PER_hassan_majid_firooz
		recruit_character = PER_ahmad_mira_khosravani
		recruit_character = PER_ahmad_khan_nakhjaavan
		recruit_character = PER_mohammed_nakhjavani
		recruit_character = PER_abdolreza_afkhami
		recruit_character = PER_fazlollah_zahedi
		recruit_character = PER_mohammed_reza_pahlavi
		recruit_character = PER_ali_akbar_deiva
		recruit_character = PER_hossein_afkhami
		recruit_character = PER_ali_zohayli
		recruit_character = PER_mahmud_jam
		recruit_character = PER_ali_khan_mansour
	}
}


1939.1.1 = {

	add_political_power = 1198
	add_command_power = 100
	
	IF = {
		limit = {
			has_dlc = "Graveyard of Empires"
		}

		complete_national_focus = PER_the_pahlavi_imperium
		complete_national_focus = PER_stand_with_giants
		complete_national_focus = PER_forced_secularization
		complete_national_focus = PER_modernizing_iran
		complete_national_focus = PER_restructure_army
		complete_national_focus = PER_expand_imperial_guard
		complete_national_focus = PER_persian_german_trade
		complete_national_focus = PER_increase_military_funding
		complete_national_focus = PER_rapid_industrialization
		complete_national_focus = PER_tehran_power_plant
		complete_national_focus = PER_increase_education_funding
		complete_national_focus = PER_adult_literacy
		complete_national_focus = PER_develop_cities
		complete_national_focus = PER_expand_military_facilities
		complete_national_focus = PER_foreign_retraining
		complete_national_focus = PER_trial_fifty_three
		complete_national_focus = PER_open_abadan
		complete_national_focus = PER_military_high_schools

		ELSE = {
			#generic focuses
			complete_national_focus = army_effort
			complete_national_focus = equipment_effort
			complete_national_focus = motorization_effort
			complete_national_focus = aviation_effort
			complete_national_focus = naval_effort
			complete_national_focus = flexible_navy
			complete_national_focus = industrial_effort
			complete_national_focus = construction_effort
			complete_national_focus = production_effort
		}
	}
	
	oob = "PER_1939"
	if = {
		limit = { has_dlc = "By Blood Alone" }
			set_air_oob = "PER_1936_air_bba" #intentionally using 36 oob (No significant airforce expansion)
		else = {
			set_air_oob = "PER_1936_air_legacy"
		}
	}
	set_technology = {
		tech_support = 1
		tech_recon = 1
		infantry_weapons2 = 1
		support_weapons = 1
		gw_artillery = 1
		interwar_antiair = 1
		interwar_artillery = 1

		#doctrines
		air_superiority = 1
		mass_assault = 1
		pocket_defence = 1
		defence_in_depth = 1
		fleet_in_being = 1
		battlefleet_concentration = 1
		convoy_sailing = 1

		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		mechanical_computing = 1

		#industry
		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		fuel_silos = 1
		construction1 = 1
		construction2 = 1
		dispersed_industry = 1
		dispersed_industry2 = 1
	}
	complete_special_project = {
		project = sp:sp_air_radar
	}
	if = {
		limit = {
			NOT = { has_dlc = "No Step Back" }
		}
		set_technology = {
			gwtank = 1
		}
	}
}

set_convoys = 10
set_politics = {
	ruling_party = neutrality
	last_election = "1936.1.1"
	election_frequency = 48
	elections_allowed = no
}
set_popularities = {
	democratic = PER_democratic_popularity
	fascism = PER_fascism_popularity
	communism = PER_communism_popularity
	neutrality = PER_neutrality_popularity
}
