capital = 693
set_research_slots = 3

oob = "W89_OOB"
if = {
	limit = { has_dlc = "Man the Guns" }
		set_naval_oob = "W89_1936_naval_mtg"
	else = { 
		set_naval_oob = "W89_1936_naval_legacy"
	}
}

# Starting tech
set_technology = {
	early_bomber = 1
	early_fighter = 1
	electronic_mechanical_engineering = 1
	gw_artillery = 1
	gwtank = 1
	infantry_weapons = 1
	interwar_artillery = 1
	motorised_infantry = 1
	tech_support = 1
}

if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_battleship = 1
		early_destroyer = 1
		early_heavy_cruiser = 1
		early_light_cruiser = 1
		early_submarine = 1
		transport = 1
	}
}
if = {
	limit = { has_dlc = "Man the Guns" }
	set_technology = {
		basic_battery = 1
		basic_naval_mines = 1
		basic_torpedo = 1
		early_ship_hull_cruiser = 1
		early_ship_hull_light = 1
	}
}
# Research Bonuses
set_convoys = 8


set_politics = {
    ruling_party = communism
    last_election = "1920.1.3"
    election_frequency = 48
    elections_allowed = no
}

set_popularities = {
	absolutist = 5
	communism = 16
	democratic = 66
	fascism = 7
	neutrality = 3
	radical = 3
}

add_opinion_modifier = { target = ALG modifier = positive_165 }
add_opinion_modifier = { target = ARG modifier = positive_75 }
add_opinion_modifier = { target = BEN modifier = positive_17 }
add_opinion_modifier = { target = COL modifier = positive_75 }
add_opinion_modifier = { target = FIN modifier = negative_100 }
add_opinion_modifier = { target = GER modifier = positive_140 }
add_opinion_modifier = { target = IRE modifier = negative_15 }
add_opinion_modifier = { target = ITA modifier = positive_200 }
add_opinion_modifier = { target = PRU modifier = positive_30 }
add_opinion_modifier = { target = RWA modifier = positive_25 }
add_opinion_modifier = { target = U73 modifier = positive_195 }
add_opinion_modifier = { target = V00 modifier = positive_20 }
add_opinion_modifier = { target = V01 modifier = negative_30 }
add_opinion_modifier = { target = W25 modifier = positive_111 }
add_opinion_modifier = { target = W44 modifier = negative_100 }
add_opinion_modifier = { target = W71 modifier = positive_41 }
add_opinion_modifier = { target = W88 modifier = negative_200 }
add_opinion_modifier = { target = W90 modifier = positive_114 }
add_opinion_modifier = { target = W91 modifier = negative_25 }
add_opinion_modifier = { target = W92 modifier = negative_5 }
add_opinion_modifier = { target = W93 modifier = negative_30 }
add_opinion_modifier = { target = W94 modifier = positive_10 }
add_opinion_modifier = { target = W96 modifier = positive_15 }
add_opinion_modifier = { target = W97 modifier = positive_18 }
add_opinion_modifier = { target = W98 modifier = negative_30 }
add_opinion_modifier = { target = W99 modifier = negative_30 }
add_opinion_modifier = { target = X19 modifier = negative_200 }
add_opinion_modifier = { target = X21 modifier = negative_25 }
add_opinion_modifier = { target = X24 modifier = positive_62 }
add_opinion_modifier = { target = X25 modifier = negative_200 }
add_opinion_modifier = { target = X37 modifier = positive_5 }
add_opinion_modifier = { target = X38 modifier = positive_35 }
add_opinion_modifier = { target = X61 modifier = positive_30 }
add_opinion_modifier = { target = X64 modifier = negative_100 }
add_opinion_modifier = { target = X74 modifier = negative_25 }
add_opinion_modifier = { target = X79 modifier = negative_35 }
add_opinion_modifier = { target = XSM modifier = negative_10 }



add_ideas = {
	volunteer_only
	low_economic_mobilisation
	export_focus
	culture_berber
}
set_stability = 0.60
set_war_support = 0.60
create_country_leader = {
    name = "Muhammad al-Jazuli"
    desc = "POLITICS_MUHAMMAD_AL-JAZULI_DESC"
    picture = "gfx/leaders/OC/portrait_IRQ_Yusuf_Salman_Yusuf.dds"
    expire = "1965.1.1"
    ideology = leninism
    traits = {
    }
}
create_corps_commander = {
	name = "Muhammad al-Shawiyyati"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "al-Karim al-Sahrawi"
	picture = ""
	traits = { }
	skill = 2
	attack_skill = 1
	defense_skill = 3
	planning_skill = 3
	logistics_skill = 2
}

create_corps_commander = {
	name = "Mustafa al-Zanatawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Abd Belkadi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Zanatawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Muhammad al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Mustafa al-Sahrawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Ahmed al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Ahmed Belkadi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Ahmed al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Zanatawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Muhammad Mukrani"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 2
}

create_corps_commander = {
	name = "Muhammad al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "al-Karim al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "al-Karim al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Mustafa al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Mustafa Belkadi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Abd al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "al-Karim Mukrani"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Abd al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Abd al-Shawiyyati"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Mustafa al-Jazuli"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 2
}

create_corps_commander = {
	name = "Khalid Belkadi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Ahmed Belkadi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Mustafa al-Sahrawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "al-Karim Mukrani"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Muhammad al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "al-Karim Belkadi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "al-Karim al-Zanatawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 2
}

create_corps_commander = {
	name = "Abd al-Zanatawi"
	picture = ""
	traits = { }
	skill = 2
	attack_skill = 3
	defense_skill = 3
	planning_skill = 3
	logistics_skill = 1
}

create_corps_commander = {
	name = "al-Karim al-Shawiyyati"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Muhammad al-Zanatawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Zanatawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Shawiyyati"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Abd al-Shiluhi"
	picture = ""
	traits = { }
	skill = 2
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Mustafa al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Sahrawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Abd al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Ahmed al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Rifi"
	picture = ""
	traits = { }
	skill = 2
	attack_skill = 3
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 3
}

create_corps_commander = {
	name = "Khalid al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Abd Belkadi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Ahmed al-Sahrawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Muhammad al-Shiluhi"
	picture = ""
	traits = { }
	skill = 2
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 3
}

create_corps_commander = {
	name = "Abd al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Abd al-Zanatawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 2
}

create_corps_commander = {
	name = "Muhammad al-Rifi"
	picture = ""
	traits = { }
	skill = 2
	attack_skill = 1
	defense_skill = 3
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Rifi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 2
}

create_corps_commander = {
	name = "Abd Mukrani"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Khalid al-Shawiyyati"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Khalid al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Mustafa al-Shawiyyati"
	picture = ""
	traits = { }
	skill = 2
	attack_skill = 1
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Mustafa Belkadi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Zanatawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Ahmed Mukrani"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Muhammad al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Muhammad al-Jazuli"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Ahmed Belkadi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 2
}

create_corps_commander = {
	name = "Muhammad al-Sahrawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Ahmed Mukrani"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "al-Karim al-Jazuli"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Sahrawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Sahrawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 2
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
}

create_corps_commander = {
	name = "Khalid al-Sahrawi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 1
}

create_navy_leader = {
	name = "Ahmed al-Shiluhi"
	picture = ""
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	maneuvering_skill = 1
	coordination_skill = 2
}

### VARIANTS ###
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	create_equipment_variant = {
		name = "Early Battleship"
		type = battleship_1
		upgrades = {
			ship_armor_upgrade = 1
			ship_engine_upgrade = 1
			ship_gun_upgrade = 1
			ship_reliability_upgrade = 1
		}
	}

	create_equipment_variant = {
		name = "Early Destroyer"
		type = destroyer_1
		upgrades = {
			destroyer_engine_upgrade = 1
			ship_ASW_upgrade = 1
			ship_anti_air_upgrade = 1
			ship_torpedo_upgrade = 1
		}
	}

	create_equipment_variant = {
		name = "Early Heavy Cruiser"
		type = heavy_cruiser_1
		upgrades = {
			ship_armor_upgrade = 1
			ship_engine_upgrade = 1
			ship_gun_upgrade = 1
			ship_reliability_upgrade = 1
		}
	}

	create_equipment_variant = {
		name = "Early Light Cruiser"
		type = light_cruiser_1
		upgrades = {
			ship_anti_air_upgrade = 1
			ship_engine_upgrade = 1
			ship_gun_upgrade = 1
			ship_reliability_upgrade = 1
		}
	}

	create_equipment_variant = {
		name = "Early Submarine"
		type = submarine_1
		upgrades = {
			ship_reliability_upgrade = 1
			sub_engine_upgrade = 1
			sub_stealth_upgrade = 1
			sub_torpedo_upgrade = 1
		}
	}

}
if = {
	limit = { has_dlc = "Man the Guns" }
	create_equipment_variant = {
		name = "Early Destroyer"
		type = ship_hull_light_1
		name_group = W89_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_fire_control_system_slot = empty
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_depth_charge_1
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Early Heavy Cruiser"
		type = ship_hull_cruiser_1
		name_group = W89_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_battery_slot = ship_medium_battery_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_secondaries_slot = ship_secondaries_1
			mid_1_custom_slot = ship_secondaries_1
			mid_2_custom_slot = ship_medium_battery_1
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Early Light Cruiser"
		type = ship_hull_cruiser_1
		name_group = W89_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_secondaries_slot = ship_secondaries_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = ship_light_battery_1
			rear_1_custom_slot = empty
		}
	}
}
