﻿add_namespace = tabrasa

####Tabula Rasa politics


#hidden event to give Germany advisor tech bonuses 
country_event = {
	id = tabrasa.1
	
	
	hidden = yes
	fire_only_once = yes
	trigger = { 
		tag = GER
		}
		
	immediate = {
		hidden_effect = {
			GER = {	
	

			
if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			early_bombs = 1
			aircraft_construction = 1
			iw_small_airframe = 1
		}
	create_equipment_variant = {
		name = "Bf 109" 
		type = small_plane_airframe_0
		design_team = mio:GER_focke_wulf_organization
		modules = {
			fixed_main_weapon_slot = heavy_mg_4x
			fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
			engine_type_slot = engine_2_1x
			special_type_slot_1 = self_sealing_fuel_tanks_small
		}
		icon = "GFX_GER_fighter1_medium"
	}
	else = {
			add_ideas = { messerschmitt }	
			set_technology = { early_fighter = 1 } 
	}
}			
		set_country_flag = CAF_GER_tabrasa			
	add_ideas = {
	}
# Starting tech	

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			iw_medium_airframe = 1
		}
	create_equipment_variant = {
		name = "Ju 87"
		type = small_plane_cas_airframe_0
		design_team = mio:GER_focke_wulf_organization
		modules = {
			fixed_main_weapon_slot = bomb_locks
			fixed_auxiliary_weapon_slot_1 = bomb_locks
			engine_type_slot = engine_2_1x
			special_type_slot_1 = hmg_defense_turret
			special_type_slot_2 = dive_brakes_small
		}
		icon = "GFX_GER_CAS1_medium"
	}
	else = {
			add_ideas = { junkers }		
			set_technology = { CAS1 = 1 }  
	}
}

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			iw_medium_airframe = 1
		}
	create_equipment_variant = {
		name = "Do 17"
		type = medium_plane_airframe_0
		design_team = mio:GER_focke_wulf_organization
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_2_3x
			special_type_slot_1 = hmg_defense_turret_2x
			special_type_slot_2 = hmg_defense_turret_2x
			special_type_slot_3 = self_sealing_fuel_tanks_medium
			special_type_slot_4 = empty
		}
		icon = "GFX_GER_medium_plane_1_medium"
	}
	else = {
			add_ideas = { focke_wulf }		
			set_technology = { early_bomber = 1 } 
	}
}

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
		basic_heavy_tank_chassis = 1
		engine_tech_1 = 1
		armor_tech_1 = 1
	}
}
	

if = {
	limit = {
		has_dlc = "Man the Guns"
	}
		add_research_slot = 1
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_dp_light_battery = 1
		panzerschiffe = 1
		basic_torpedo = 1
		basic_light_battery = 1
#		basic_medium_battery = 1
		basic_heavy_battery = 1
		coastal_defense_ships = 1
		basic_depth_charges = 1
		sonar = 1
		smoke_generator = 1
		mtg_transport = 1
		basic_cruiser_armor_scheme = 1
		basic_submarine_snorkel = 1	
		cruiser_submarines = 1
		early_ship_hull_submarine = 1
	}
}


if = {
	limit = {
		has_dlc = "No Step Back"
	}
	create_equipment_variant = {
		name = "Leichttraktor"
		type = light_tank_chassis_0
		design_team = mio:GER_henschel_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_small_cannon
			turret_type_slot = tank_light_two_man_tank_turret
			suspension_type_slot = tank_christie_suspension
			armor_type_slot = tank_cast_armor
			engine_type_slot = tank_diesel_engine
			special_type_slot_1 = tank_radio_2
		}
		upgrades = {
			tank_nsb_engine_upgrade = 5
			tank_nsb_armor_upgrade = 5
		}
		obsolete = yes
		icon = "gfx/interface/technologies/gwtank.dds"
	}
	create_equipment_variant = {
		name = "Panzer I Ausf. A"
		type = light_tank_chassis_1
		design_team = mio:GER_henschel_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_high_velocity_cannon
			turret_type_slot = tank_light_three_man_tank_turret
			suspension_type_slot = tank_christie_suspension
			armor_type_slot = tank_cast_armor
			engine_type_slot = tank_diesel_engine
			special_type_slot_1 = secondary_turret_small_cannon
			special_type_slot_2 = sloped_armor
			special_type_slot_3 = wet_ammo_storage
			special_type_slot_4 = tank_radio_2
		}
		upgrades = {
				tank_nsb_engine_upgrade = 20
				tank_nsb_armor_upgrade = 2
		}
		icon = "gfx/interface/technologies/ger_basic_light_tank.dds"
	}
	create_equipment_variant = {
			name = "Panzer III Ausf. A"
			type = medium_tank_chassis_1
		design_team = mio:GER_henschel_organization
			parent_version = 0
			modules = {
				main_armament_slot = tank_high_velocity_cannon
				turret_type_slot = tank_medium_three_man_tank_turret
				suspension_type_slot = tank_christie_suspension
				armor_type_slot = tank_cast_armor
				engine_type_slot = tank_diesel_engine
			special_type_slot_1 = secondary_turret_small_cannon
			special_type_slot_2 = sloped_armor
			special_type_slot_3 = wet_ammo_storage
			special_type_slot_4 = tank_radio_2
			}
			upgrades = {
				tank_nsb_engine_upgrade = 15
				tank_nsb_armor_upgrade = 0
			}
			icon = "gfx/interface/technologies/ger_basic_main_tank.dds"
		}
	create_equipment_variant = {
		name = "Neubaufahrzeug Ausf. A"
		type = heavy_tank_chassis_1
		design_team = mio:GER_henschel_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_heavy_cannon
			turret_type_slot = tank_heavy_three_man_tank_turret
			suspension_type_slot = tank_christie_suspension
			armor_type_slot = tank_cast_armor
			engine_type_slot = tank_diesel_engine
			special_type_slot_1 = secondary_turret_small_cannon
			special_type_slot_2 = sloped_armor
			special_type_slot_3 = wet_ammo_storage
			special_type_slot_4 = tank_radio_2
		}
		upgrades = {
				tank_nsb_engine_upgrade = 2
				tank_nsb_armor_upgrade = 0
		}
		icon = "gfx/interface/technologies/ger_basic_heavy_tank.dds"
	}
	add_equipment_to_stockpile = {
		type = light_tank_chassis_1
		amount = 1000
		variant_name = "Panzer I Ausf. A"
	}

}
		
	
		
		
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_light_cruiser = 1
		early_submarine = 1
		early_battlecruiser = 1
		transport = 1
	}
}

if = {
	limit = { has_dlc = "Man the Guns" }
	# Destroyers #
	create_equipment_variant = {
		name = "Zerstörer 1932 Class"			
		type = ship_hull_light_1
		design_team = mio:GER_blohm_und_voss_organization
		name_group = GER_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = dp_light_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_torpedo_1
			rear_1_custom_slot = ship_depth_charge_1
		}
	}
	# Light Cruisers #
	create_equipment_variant = {
		name = "Tritt Class"					
		type = ship_hull_cruiser_1
		design_team = mio:GER_blohm_und_voss_organization
		name_group = GER_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_medium_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = dp_light_battery_2
			rear_1_custom_slot = ship_depth_charge_1
		}
	}
	# Heavy Cruisers #
	create_equipment_variant = {
		name = "Emden Class"					
		type = ship_hull_cruiser_1
		design_team = mio:GER_blohm_und_voss_organization
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = dp_ship_secondaries_2
			rear_1_custom_slot = ship_medium_battery_2
		}
	}
	# Costal Defense #
	create_equipment_variant = {
		name = "Bremse Class"
		type = ship_hull_cruiser_coastal_defense_ship
		design_team = mio:GER_blohm_und_voss_organization
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			mid_1_custom_slot = dp_ship_secondaries_2
			mid_2_custom_slot = ship_airplane_launcher_1
			rear_1_custom_slot = ship_light_medium_battery_2
			front_1_custom_slot = ship_anti_air_2
		}
	}
		create_equipment_variant = {
			name = "U-II Class"
			type = ship_hull_submarine_1
			design_team = mio:GER_blohm_und_voss_organization
			name_group = GER_SS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_torpedo_slot = ship_torpedo_sub_1
				fixed_ship_engine_slot = sub_ship_engine_1
				rear_1_custom_slot = ship_torpedo_sub_1
			}
		}
		create_equipment_variant = {
			name = "KU-IV Class"
			type = ship_hull_cruiser_submarine
			design_team = mio:GER_blohm_und_voss_organization
			name_group = GER_SS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_torpedo_slot = ship_torpedo_sub_1
				fixed_ship_engine_slot = sub_ship_engine_1
				front_1_custom_slot = ship_airplane_launcher_1
				mid_1_custom_slot = ship_sub_snorkel_1
				rear_1_custom_slot = ship_torpedo_sub_1
			}
		}
		create_equipment_variant = {
		name = "Admiral Scheer Class"
		type = ship_hull_cruiser_panzerschiff
		design_team = mio:GER_blohm_und_voss_organization
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			fixed_ship_armor_slot = ship_armor_cruiser_2
			front_1_custom_slot = ship_anti_air_2
			mid_1_custom_slot = dp_ship_secondaries_2
			mid_2_custom_slot = dp_ship_secondaries_2
			rear_1_custom_slot = ship_torpedo_1
    	}
	}
}	

			
			}
		}
	}
	option = { #great
	}
}



#hidden event to give Japan advisor tech bonuses 
country_event = {
	id = tabrasa.2
	
	
	hidden = yes
	fire_only_once = yes
	trigger = { 
		tag = JAP
		}
		
	immediate = {
		hidden_effect = {
			JAP = {	
			
	#adding ministers
	add_ideas = {
	}
			
# Starting tech
		
if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			early_bombs = 1
			aircraft_construction = 1
			iw_small_airframe = 1
			iw_medium_airframe = 1
		}
	create_equipment_variant = {
		name = "Ki-10"
		type = small_plane_airframe_0
		design_team = mio:JAP_yokosuka_organization
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			fixed_auxiliary_weapon_slot_1 = light_mg_2x
			engine_type_slot = engine_2_1x
			special_type_slot_1 = lmg_defense_turret
		}
		icon = "GFX_JAP_fighter1_medium"
	}
	create_equipment_variant = {
		name = "A4N"
		type = cv_small_plane_airframe_0
		design_team = mio:JAP_yokosuka_organization
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			fixed_auxiliary_weapon_slot_1 = light_mg_2x
			engine_type_slot = engine_2_1x
			special_type_slot_1 = lmg_defense_turret
		}
		icon = "GFX_JAP_cv_fighter1_medium"
	}
	create_equipment_variant = {
		name = "B2M"
		type = cv_small_plane_naval_bomber_airframe_0
		design_team = mio:JAP_yokosuka_organization
		modules = {
			fixed_main_weapon_slot = torpedo_mounting
			engine_type_slot = engine_2_1x
			special_type_slot_1 = lmg_defense_turret
			special_type_slot_2 = empty
		}
		icon = "GFX_JAP_cv_naval_bomber2_medium"
	}
	create_equipment_variant = {
		name = "B2A"
		type = small_plane_naval_bomber_airframe_0
		design_team = mio:JAP_yokosuka_organization
		modules = {
			fixed_main_weapon_slot = torpedo_mounting
			engine_type_slot = engine_2_1x
			special_type_slot_1 = lmg_defense_turret
			special_type_slot_2 = empty
		}
		icon = "GFX_JAP_cv_naval_bomber1_medium"
	}
	else = {
		set_technology = {
			early_fighter = 1
			cv_early_fighter = 1
			cv_naval_bomber1 = 1
			naval_bomber1 = 1
		}
	}
}



if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
	}
}
if = {
	limit = {
		has_dlc = "La Resistance"
	}
	set_technology = {
		armored_car1 = 1
	}
}	

if = {
	limit = {
		has_dlc = "No Step Back"
	}
	create_equipment_variant = {
		name = "Type 94 Tankette"
		type = light_tank_chassis_0
			design_team = mio:JAP_osaka_army_arsenal_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_small_cannon
			turret_type_slot = tank_light_two_man_tank_turret
			suspension_type_slot = tank_christie_suspension
			armor_type_slot = tank_cast_armor
			engine_type_slot = tank_diesel_engine
		}
		upgrades = {
			tank_nsb_engine_upgrade = 5
			tank_nsb_armor_upgrade = 5
		}
		obsolete = yes
		icon = "gfx/interface/technologies/JAP_basic_light_tank.dds"
	}
	create_equipment_variant = {
		name = "Type 95 Ha-Go"
		type = light_tank_chassis_1
			design_team = mio:JAP_osaka_army_arsenal_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_high_velocity_cannon
			turret_type_slot = tank_light_three_man_tank_turret
			suspension_type_slot = tank_christie_suspension
			armor_type_slot = tank_cast_armor
			engine_type_slot = tank_diesel_engine
			special_type_slot_1 = secondary_turret_small_cannon
			special_type_slot_2 = sloped_armor
			special_type_slot_3 = wet_ammo_storage
		}
		upgrades = {
			tank_nsb_engine_upgrade = 20
			tank_nsb_armor_upgrade = 2
		}
		icon = "gfx/interface/technologies/JAP_imp_light_tank.dds"
	}
	add_equipment_to_stockpile = {
		type = light_tank_chassis_1
		amount = 1000
		variant_name = "Type 95 Ha-Go"
	}
}
	
if = {
	limit = {
		has_dlc = "Man the Guns"
	}
		add_research_slot = 1
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_dp_light_battery = 1
		basic_torpedo = 1
		basic_light_battery = 1
#		basic_medium_battery = 1
		basic_heavy_battery = 1
		coastal_defense_ships = 1
		basic_depth_charges = 1
		sonar = 1
		mtg_transport = 1
		basic_cruiser_armor_scheme = 1
		early_ship_hull_submarine = 1
		early_ship_hull_carrier = 1
		basic_submarine_snorkel = 1	
	}
}
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_light_cruiser = 1
		early_submarine = 1
		early_battlecruiser = 1
		early_carrier = 1
		transport = 1
	}
}
	
if = {
	limit = { has_dlc = "Man the Guns" }
	# Destroyers #
	create_equipment_variant = {
		name = "Hatsutaka Class"			
		type = ship_hull_light_1
			design_team = mio:JAP_sasebo_naval_arsenal_organization
		name_group = JAP_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = dp_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_torpedo_1
			rear_1_custom_slot = ship_depth_charge_1
		}
	}
	# Light Cruisers #
	create_equipment_variant = {
		name = "Katori Class"					
		type = ship_hull_cruiser_1
			design_team = mio:JAP_sasebo_naval_arsenal_organization
		name_group = JAP_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_medium_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = dp_light_battery_1
			rear_1_custom_slot = ship_depth_charge_1
		}
	}
	# Heavy Cruisers #
	create_equipment_variant = {
		name = "Nagara Class"					
		type = ship_hull_cruiser_1
			design_team = mio:JAP_sasebo_naval_arsenal_organization
		name_group = JAP_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = dp_ship_secondaries_2
			rear_1_custom_slot = ship_medium_battery_2
		}
	}
	# Costal Defense #
	create_equipment_variant = {
		name = "Asashio Class"
		type = ship_hull_cruiser_coastal_defense_ship
			design_team = mio:JAP_sasebo_naval_arsenal_organization
		name_group = JAP_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			mid_1_custom_slot = dp_ship_secondaries_2
			mid_2_custom_slot = ship_airplane_launcher_1
			rear_1_custom_slot = ship_light_medium_battery_2
			front_1_custom_slot = ship_anti_air_2
		}
	}
		create_equipment_variant = {
			name = "I-1 Class"
			type = ship_hull_submarine_1
			design_team = mio:JAP_sasebo_naval_arsenal_organization
			name_group = JAP_SS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_torpedo_slot = ship_torpedo_sub_1
				fixed_ship_engine_slot = sub_ship_engine_1
				rear_1_custom_slot = ship_torpedo_sub_1
			}
		}
			create_equipment_variant = {
				name = "A-1 Class"
				type = ship_hull_cruiser_submarine
			design_team = mio:JAP_sasebo_naval_arsenal_organization
				name_group = JAP_SS_HISTORICAL
				parent_version = 0
				modules = {
					fixed_ship_torpedo_slot = ship_torpedo_sub_1
					fixed_ship_engine_slot = sub_ship_engine_1
					front_1_custom_slot = ship_airplane_launcher_1
					mid_1_custom_slot = ship_sub_snorkel_1
					rear_1_custom_slot = ship_torpedo_sub_1
				}
			}
		
		create_equipment_variant = {
			name = "Kaga Class"
			type = ship_hull_carrier_conversion_bb
			design_team = mio:JAP_yokosuka_naval_arsenal_organization
			name_group = JAP_CV_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_deck_slot_1 = ship_deck_space
				fixed_ship_deck_slot_2 = ship_deck_space
				fixed_ship_anti_air_slot = ship_anti_air_2
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = heavy_ship_engine_1
				fixed_ship_secondaries_slot = dp_ship_secondaries_2
				mid_1_custom_slot = ship_deck_space
			}
		}
	}

			
			}
		}
	}
	option = { #great
	}
}


#hidden event to give Italy advisor tech bonuses 
country_event = {
	id = tabrasa.3
	
	
	hidden = yes
	fire_only_once = yes
	trigger = { 
		tag = ITA
		}
		
	immediate = {
		hidden_effect = {
			ITA = {	
	add_ideas = {
		
	}			
			
if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			early_bombs = 1
			aircraft_construction = 1
			iw_small_airframe = 1
		}
	create_equipment_variant = {
		name = "CR.32" #
		type = small_plane_airframe_0
		design_team = mio:ITA_savoia_marchetti_organization
		modules = {
			fixed_main_weapon_slot = heavy_mg_4x
			fixed_auxiliary_weapon_slot_1 = heavy_mg_4x
			engine_type_slot = engine_2_1x
			special_type_slot_1 = lmg_defense_turret
			special_type_slot_2 = self_sealing_fuel_tanks_small
		}
		icon = "GFX_ITA_early_fighter_medium"
	}
	else = {
		set_technology = {
			early_fighter = 1
		}
	}
}		
			
			
			

# Starting tech
if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			iw_medium_airframe = 1
		}
	create_equipment_variant = {
		name = "Ca.101" #
		type = medium_plane_airframe_0
		design_team = mio:ITA_savoia_marchetti_organization
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_2_3x
			special_type_slot_1 = hmg_defense_turret_2x
			special_type_slot_2 = hmg_defense_turret_2x
			special_type_slot_3 = self_sealing_fuel_tanks_medium
			special_type_slot_4 = empty
		}
		icon = "GFX_ITA_early_bomber_medium"
	}
	else = {
		set_technology = {
			early_bomber = 1
		}
	}
}
if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
	}
}	

if = {
	limit = {
		has_dlc = "No Step Back"
	}
	create_equipment_variant = {
		name = "L3/35"
		type = light_tank_chassis_1
		design_team = mio:ITA_fiat_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_high_velocity_cannon
			turret_type_slot = tank_light_three_man_tank_turret
			suspension_type_slot = tank_christie_suspension
			armor_type_slot = tank_cast_armor
			engine_type_slot = tank_diesel_engine
			special_type_slot_1 = secondary_turret_small_cannon
			special_type_slot_2 = sloped_armor
			special_type_slot_3 = wet_ammo_storage
			special_type_slot_4 = tank_radio_2
		}
		upgrades = {
			tank_nsb_engine_upgrade = 18
			tank_nsb_armor_upgrade = 0
		}
		icon = "gfx/interface/technologies/ITA_basic_light_tank.dds"
	}
	add_equipment_to_stockpile = {
		type = light_tank_chassis_1
		amount = 1000
		variant_name = "L3/35"
	}
}
if = {
	limit = {
		has_dlc = "Man the Guns"
	}
		add_research_slot = 1
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_dp_light_battery = 1
		basic_torpedo = 1
		basic_light_battery = 1
#		basic_medium_battery = 1
		basic_heavy_battery = 1
		coastal_defense_ships = 1
		basic_depth_charges = 1
		sonar = 1
		mtg_transport = 1
		basic_cruiser_armor_scheme = 1
		basic_submarine_snorkel = 1	
		cruiser_submarines = 1
		early_ship_hull_submarine = 1
	}
}

		
		
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_light_cruiser = 1
		early_submarine = 1
		early_battlecruiser = 1
		transport = 1
	}
}

if = {
	limit = { has_dlc = "Man the Guns" }
	# Destroyers #
	create_equipment_variant = {
		name = "Navigatori Class"			
		type = ship_hull_light_1
		design_team = mio:ITA_cantiere_navale_di_ancona_organization
		name_group = ITA_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = dp_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_torpedo_1
			rear_1_custom_slot = ship_depth_charge_1
		}
	}
	# Light Cruisers #
	create_equipment_variant = {
		name = "Giussano Class"					
		type = ship_hull_cruiser_1
		design_team = mio:ITA_cantiere_navale_di_ancona_organization
		name_group = ITA_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_medium_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = dp_light_battery_1
			rear_1_custom_slot = ship_depth_charge_1
		}
	}
	# Heavy Cruisers #
	create_equipment_variant = {
		name = "Montecuccoli Class"					
		type = ship_hull_cruiser_1
		design_team = mio:ITA_cantiere_navale_di_ancona_organization
		name_group = ITA_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = dp_ship_secondaries_2
			rear_1_custom_slot = ship_medium_battery_2
		}
	}
	# Costal Defense #
	create_equipment_variant = {
		name = "Zara Class"
		type = ship_hull_cruiser_coastal_defense_ship
		design_team = mio:ITA_cantiere_navale_di_ancona_organization
		name_group = ITA_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_2
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = ship_sonar_1
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_2
			fixed_ship_secondaries_slot = dp_ship_secondaries_2
			mid_1_custom_slot = dp_ship_secondaries_2
			mid_2_custom_slot = ship_airplane_launcher_1
			rear_1_custom_slot = ship_light_medium_battery_2
			front_1_custom_slot = ship_anti_air_2
		}
	}
		create_equipment_variant = {
			name = "Bandiera Class"
			type = ship_hull_submarine_1
		design_team = mio:ITA_cantiere_navale_di_ancona_organization
			name_group = ITA_SS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_torpedo_slot = ship_torpedo_sub_1
				fixed_ship_engine_slot = sub_ship_engine_1
				rear_1_custom_slot = ship_torpedo_sub_1
			}
		}
		create_equipment_variant = {
			name = "Sirena Class"
			type = ship_hull_cruiser_submarine
		design_team = mio:ITA_cantiere_navale_di_ancona_organization
			name_group = ITA_SS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_torpedo_slot = ship_torpedo_sub_1
				fixed_ship_engine_slot = sub_ship_engine_1
				front_1_custom_slot = ship_airplane_launcher_1
				mid_1_custom_slot = ship_sub_snorkel_1
				rear_1_custom_slot = ship_torpedo_sub_1
			}
		}
}	

			
			}
		}
	}
	option = { #great
	}
}



country_event = {
	id = tabrasa.4
	hidden = yes
	fire_only_once = yes
	trigger = { 
		is_ai = yes
		}
immediate = {
	hidden_effect = {


		every_country = {
			limit = { 
				is_ai = yes
						NOT = { 
						tag = GER
						tag = JAP
						tag = ITA
						}
			}
			random_list = {
			
		8 = {
			set_politics = {
				ruling_party = neutrality
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.2
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.5
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.2
			}	
		}#Rad10%			
		8 = {
			set_politics = {
				ruling_party = neutrality
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.5
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.3
			}	
		}#Rad10%			
		8 = {
			set_politics = {
				ruling_party = neutrality
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.3
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.5
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}	
		}#Rad10%			
		8 = {
			set_politics = {
				ruling_party = neutrality
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.3
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.5
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}	
		}#Rad10%			
		12 = {
			set_politics = {
				ruling_party = fascism
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.3
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.5
			}	
		}#Rad10%			
		12 = {
			set_politics = {
				ruling_party = fascism
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.3
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.5
			}	
		}#Rad10%			
		12 = {
			set_politics = {
				ruling_party = communism
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.5
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.3
			}	
		}#Rad10%			
		10 = {
			set_politics = {
				ruling_party = communism
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.5
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.3
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}	
		}#Rad10%			
		10 = {
			set_politics = {
				ruling_party = democratic
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.3
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.5
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}	
		}#Rad10%			
		12 = {
			set_politics = {
				ruling_party = democratic
				elections_allowed = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.5
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.3
			}	
		}#Rad10%
				
				
				
				
			}#RadList
		}#cntry




		}#Hid
	}#Imed

	option = { #great
	}
}#CountEvent





