capital = 461
OOB = "MOR_AFR"
set_naval_oob= "MOR_naval"
set_research_slots = 2
starting_train_buffer = 2.0

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
		basic_heavy_tank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
		improved_light_tank_chassis = 1
		basic_heavy_tank_chassis = 1
		engine_tech_1 = 1
	}
}
set_technology = {
	### MOD ###
	basic_train = 1
	camelry = 1
	### General ###
	electronic_mechanical_engineering = 1

	### INF ###
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_support = 1
	tech_recon = 1
	tech_engineers = 1
	tech_mountaineers = 1
	tech_trucks = 1
	motorised_infantry = 1
	gw_artillery = 1
}

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			aa_cannon_1 = 1
			early_bombs = 1
			engines_1 = 1
			engines_2 = 1
			iw_small_airframe = 1
			basic_small_airframe = 1
			iw_medium_airframe = 1
			basic_medium_airframe = 1
			iw_large_airframe = 1
			basic_large_airframe = 1
			air_torpedoe_1 = 1
		}
		MAF_BBA_air_variants = yes
	else = {
		set_technology = {
			early_fighter = 1
			fighter1 = 1
			naval_bomber1 = 1
			early_bomber = 1
			strategic_bomber1 = 1
			tactical_bomber1 = 1
			CAS1 = 1
			cv_early_fighter = 1
			cv_naval_bomber1 = 1
			cv_CAS1 = 1
		}
	}
}

### Navy - MtG ###
set_technology = {
	early_ship_hull_light = 1
	basic_ship_hull_light = 1
	early_ship_hull_cruiser = 1
	basic_ship_hull_cruiser = 1
	
	basic_naval_mines = 1

	## Modules##
	basic_battery = 1
	basic_light_battery = 1
	smoke_generator = 1
	
	### Transport ###
	mtg_transport = 1
}

set_war_support = 0.19
set_stability = 0.18
add_political_power = -134

if = {
	limit = {
		is_ai = no
	}
	set_rule = {
		can_send_volunteers = yes
		can_be_spymaster = yes
		can_decline_call_to_war = yes
		can_not_declare_war = no
		can_puppet = yes
		units_deployed_to_overlord = yes
	}
}

#Intro event
country_event = { id = mor.1 days = 1 }
GER = { 
	country_event = { 
		id = mor.1 
		days = 63
	}
}

GER = {
	set_autonomy = {
		target = MOR
		autonomous_state = kr_autonomous_puppet
	}
}

set_politics = {
	ruling_party = paternal_autocrat
	last_election = "1888.6.15"
	election_frequency = 48
	elections_allowed = no
}

set_popularities = {
	totalist = 5
	radical_socialist = 5
	syndicalist = 5
	social_democrat = 8
	social_liberal = 6
	market_liberal = 13
	social_conservative = 12
	authoritarian_democrat = 15
	paternal_autocrat = 24
	national_populist = 7
}
add_ideas = {
	Generic_Colonial_Nation_lesser
	MOR_germanmission2_idea
	MOR_Thami_El_Glaoui_hog_pau
	MOR_Mansour_Fahmi_for_pau
	MOR_Muhammad_Taqi_ud_Din_bin_Abdil_Qadir_Al_Hilali_eco_pau
	MOR_Abdullah_Kannoun_sec_pau
}

create_country_leader = {
	name = "Mohammed V"
	desc = "POLITICS_MOHAMMED_ALAOUITE_DESC"
	picture = "gfx/leaders/MOR/Portrait_MOR_Mohammed_V.png"
	expire = "1.1.1"
	ideology = national_populist_subtype
}
create_country_leader = {
	name = "Mohammed V"
	desc = "POLITICS_MOHAMMED_ALAOUITE_DESC"
	picture = "gfx/leaders/MOR/Portrait_MOR_Mohammed_V.png"
	expire = "1.1.1"
	ideology = absolute_monarchy_subtype
}
create_country_leader = {
	name = "Mohammed V"
	desc = "POLITICS_MOHAMMED_ALAOUITE_DESC"
	picture = "gfx/leaders/MOR/Portrait_MOR_Mohammed_V.png"
	expire = "1.1.1"
	ideology = prussian_constitutionalism_subtype
}
create_country_leader = {
	name = "Mohammed V"
	desc = "POLITICS_MOHAMMED_ALAOUITE_DESC"
	picture = "gfx/leaders/MOR/Portrait_MOR_Mohammed_V.png"
	expire = "1.1.1"
	ideology = conservative_populism_subtype
}
create_country_leader = {
	name = "Mohammed V"
	desc = "POLITICS_MOHAMMED_ALAOUITE_DESC"
	picture = "gfx/leaders/MOR/Portrait_MOR_Mohammed_V.png"
	expire = "1.1.1"
	ideology = marlib_national_liberalism_subtype
}
create_country_leader = {
	name = "Mohammed V"
	desc = "POLITICS_MOHAMMED_ALAOUITE_DESC"
	picture = "gfx/leaders/MOR/Portrait_MOR_Mohammed_V.png"
	expire = "1.1.1"
	ideology = centrist_subtype
}
create_country_leader = {
	name = "Mohammed V"
	desc = "POLITICS_MOHAMMED_ALAOUITE_DESC"
	picture = "gfx/leaders/MOR/Portrait_MOR_Mohammed_V.png"
	expire = "1.1.1"
	ideology = socdem_progressive_conservatism_subtype
}
create_country_leader = {
	name = "Mohamed Hassan Ouazzani"
	picture = "gfx/leaders/MOR/Portrait_MOR_Mohamed_Hassan_Ouazzani.png"
	expire = "1.1.1"
	ideology = radsoc_anarcho_syndicalist_subtype
}
create_country_leader = {
	name = "Abdallah Ibrahim"
	picture = "gfx/leaders/MOR/Portrait_MOR_Abdallah_Ibrahim.png"
	expire = "1.1.1"
	ideology = centralized_syndicalism_subtype
}
create_country_leader = {
	name = "Léon Sultan"
	picture = "gfx/leaders/MOR/Portrait_MOR_Leon_Sultan.png"
	expire = "1.1.1"
	ideology = autocratic_socialist_subtype
}


### Field Marshals ###

create_field_marshal = {
	name = "Abd el-Krim"
	portrait_path = "gfx/leaders/MOR/Portrait_MOR_Abd_el_Krim.png"
	traits = {
		old_guard
		war_hero
		expert_delegator
		commando
		trickster
	}
	skill = 4
	attack_skill = 3
	defense_skill = 4
	planning_skill = 3
	logistics_skill = 3
}

create_corps_commander = {
	name = "T'hami El Glaoui "
	traits = {
		war_hero
		politically_connected
		trickster
		skilled_staffer
	}
	portrait_path = "gfx/leaders/MOR/Portrait_MOR_Thami_el_Glaoui.png"
	skill = 2
	attack_skill = 1
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 2
}

create_corps_commander = {
	name = "Assou Oubasslam"
	portrait_path = "gfx/leaders/MOR/Portrait_MOR_Assou.png"
	traits = {
		war_hero
		cavalry_officer
		trait_mountaineer
	}
	skill = 2
	attack_skill = 3
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Amahrok Ben Mouha Amahzoune"
	traits = { brilliant_strategist old_guard }
	portrait_path = "gfx/leaders/MOR/Portrait_MOR_Amahrok_Ben_Mouha_Amahzoune.png"
	skill = 2
	attack_skill = 2
	defense_skill = 1
	planning_skill = 3
	logistics_skill = 1
}

create_corps_commander = {
	name = "Mbarek Bekkai"
	portrait_path = "gfx/leaders/MOR/Portrait_MOR_Mbarek_Bekkai.png"
	traits = { trait_reckless }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Mohamed Bachir El Bouhali"
	portrait_path = "gfx/leaders/MOR/Portrait_MOR_Mohamed_Bachir_el_Bouhali.png"
	traits = { cavalry_officer }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Benhammou El Kettani"
	portrait_path = "gfx/leaders/MOR/Portrait_MOR_Benhammou_el_Kettani.png"
	traits = {  }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Driss Ben Omar El Alami"
	portrait_path = "gfx/leaders/MOR/Portrait_MOR_Driss_Ben_Omar_el_Alami.png"
	traits = { desert_fox }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

MOR_start_naval_variant = yes