capital = 282 # Tokyo/Kanto

# Starting Stats
set_stability = 0.2 # Was one of the countries in roughest internal shape at this point in time, coup happens not even 2 months into the game
set_war_support = 0.6 # Was 0.8, but will make you have to scale up with Militarism a bit

set_research_slots = 3 # Was 4
set_fuel_ratio = 1.0

# This can't be used in a civil war duh
set_country_flag = JAP_first_strike_principle_blocked
set_country_flag = JAP_kantai_kessen_blocked


### THE IMPERIAL INFLUENCE SYSTEM ###

add_dynamic_modifier = {
	modifier = JAP_imperial_influence_dm
}

#Setting up the Faction Levels within the Imperial Influence
#Current Tiers and Influence Points:
#Tier 1: 0-9 points
#Tier 2: 10-24 points
#Tier 3: 25-39 points
#Tier 4: 40+ points - should however never be able to go above 45

set_variable = { JAP_tier_1_to_tier_2_small_gate = 5 }
set_variable = { JAP_tier_2_to_tier_3_small_gate = 20 }
set_variable = { JAP_tier_2_to_tier_3_big_gate = 15 }
set_variable = { JAP_tier_3_to_tier_4_small_gate = 35 }
set_variable = { JAP_tier_3_to_tier_4_big_gate = 30 }
set_variable = { JAP_tier_4_minimum_limit = 40 }
set_variable = { JAP_tier_4_top_limit_check = 44 }
set_variable = { JAP_tier_3_to_tier_2_small_gate = 29 }
set_variable = { JAP_tier_3_to_tier_2_big_gate = 34 }
set_variable = { JAP_tier_2_to_tier_1_small_gate = 14 }
set_variable = { JAP_tier_2_to_tier_1_big_gate = 19 }
set_variable = { JAP_tier_1_minimum_limit = 4 }
set_variable = { JAP_minimum_faction_level = 0 }
set_variable = { JAP_tier_1_gate = 9 }
set_variable = { JAP_maximum_faction_level_check = 49 }

set_variable = { JAP_small_influence_point = 5 }
set_variable = { JAP_big_influence_point = 10 } #Should probably be used rather sparingly
set_variable = { JAP_imperial_influence_interference_reset_days = 181 }

set_variable = { JAP_army_faction_influence_level = 20 } #Meddling
set_variable = { JAP_naval_faction_influence_level = 15 } #Meddling
set_variable = { JAP_zaibatsu_faction_influence_level = 15 } #Meddling
set_variable = { JAP_government_faction_influence_level = 10 } #Meddling

set_variable = { JAP_num_of_influential_imperial_factions = 0 } #Check how many Influential Faction there are
set_variable = { JAP_num_of_faction_demands = 0 } #Checks how many Demands the Imperial Factions have going on simultaneously
set_variable = { JAP_num_of_faction_demands_total = 0 } #Checks how many Demands the Imperial Factions have done throughout the game 
set_variable = { JAP_faction_demand_number_of_missions_resolved = 0 } #Checks how many Demands have been resolved throughout the game 
set_variable = { JAP_faction_demand_successful_missions = 0 } #Checks how many Demands have been achieved/successfully completed throughout the game 
set_variable = { JAP_faction_demand_failed_missions = 0 } #Checks how many Demands have been failed throughout the game 





## STATE SHINTOISM
add_dynamic_modifier = {
	modifier = JAP_state_shinotism_dm
}
set_variable = { JAP_state_shinotism_surrender_limit = 0.1 } 
set_variable = { JAP_state_shinotism_war_support_factor = 0.2 }
set_variable = { JAP_state_shinotism_stability_factor = 0 }
set_variable = { JAP_state_shinotism_pocket_penalty = 0 }
set_variable = { JAP_state_shinotism_justify_war_goal_time = 0 }
set_variable = { JAP_state_shinotism_research_speed_factor = 0 }

# THE IMPERIAL ARMY
add_dynamic_modifier = {
	modifier = JAP_imperial_army_dm
}
set_variable = { JAP_army_army_infantry_attack_factor = 0 }
set_variable = { JAP_army_army_morale_factor = 0.05 }
set_variable = { JAP_army_army_defence_factor = -0.05 }
set_variable = { JAP_army_initiative_factor = 0.1 }
set_variable = { JAP_army_army_army_artillery_attack_factor = -0.1 }
set_variable = { JAP_army_supply_consumption_factor = 0.2 }
set_variable = { JAP_army_acclimatization_cold_climate_gain_factor = 0 }
set_variable = { JAP_army_acclimatization_hot_climate_gain_factor = 0 }
set_variable = { JAP_army_army_core_attack_factor = 0 }
set_variable = { JAP_army_army_core_defence_factor = 0 }
set_variable = { JAP_army_planning_speed = 0 }
set_variable = { JAP_army_army_armor_attack_factor = 0 }
set_variable = { JAP_army_army_armor_speed_factor = 0 }
set_variable = { JAP_army_motorized_attack_factor = 0 }
set_variable = { JAP_army_mechanized_attack_factor = 0 }
set_variable = { JAP_army_org_loss_when_moving = 0 }
set_variable = { JAP_army_army_org_factor = 0 }
set_variable = { JAP_army_attrition = 0 }
set_variable = { JAP_army_air_superiority_bonus_in_combat = 0 }
set_variable = { JAP_army_coordination_bonus = 0 }
set_variable = { JAP_army_conscription = 0 }
set_variable = { JAP_army_training_time_factor = 0 }
set_variable = { JAP_army_experience_loss_factor = 0 }
set_variable = { JAP_army_max_planning_factor = 0 }
set_variable = { JAP_army_conscription_factor = 0 }
set_variable = { JAP_army_max_dig_in = 0 }
set_variable = { JAP_army_dig_in_speed_factor = 0 }

# THE IMPERIAL NAVY
add_dynamic_modifier = {
	modifier = JAP_imperial_navy_dm
}
set_variable = { JAP_navy_naval_torpedo_hit_chance_factor = 0.15 }
#set_variable = { JAP_navy_naval_torpedo_screen_penetration_factor = 0.1 }
set_variable = { JAP_navy_ships_at_battle_start = 0.1 }
set_variable = { JAP_navy_navy_max_range_factor = 0.1 }
set_variable = { JAP_navy_spotting_chance = -0.1 }
set_variable = { JAP_navy_naval_detection = -0.1 }
set_variable = { JAP_navy_naval_accidents_chance = 0.1 }
set_variable = { JAP_navy_convoy_escort_efficiency = -0.15 }
set_variable = { JAP_navy_naval_coordination = 0 }
set_variable = { JAP_navy_naval_invasion_prep_speed = 0 }
set_variable = { JAP_navy_amphibious_invasion = 0 }
set_variable = { JAP_navy_naval_heavy_gun_hit_chance_factor = 0 }
set_variable = { JAP_navy_navy_anti_air_attack_factor = 0 }
set_variable = { JAP_navy_naval_mine_hit_chance = 0 }
set_variable = { JAP_navy_naval_mines_damage_factor = 0 }
set_variable = { JAP_navy_navy_org_factor = 0 }
set_variable = { JAP_navy_experience_gain_navy_unit_factor = 0 }
set_variable = { JAP_navy_repair_speed_factor = 0}
set_variable = { JAP_navy_refit_speed = 0}
set_variable = { JAP_navy_naval_ship_recovery_chance = 0}

# THE IMPERIAL AIRFORCE SERVICES
add_dynamic_modifier = {
	modifier = JAP_army_and_naval_air_services_dm
}
set_variable = { JAP_airforce_air_nav_efficiency = 0.1 }
set_variable = { JAP_airforce_air_wing_xp_loss_when_killed_factor = 0.1 }
set_variable = { JAP_airforce_air_untrained_pilots_penalty_factor = 0.1 }
set_variable = { JAP_airforce_air_cas_efficiency = 0 }
set_variable = { JAP_airforce_sortie_efficiency = 0 }
set_variable = { JAP_airforce_air_escort_efficiency = 0 }
set_variable = { JAP_airforce_air_range_factor = 0 }
set_variable = { JAP_airforce_air_defence_factor = 0 }
set_variable = { JAP_airforce_mines_planting_by_air_factor = 0 }
set_variable = { JAP_airforce_port_strike = 0 }
set_variable = { JAP_airforce_air_mission_efficiency = 0 }
set_variable = { JAP_airforce_air_accidents_factor = 0 }
#set_variable = { JAP_airforce_navy_carrier_air_attack_factor = 0 }
#set_variable = { JAP_airforce_navy_carrier_air_targetting_factor = 0 }

# THE JAPANESE INDUSTRY
add_dynamic_modifier = {
	modifier = JAP_early_industrialization_efforts_dm
}
set_variable = { JAP_industry_industry_air_damage_factor = 0.25 } 
set_variable = { JAP_industry_lack_of_resource_penalty_factor = 0.1 }
set_variable = { JAP_industry_research_speed_factor = -0.03 }
set_variable = { JAP_industry_consumer_goods_factor = 0.3 }
set_variable = { JAP_industry_production_speed_industrial_complex_factor = 0 } 
set_variable = { JAP_industry_production_speed_arms_factory_factor = 0 } 
set_variable = { JAP_industry_production_speed_dockyard_factor = 0 }
set_variable = { JAP_industry_production_speed_buildings_factor = 0 }
set_variable = { JAP_industry_factory_energy_consumption = 0 }
set_variable = { JAP_industry_industrial_capacity_dockyard = 0 }
set_variable = { JAP_industry_industrial_capacity_factory = 0 }
set_variable = { JAP_industry_local_resources_factor = 0 }
set_variable = { JAP_industry_local_resources_coal_factor = 0 }
set_variable = { JAP_industry_convoy_retreat_speed = 0 }
set_variable = { JAP_industry_production_factory_max_efficiency_factor = 0 }
set_variable = { JAP_industry_production_factory_efficiency_gain_factor = 0 }
set_variable = { JAP_industry_special_project_speed_factor = 0 }
set_variable = { JAP_industry_line_change_production_efficiency_factor = 0 }

#ADVANCED WEAPON PROJECTS
set_variable = { JAP_advanced_weapons_production_speed_land_facility_factor = 0 }
set_variable = { JAP_advanced_weapons_production_speed_air_facility_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_tag_jet_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_tag_rocket_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_tag_tank_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_tag_artillery_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_tag_surface_ship_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_commercial_nuclear_reactor_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_nuclear_warheads_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_nuclear_bomb_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_production_speed_nuclear_reactor_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_air_intercontinental_bomber_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_air_intercontinental_bomber_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_air_mothership_aircraft_speed_factor = 0 }
set_variable = { JAP_advanced_weapons_sp_nuclear_engines_speed_factor = 0 }

# SHOWA STATISM
set_variable = { JAP_showa_statism_stability_factor = 0 } 
set_variable = { JAP_showa_statism_conscription_factor = 0 } 
set_variable = { JAP_showa_statism_consumer_goods_factor = 0 } 
set_variable = { JAP_showa_statism_political_power_factor = 0 } 
set_variable = { JAP_showa_statism_fascism_drift = 0 } 
#set_variable = { JAP_showa_statism_production_speed_industrial_complex_factor = 0 } 
#set_variable = { JAP_showa_statism_production_speed_arms_factory_factor = 0 } 
set_variable = { JAP_showa_statism_monthly_population = 0 } 
set_variable = { JAP_showa_statism_industrial_capacity_dockyard = 0 } 
set_variable = { JAP_showa_statism_industrial_capacity_factory = 0 } 
set_variable = { JAP_showa_statism_weekly_casualties_war_support = 0 } 
set_variable = { JAP_showa_statism_weekly_convoys_war_support = 0 } 
set_variable = { JAP_showa_statism_weekly_bombing_war_support = 0 } 
set_variable = { JAP_showa_statism_industry_repair_factor = 0 } 
set_variable = { JAP_showa_statism_operative_slot = 0 } 

# DAI TOA KYOUEIKEN
set_variable = { JAP_east_asia_co_prosperity_sphere_autonomy_manpower_share_from_subjects = 0 } 
set_variable = { JAP_east_asia_co_prosperity_sphere_resources_to_overlord_factor = 0 } 
set_variable = { JAP_east_asia_co_prosperity_sphere_production_speed_rail_way_factor = 0 } 
set_variable = { JAP_east_asia_co_prosperity_sphere_production_speed_supply_node_factor = 0 } 
set_variable = { JAP_east_asia_co_prosperity_sphere_research_speed_factor = 0 } 
set_variable = { JAP_east_asia_co_prosperity_sphere_non_core_manpower = 0 } 

# THE IMPERIAL WAY
set_variable = { JAP_the_imperial_way_war_support_factor = 0 } 
set_variable = { JAP_the_imperial_way_drift_defence_factor = 0 } 
set_variable = { JAP_the_imperial_way_conscription_factor = 0 } 
set_variable = { JAP_the_imperial_way_political_advisor_cost_factor = 0 } 
set_variable = { JAP_the_imperial_way_stability_factor = 0 } 
set_variable = { JAP_the_imperial_way_army_core_defence_factor = 0 } 
set_variable = { JAP_the_imperial_way_army_core_attack_factor = 0 } 
set_variable = { JAP_the_imperial_way_consumer_goods_factor = 0 } 
set_variable = { JAP_the_imperial_way_offensive_war_stability_factor = 0 } 

# THE CIVILIAN CABINET
set_variable = { JAP_civilian_cabinet_political_advisor_cost_factor = 0 } 
set_variable = { JAP_civilian_cabinet_high_command_cost_factor = 0 } 
set_variable = { JAP_civilian_cabinet_army_chief_cost_factor = 0 } 
set_variable = { JAP_civilian_cabinet_mobilization_laws_cost_factor = 0 } 
set_variable = { JAP_civilian_cabinet_consumer_goods_factor = 0 } 
set_variable = { JAP_civilian_cabinet_resource_trade_cost_bonus_per_factory = 0 } 
set_variable = { JAP_civilian_cabinet_military_leader_cost_factor = 0 } 
set_variable = { JAP_civilian_cabinet_political_power_factor = 0 } 
set_variable = { JAP_civilian_cabinet_stability_factor = 0 } 
set_variable = { JAP_civilian_cabinet_war_support_factor = 0 } 
set_variable = { JAP_civilian_cabinet_military_industrial_organization_research_bonus = 0 } 
set_variable = { JAP_civilian_cabinet_conscription = 0 } 
set_variable = { JAP_civilian_cabinet_unit_leader_as_advisor_cp_cost_factor = 0 } 
set_variable = { JAP_civilian_cabinet_army_leader_start_defense_level = 0 } 
set_variable = { JAP_civilian_cabinet_justify_war_goal_time = 0 } 
set_variable = { JAP_civilian_cabinet_democratic_drift = 0 } 

# THE JAPANESE COMMUNIST PARTY
set_variable = { JAP_communist_party_communism_drift = 0 } 
set_variable = { JAP_communist_party_political_power_factor = 0 } 
set_variable = { JAP_communist_party_conscription_factor = 0 } 
set_variable = { JAP_communist_party_research_speed_factor = 0 } 
set_variable = { JAP_communist_party_offensive_war_stability_factor = 0 } 
set_variable = { JAP_communist_party_annex_cost_factor = 0 } 
set_variable = { JAP_communist_party_puppet_cost_factor = 0 } 
set_variable = { JAP_communist_party_defensive_war_stability_factor = 0 } 
set_variable = { JAP_communist_party_operative_slot = 0 } 
set_variable = { JAP_communist_party_enemy_operative_detection_chance_factor = 0 } 
set_variable = { JAP_communist_party_enemy_operative_intel_extraction_rate = 0 } 
set_variable = { JAP_communist_party_enemy_operative_capture_chance_factor = 0 } 
set_variable = { JAP_communist_party_army_core_defence_factor = 0 } 
set_variable = { JAP_communist_party_weekly_manpower = 0 } 

# THE ROUNOUHA GOVERNMENT
# The Same modifiers as the above plus some 


# RESOURCES FOR INDUSTRY
set_variable = { JAP_industrial_relocation_resources_country_resource_oil = 0 }
set_variable = { JAP_industrial_relocation_resources_country_resource_tungsten = 0 }
set_variable = { JAP_industrial_relocation_resources_country_resource_chromium = 0 }
set_variable = { JAP_industrial_relocation_resources_country_resource_rubber = 0 }

# EDUCATE THE PEASANTS 
set_variable = { JAP_educating_the_peasants_modifier_research_speed_factor = 0.01 }
set_variable = { JAP_educating_the_peasants_modifier_allies_count = 1 }

## Other Variables
set_variable = { JAP_democratic_state_flipping_cost_cost = 35 }
set_variable = { JAP_communist_state_infiltrating_cost_cost = 20 }
set_variable = { kwantung_army_timeout_time_var = 725 }
set_variable = { JAP_levy_cap_max = 48 }
set_variable = { JAP_levy_cap_min = 0 }
set_variable = { JAP_levy_cap = 12 }
set_variable = { JAP_levy_deployed = 0 }
clamp_variable = {
	var = JAP_levy_cap
	min = JAP_levy_cap_min
	max = JAP_levy_cap_max
}
set_variable = { JAP_economic_redistribtuion_level = 0 }
set_variable = { JAP_economic_redistribtuion_min = 0 }
set_variable = { JAP_economic_redistribtuion_max = 6 }
clamp_variable = {
	var = JAP_economic_redistribtuion_level
	min = JAP_economic_redistribtuion_min
	max = JAP_economic_redistribtuion_max
}

### Starting Ideas ###
add_ideas = {

	# Laws
	limited_exports
	limited_conscription
	partial_economic_mobilisation

	# National Spirits
	#JAP_zaibatsus
	JAP_militarism

	#Imperial Influence Ideas
	JAP_army_faction_tier_2_equal_navy
	JAP_naval_faction_tier_2_equal_army
	JAP_zaibatsu_faction_tier_2
	JAP_government_faction_tier_2

	#Hidden Ideas
	JAP_separate_air_services
	JAP_japanese_armor_doctrine
}

IF = {
	limit = {
		has_dlc = "Man the Guns"
	}
	add_ideas = MTG_naval_treaty_adherent
}



#######################################
### Setup Resistance and Compliance ###
#######################################

# East Hebei
609 = {
	start_resistance = yes
	set_compliance = 15
	set_resistance = 5
	set_garrison_strength = 1.0
}

1487 = {
	start_resistance = yes
	set_compliance = 15
	set_resistance = 5
	set_garrison_strength = 1.0
}

1488 = {
	start_resistance = yes
	set_compliance = 15
	set_resistance = 5
	set_garrison_strength = 1.0
}

# Dalian
745 = {
	start_resistance = yes
	set_compliance = 20
	set_resistance = 5
	set_garrison_strength = 1.0
}

# Taiwan
524 = {
	start_resistance = yes
	set_compliance = 20
	set_resistance = 5
	set_garrison_strength = 1.0
}

# Palau
647 = {
	start_resistance = yes
	set_compliance = 25
	set_resistance = 0
	set_garrison_strength = 1.0
}

# Caroline Islands
684 = {
	start_resistance = yes
	set_compliance = 25
	set_resistance = 0
	set_garrison_strength = 1.0
}

# Marshall Islands
633 = {
	start_resistance = yes
	set_compliance = 25
	set_resistance = 0
	set_garrison_strength = 1.0
}

# Korea 

# Heian-Koukai
527 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

# Kankyou
1028 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

# Keiki 
525 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

# Kougen 
1029 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

# Keishou 
1030 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

# Chuusei-Zenra 
1031 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1487 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1488 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1311 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1313 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1315 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1316 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1317 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1318 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1320 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1321 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1322 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1323 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1324 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1326 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1327 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1328 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}

1329 = {
	start_resistance = yes
	set_compliance = 5
	set_resistance = 5
	set_garrison_strength = 1.0
}


###########################
### Starting Technology ###
###########################

set_technology = {
	
	# Military Tech
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_support = 1		
	tech_recon = 1
	tech_engineers = 1
	tech_trucks = 1
	motorised_infantry = 1
	marines  = 1
	paratroopers = 1
	gw_artillery = 1
	bicycle_infantry = 1 # They start with it now 
	JAP_silver_wheels = 1 # Small bicycle terrain boost 
	JAP_lighter_tanks = 1 # Small tank terrain boost 
	tech_military_police = 1

	# Civilian Tech
	basic_train = 1
	fuel_silos = 1
	synth_oil_experiments = 1
	fuel_refining = 1
	
}

set_grand_doctrine = grand_battleplan
set_grand_doctrine = new_base_strike

# Cruiser Subs were already in production at the time
complete_special_project = {
	project = sp:sp_naval_cruiser_submarine
	scientist = JAP_keiji_fukuda
	state = 529
}

# SET UP STARTING BRAKTHROUGH PROGRESS
add_breakthrough_progress = {
	specialization = specialization_naval
	value = 0.8
}
add_breakthrough_progress = {
	specialization = specialization_air
	value = 0.3
}
add_breakthrough_progress = {
	specialization = specialization_land
	value = 0.1
}

IF = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
		improved_light_tank = 1
	}
	set_oob = "JAP_1936"
}
IF = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
		improved_light_tank_chassis = 1
	}
	set_oob = "JAP_1936_nsb"
}

IF = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		basic_naval_mines = 1
		submarine_mine_laying = 1
		basic_torpedo = 1
		basic_battery = 1
		basic_light_battery = 1
		basic_heavy_battery = 1
		#basic_medium_battery = 1
		improved_ship_torpedo_launcher = 1
		early_ship_hull_submarine = 1
		basic_ship_hull_submarine = 1
		early_ship_hull_light = 1
		basic_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_ship_hull_cruiser = 1
		early_ship_hull_heavy = 1
		basic_ship_hull_heavy = 1
		early_ship_hull_carrier = 1
		basic_ship_hull_carrier = 1
		mtg_transport = 1
		coastal_defense_ships = 1
		basic_depth_charges = 1
		basic_cruiser_armor_scheme = 1
		#cruiser_submarines = 1
		basic_dp_light_battery = 1
	}
	set_naval_oob = "JAP_1936_naval"
}
IF = {
	limit = { 
		NOT = { 
			has_dlc = "Man the Guns" 
		} 
	}
	set_technology = {
		early_submarine = 1
		basic_submarine = 1
		early_destroyer = 1
		basic_destroyer = 1
		early_light_cruiser = 1
		basic_light_cruiser = 1
		early_heavy_cruiser = 1
		basic_heavy_cruiser = 1
		early_battleship = 1
		basic_battleship = 1
		early_battlecruiser = 1
		early_carrier = 1
		basic_carrier = 1
		transport = 1
	}
	set_naval_oob = "JAP_1936_naval_legacy"
}

IF = {
	limit = { 
		has_dlc = "By Blood Alone" 
	}
	set_air_oob = "JAP_1936_air_bba"
	set_technology = {
		aa_lmg = 1
		engines_1 = 1
		engines_2 = 1
		early_bombs = 1
		aircraft_construction = 1
		iw_small_airframe = 1
		iw_medium_airframe = 1
		basic_small_airframe = 1
		air_torpedoe_1 = 1
		bba_early_transport_plane = 1
	}
	ELSE = {
		set_air_oob = "JAP_1936_air_legacy"
		set_technology = {
			cv_early_fighter = 1
			cv_CAS1 = 1
			cv_naval_bomber1 = 1
			early_fighter = 1
			naval_bomber1 = 1
			early_bomber = 1
			CAS1 = 1
			early_transport_plane = 1
		}
	}
}



IF = {
	limit = {
		has_dlc = "La Resistance"
	}

	set_technology = {
		armored_car1 = 1
	}

	JAP_create_yoshiko_kawashima_operative = yes

	JAP_create_takeo_yoshikawa_operative = yes

}

# Starting Resource Imports
#create_import = {
#	resource = oil
#	factories = 2
#	exporter = USA
#}


# We should start with a lot of convoys
set_convoys = 400


### SETUP PUPPETS ###

set_autonomy = {
	target = MAN
	autonomous_state = autonomy_wtt_imperial_protectorate
}

set_autonomy = {
	target = EHE
	autonomous_state = autonomy_wtt_imperial_protectorate
}


# Setup Politics 
set_politics = {
	ruling_party = neutrality
	last_election = "1936.1.1"
	election_frequency = 48
	elections_allowed = yes
}
set_popularities = {
	fascism = 35
	neutrality = 40
	democratic = 23
	communism = 2
}


### Recruiting Characters ### 
recruit_character = JAP_tetsu_katayama
recruit_character = JAP_kyuichi_tokuda
recruit_character = JAP_emperor_hirohito
recruit_character = JAP_tomoyuki_yamashita
recruit_character = JAP_hisaichi_terauchi
recruit_character = JAP_shunroku_hata
recruit_character = JAP_akira_muto
recruit_character = JAP_kanji_ishiwara
recruit_character = JAP_shizuichi_tanaka
recruit_character = JAP_yasuji_okamura
recruit_character = JAP_toshizo_nishio
recruit_character = JAP_rikichi_ando
recruit_character = JAP_naruhiko_higashikuni
recruit_character = JAP_seishiro_itagaki
recruit_character = JAP_takashi_sakai
recruit_character = JAP_kenji_doihara
recruit_character = JAP_kenkichi_ueda
recruit_character = JAP_shigeru_honjo
recruit_character = JAP_yoshijiro_umezu
recruit_character = JAP_otozo_yamada
recruit_character = JAP_hatazo_adachi
recruit_character = JAP_iwane_matsui
recruit_character = JAP_sadao_araki
recruit_character = JAP_keisuke_fujie
recruit_character = JAP_kiichiro_higuchi
recruit_character = JAP_masaharu_homma
recruit_character = JAP_harukichi_hyakutake
recruit_character = JAP_jo_iimura
recruit_character = JAP_hitoshi_imamura
recruit_character = JAP_masatane_kanda
recruit_character = JAP_kuniaki_koiso
recruit_character = JAP_isoroku_yamamoto
recruit_character = JAP_mineichi_koga
recruit_character = JAP_kiyoshi_hasegawa
recruit_character = JAP_shigeyoshi_inoue
recruit_character = JAP_nobutake_kondo
recruit_character = JAP_takeo_takagi
recruit_character = JAP_soemu_toyoda
recruit_character = JAP_jisaburo_ozawa
recruit_character = JAP_zengo_yoshida
recruit_character = JAP_hiroaki_abe
recruit_character = JAP_tadashige_daigo
recruit_character = JAP_gengo_hyakutake
recruit_character = JAP_yoshitoshi_tokugawa
recruit_character = JAP_fushimi_hiroyasu
recruit_character = JAP_korechika_anami
recruit_character = JAP_mitsuo_fuchida
recruit_character = JAP_minoru_genda
recruit_character = JAP_tateo_kato
recruit_character = JAP_osami_nagano
recruit_character = JAP_torashiro_kawabe
recruit_character = JAP_shigetaro_shimada
recruit_character = JAP_yoshio_nishina
recruit_character = JAP_hideo_itokawa
recruit_character = JAP_kanin_kotohito
recruit_character = JAP_hideki_tojo
recruit_character = JAP_matome_ugaki
recruit_character = JAP_nishizo_tsukahara
recruit_character = JAP_hajime_sugiyama
recruit_character = JAP_chuichi_nagumo
recruit_character = JAP_hino_kumazo
recruit_character = JAP_mitsumasa_yonai
recruit_character = JAP_takuo_godo
recruit_character = JAP_chiune_sugihara
recruit_character = JAP_kingoro_hashimoto
recruit_character = JAP_sanzo_nosaka
recruit_character = JAP_hiroshi_oshima
recruit_character = JAP_kijuro_shidehara
recruit_character = JAP_kijiro_nambu
recruit_character = JAP_keiji_fukuda
recruit_character = JAP_jiro_horikoshi
recruit_character = JAP_hideki_yukawa
recruit_character = JAP_yoji_ito
recruit_character = JAP_hideo_iwakuro
recruit_character = JAP_yuzuru_hiraga
recruit_character = JAP_keisuke_okada
recruit_character = JAP_shun_akikusa
recruit_character = JAP_koki_hirota
recruit_character = JAP_kazushige_ugaki
recruit_character = JAP_fumimaro_konoe
recruit_character = JAP_senjuro_hayashi
recruit_character = JAP_jinzaburo_masaki
recruit_character = JAP_emperor_yasuhito
recruit_character = JAP_tokugawa_iesato
recruit_character = JAP_masafumi_arima
recruit_character = JAP_tsuneyoshi_takeda
recruit_character = JAP_yasuhiko_asaka
recruit_character = JAP_isamu_cho
recruit_character = JAP_hayao_tada
recruit_character = JAP_nashimoto_morimasa
recruit_character = JAP_michitaro_komatsubara
recruit_character = JAP_takahashi_korekiyo
recruit_character = JAP_naoki_hoshino
recruit_character = JAP_koichi_kido
recruit_character = JAP_shigenori_togo
recruit_character = JAP_heisuke_yanagawa
recruit_character = JAP_yosuke_matsuoka
recruit_character = JAP_genki_abe
recruit_character = JAP_nobusuke_kishi
recruit_character = JAP_masatoshi_okochi
recruit_character = JAP_shumei_okawa
recruit_character = JAP_okinori_kaya
recruit_character = JAP_koyata_iwasaki
recruit_character = JAP_chikuhei_nakajima
recruit_character = JAP_yoshisuke_aikawa
recruit_character = JAP_kenjiro_matsumoto
recruit_character = JAP_uzo_nishiyama
recruit_character = JAP_gotaro_ogawa
recruit_character = JAP_kiichiro_hiranuma
recruit_character = JAP_yamauchi_sachiko
recruit_character = JAP_wakatsuki_reijiro
recruit_character = JAP_shinji_sogo
recruit_character = JAP_jotaro_watanabe
recruit_character = JAP_masakazu_kawabe
recruit_character = JAP_harukichi_shimoi
recruit_character = JAP_teijiro_toyoda
recruit_character = JAP_chuuichi_nagumo
recruit_character = JAP_tamon_yamaguchi
recruit_character = JAP_toyoaki_horiuchi
recruit_character = JAP_tadaichi_wakamatsu
recruit_character = JAP_masanobu_tsuji


### DLC-SPECIFIC CHARACTERS ###
IF = {
	limit = {
		has_dlc = "No Compromise, No Surrender"
	}
	recruit_character = JAP_ichiro_hatoyama
	recruit_character = JAP_machida_chuuji
	recruit_character = JAP_abe_isoo
	recruit_character = JAP_hitoshi_yamakawa
	recruit_character = JAP_kanson_arahata
	recruit_character = JAP_yamakawa_kikue
	recruit_character = JAP_empress_nagako
	recruit_character = JAP_yoshio_kodama
	recruit_character = JAP_adachi_kenzo
	recruit_character = JAP_seigo_nakano
	recruit_character = JAP_saburo_aizawa
	recruit_character = JAP_yoshiyuki_kawashima
	recruit_character = JAP_teruzo_ando
	recruit_character = JAP_shiro_nonaka
	recruit_character = JAP_asaichi_isobe
	recruit_character = JAP_yasuhide_kurihara
	recruit_character = JAP_kiyosada_koda
	recruit_character = JAP_takaji_muranaka
	recruit_character = JAP_morihei_ueshiba
	recruit_character = JAP_fukumoto_kazuo
	recruit_character = JAP_nissho_inoue
	recruit_character = JAP_bin_akao
	recruit_character = JAP_yukio_ozaki
	recruit_character = JAP_toyama_mitsuru
	recruit_character = JAP_hajime_kawakami
	recruit_character = JAP_osamu_shimomura
	recruit_character = JAP_hideo_shima
	recruit_character = JAP_ichikawa_fusae
	recruit_character = JAP_komakichi_matsuoka
	recruit_character = JAP_yoshio_shiga
	recruit_character = JAP_hisachi_aso
	recruit_character = JAP_suzuki_bunji
	recruit_character = JAP_hakamada_satomi
	recruit_character = JAP_noboru_yamaguchi
	recruit_character = JAP_tsuji_jun
	recruit_character = JAP_hiratsuka_raicho
	recruit_character = JAP_masamichi_royama
	recruit_character = JAP_minoru_takano
	recruit_character = JAP_kojiro_fukushi
	recruit_character = JAP_hotsumi_ozaki
	recruit_character = JAP_onisaburo_deguchi
	recruit_character = JAP_saionji_kinmochi
	recruit_character = JAP_gempo_yamamoto
	recruit_character = JAP_akira_kurosawa
	recruit_character = JAP_emperor_nobuhito
	recruit_character = JAP_yoshihige_abe
	recruit_character = JAP_kozo_sasaki
	recruit_character = JAP_giro_senoo
	recruit_character = JAP_taketora_ogata
	ELSE_IF = {
		limit = {
			NOT = {
				has_dlc = "No Compromise, No Surrender"
			}
		}
		recruit_character = JAP_random_general_1
		recruit_character = JAP_random_general_2
		recruit_character = JAP_random_general_3
	}
}

# Tojo leads the army side of the cw, and should not be aligned
JAP_hideki_tojo = {
	set_character_flag = JAP_do_not_align_me_flag
}

# Do not align any scientists plz 
JAP_yuzuru_hiraga = {
	set_character_flag = JAP_do_not_align_me_flag
}
JAP_hideo_iwakuro = {
	set_character_flag = JAP_do_not_align_me_flag
}
JAP_hideo_iwakuro = {
	set_character_flag = JAP_do_not_align_me_flag
}
JAP_yoshitoshi_tokugawa = {
	set_character_flag = JAP_do_not_align_me_flag
}

# Yamamoto will not join the militarists 
JAP_isoroku_yamamoto = {
	set_character_flag = JAP_do_not_align_me_flag
}


# Setup 1939 Start Date
1939.1.1 = {

	set_country_flag = JAP_1939_start_date_initiated

	IF = {
		limit = {
			has_dlc = "No Compromise, No Surrender"
		}
		add_country_leader_role = {
			character = JAP_machida_chuuji
			promote_leader = yes
			country_leader = {
				ideology = liberalism
				expire = "1989.1.1.1"
				traits = { HUN_popular_liberal } 
			}
		}	
	}

	set_party_name = {
		ideology = democratic
		long_name = JAP_minseito_party_long
		name = JAP_minseito_party
	}

	# Setup Politics 
	set_politics = {
		ruling_party = neutrality
		last_election = "1938.1.1"
		election_frequency = 48
		elections_allowed = yes
	}
	set_popularities = {
		fascism = 45
		neutrality = 45
		democratic = 10
		communism = 0
	}

	set_autonomy = {
		target = MEN
		autonomous_state = autonomy_wtt_imperial_protectorate
	}

	# Kodoha coup has historical outcomes
	retire_character = JAP_takahashi_korekiyo
	retire_character = JAP_jotaro_watanabe

	add_political_power = 1198
	add_command_power = 100
	
	add_breakthrough_progress = {
		specialization = specialization_naval
		value = 2.0
	}

	add_breakthrough_progress = {
		specialization = specialization_air 
		value = 1.0
	}

	add_breakthrough_progress = {
		specialization = specialization_land 
		value = 0.5
	}

	complete_special_project = {
		project = sp:sp_naval_torpedo_cruiser
		scientist = JAP_keiji_fukuda
		state = 528
	}

	# Adding Ideas
	add_ideas = {

		# Adding Ministers

		# Civilian Advisors
		takuo_godo
		JAP_chikuhei_nakajima
		JAP_heisuke_yanagawa

		# Military Advisors
		minoru_genda
		korechika_anami
		hajime_sugiyama
		soemu_toyoda
		fushimi_hiroyasu
		yasuji_okamura
		hitoshi_imamura

		# Companies
		tetsudou_shou

		# Laws
		tot_economic_mobilisation
		service_by_requirement
		closed_economy
	}

	IF = {
		limit = {
			has_dlc = "Man the Guns"
		}
		remove_ideas = MTG_naval_treaty_adherent
	}

	complete_national_focus = JAP_sea_purge_the_kodoha_faction
	complete_national_focus = JAP_ministry_of_commerce_and_industry
	complete_national_focus = JAP_the_imperial_defense_plan
	complete_national_focus = JAP_revisit_the_thirteen_demands
	complete_national_focus = JAP_promulgate_the_military_ministers_system
	unlock_national_focus = JAP_establish_mongol_military_government
	complete_national_focus = JAP_expand_kawagoe_army_arsenal
	complete_national_focus = JAP_increase_armament_spending
	complete_national_focus = JAP_rely_on_supremacy_of_the_will
	complete_national_focus = JAP_imperial_headquarters_liasion_conference
	complete_national_focus = JAP_the_harakiri_debate
	complete_national_focus = JAP_expand_hiratsuka_navy_arsenal
	complete_national_focus = JAP_konoes_first_cabinet
	complete_national_focus = JAP_reinforce_the_beijing_garrison
	complete_national_focus = JAP_sea_national_spiritual_mobliization_movement
	complete_national_focus = JAP_enact_the_national_conscription_law
	complete_national_focus = JAP_ministry_of_colonial_affairs
	complete_national_focus = JAP_establish_showa_aircraft_idnsutry
	unlock_national_focus = JAP_reorganize_the_united_autonomous_government
	complete_national_focus = JAP_form_the_central_economic_council
	complete_national_focus = JAP_expand_the_showa_research_association
	complete_national_focus = JAP_sea_state_general_mobilization_law
	complete_national_focus = JAP_approach_mitsubishi
	complete_national_focus = JAP_enact_religious_organizations_law
	complete_national_focus = JAP_new_order_in_east_asia
	complete_national_focus = JAP_form_cabinet_intelligence_bureau
	complete_national_focus = JAP_mengjiang_united_autonomous_government
	complete_national_focus = JAP_nanshin_ron
	complete_national_focus = JAP_modern_bombers
	complete_national_focus = JAP_expand_navy_technical_department
	complete_national_focus = JAP_develop_new_fighters
	complete_national_focus = JAP_prepare_the_southern_front
	complete_national_focus = JAP_crackdown_on_foreign_agents
	complete_national_focus = JAP_strategic_offensives

	declare_war_on = {
		target = CHI
		type = puppet_wargoal_focus
	}
	
	set_technology = {

		#PLACEHOLDERS for vehicles
	
		### Doctrines ###

		#air
		#force_rotation = 1
		#fighter_baiting = 1
		#low_echelon_support = 1
		#dispersed_fighting = 1

		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		mechanical_computing = 1
		computing_machine = 1
		basic_encryption = 1
		basic_decryption = 1

		#industry
		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		oil_processing = 1
		fuel_refining2 = 1
		construction1 = 1
		construction2 = 1
		construction3 = 1
		concentrated_industry = 1
		concentrated_industry2 = 1
		concentrated_industry3 = 1
	}

set_grand_doctrine = grand_battleplan
set_grand_doctrine = new_base_strike
set_sub_doctrine = massed_carrier_fleet
add_mastery = {
    amount = 200
    sub_doctrine = massed_carrier_fleet
}
set_grand_doctrine = new_operational_integrity

set_sub_doctrine = defensive_postures
add_mastery = {
    amount = 200
    sub_doctrine = defensive_postures
}
set_sub_doctrine = infiltration_tactics
add_mastery = {
    amount = 200
    sub_doctrine = infiltration_tactics
}
set_sub_doctrine = field_engineering
add_mastery = {
    amount = 150
    sub_doctrine = field_engineering
}



	complete_special_project = {
		project = sp:sp_air_radar
		scientist = JAP_yoji_ito
		state = 532
	}

	IF = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_technology = {
			improved_ship_hull_submarine = 1
			basic_ship_hull_light = 1
			improved_ship_hull_light = 1
			improved_ship_hull_cruiser = 1
			improved_ship_hull_carrier = 1
			#ship_hull_super_heavy = 1
		}

		complete_special_project = {
			project = sp:sp_naval_super_heavy_battleship
			scientist = JAP_keiji_fukuda
			state = 529
		}
		set_naval_oob = "JAP_1939_naval"

	}
	IF = {
		limit = {
			not = { has_dlc = "Man the Guns" }
		}
		set_technology = {
			improved_submarine = 1
			basic_destroyer = 1
			improved_destroyer = 1
			improved_heavy_cruiser = 1
			improved_carrier = 1
			#heavy_battleship = 1
		}
		complete_special_project = {
			project = sp:sp_naval_super_heavy_battleship
			scientist = JAP_keiji_fukuda
			state = 529
		}
		set_naval_oob = "JAP_1939_naval_legacy"
	}
	IF = {
		limit = {
			has_dlc = "No Step Back"
		}
		set_technology = {
			basic_medium_tank_chassis = 1
		}
		set_oob = "JAP_1939_nsb"
		ELSE = {
			set_technology = {
				basic_medium_tank = 1
			}
			set_oob = "JAP_1939"
		}
	}
	IF = {
		limit = { has_dlc = "By Blood Alone" }
			set_air_oob = "JAP_1939_air_bba"
			set_technology = {
				basic_medium_airframe = 1
				range_improvements = 1
			}
		ELSE = {
			set_air_oob = "JAP_1939_air_legacy"
			set_technology = {
				cv_fighter1 = 1
				fighter1 = 1
				tactical_bomber1 = 1
			}
		}
	}

}





IF = {
	limit = {
		has_dlc = "No Step Back"
	}

	create_equipment_variant = {
		name = "Type 92 Tankette"
		type = light_tank_chassis_0
		design_team = mio:JAP_osaka_army_arsenal_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_heavy_machine_gun
			turret_type_slot = tank_light_one_man_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
			special_type_slot_1 = secondary_turret_hmg
			special_type_slot_2 = empty
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
		upgrades = {
			tank_nsb_engine_upgrade = 0
			tank_nsb_armor_upgrade = 0
		}
		obsolete = yes
		icon = "GFX_JAP_basic_light_tank_medium"
	}

	create_equipment_variant = {
		name = "Type 94 Tankette"
		type = light_tank_chassis_1
		design_team = mio:JAP_osaka_army_arsenal_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_heavy_machine_gun
			turret_type_slot = tank_light_one_man_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine 
			special_type_slot_1 = empty
			special_type_slot_2 = empty
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
		upgrades = {
			tank_nsb_engine_upgrade = 0
			tank_nsb_armor_upgrade = 0
		}
		obsolete = yes
		icon = "GFX_JAP_basic_light_tank_medium"
	}

	create_equipment_variant = {
		name = "Type 89 I-Go"
		type = medium_tank_chassis_0
		design_team = mio:JAP_sagami_army_arsenal_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_close_support_gun
			turret_type_slot = tank_medium_two_man_tank_turret 
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_diesel_engine
			special_type_slot_1 = additional_machine_guns
			special_type_slot_2 = empty
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
		upgrades = {
			tank_nsb_engine_upgrade = 4
			tank_nsb_armor_upgrade = 0
		}
		icon = "GFX_JAP_basic_medium_tank_medium"
	}

	create_equipment_variant = { #Note: There is a copy of this variant in Finnish National Focus file (FIN_bring_foreign_armor_experts). Any changes here should also be applied there
		name = "Type 95 Ha-Go"
		type = light_tank_chassis_2
		design_team = mio:JAP_osaka_army_arsenal_organization
		parent_version = 0
		modules = {
			main_armament_slot = tank_small_cannon
			turret_type_slot = tank_light_one_man_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine 
			special_type_slot_1 = additional_machine_guns
			special_type_slot_2 = empty
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
		upgrades = {
			tank_nsb_engine_upgrade = 4
			tank_nsb_armor_upgrade = 2
		}
		icon = "GFX_JAP_improved_light_tank_medium"
	}

}

create_equipment_variant = {
	type = infantry_equipment_1
	design_team = mio:JAP_kokura_arsenal_organization
	show_position = no
	mark_older_equipment_obsolete = yes
}
create_equipment_variant = {
	type = support_equipment_1
	design_team = mio:JAP_nagoya_arsenal_organization
	show_position = no
	mark_older_equipment_obsolete = yes
}
create_equipment_variant = {
	type = artillery_equipment_1
	design_team = mio:JAP_osaka_army_arsenal_artillery_organization
	show_position = no
	mark_older_equipment_obsolete = yes
}
create_equipment_variant = {
	type = motorized_equipment_1
	design_team = mio:JAP_nissan_organization
	show_position = no
	mark_older_equipment_obsolete = yes
}
create_equipment_variant = {
	type = transport_plane_equipment_1
	design_team = mio:JAP_kawasaki_aircraft_industries_organization
	show_position = no
	mark_older_equipment_obsolete = yes
}
IF = {
	limit = {
		has_dlc = "La Resistance"
	}
	create_equipment_variant = {
		type = gw_armored_car_equipment
		design_team = mio:JAP_tokyo_automobile_industries_organization
		show_position = no
		mark_older_equipment_obsolete = yes
	}
}

IF = {

	limit = {
		has_dlc = "By Blood Alone"
	}

	create_equipment_variant = {
		name = "Ki-10"
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
	}

	create_equipment_variant = {
		name = "Ki-2"
		type = small_plane_cas_airframe_0
		modules = {
			fixed_main_weapon_slot = small_bomb_bay
			engine_type_slot = engine_1_2x
			special_type_slot_1 = lmg_defense_turret
		}
		icon = "GFX_JAP_CAS1_medium"
	}

	create_equipment_variant = {
		name = "Ki-1"
		type = medium_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			engine_type_slot = engine_1_2x
			special_type_slot_1 = lmg_defense_turret
		}
	}

	create_equipment_variant = {
		name = "Ki-3"
		type = small_plane_cas_airframe_0
		modules = {
			fixed_main_weapon_slot = bomb_locks
			engine_type_slot = engine_1_1x
			special_type_slot_1 = lmg_defense_turret
		}
		icon = "GFX_JAP_early_fighter_medium"
	}

	create_equipment_variant = {
		name = "Aichi D1A2"
		type = cv_small_plane_cas_airframe_0
		modules = {
			fixed_main_weapon_slot = bomb_locks
			engine_type_slot = engine_1_1x
			special_type_slot_1 = dive_brakes_small
			special_type_slot_2 = lmg_defense_turret
		}
		icon = "GFX_JAP_CAS1_medium"
	}

	create_equipment_variant = {
		name = "A4N"
		type = cv_small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
	}

	create_equipment_variant = {
		name = "B2M"
		type = cv_small_plane_naval_bomber_airframe_0
		modules = {
			fixed_main_weapon_slot = torpedo_mounting
			engine_type_slot = engine_1_1x
			special_type_slot_1 = lmg_defense_turret
		}
		obsolete = yes
		icon = "GFX_JAP_cv_naval_bomber1_medium"
	}

	create_equipment_variant = {
		name = "B4Y"
		type = cv_small_plane_naval_bomber_airframe_1
		modules = {
			fixed_main_weapon_slot = torpedo_mounting
			fixed_auxiliary_weapon_slot_1 = bomb_locks
			engine_type_slot = engine_2_1x
			special_type_slot_1 = lmg_defense_turret
		}
		icon = "GFX_JAP_cv_naval_bomber1_medium"
	}

}


### VARIANTS ###
# 1936 Start #

### Carrier Variants
create_equipment_variant = {
	name = "Akagi Class"
	type = ship_hull_carrier_conversion_bb
	name_group = JAP_CV_HISTORICAL
	design_team = mio:JAP_yokosuka_naval_arsenal_organization
	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_1
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = heavy_ship_engine_2
		fixed_ship_secondaries_slot = ship_secondaries_2
		mid_1_custom_slot = ship_deck_space
		fixed_ship_armor_slot = ship_armor_cruiser_1
	}
	obsolete = yes
}
create_equipment_variant = {
	name = "Kaga Class"
	type = ship_hull_carrier_conversion_bb
	name_group = JAP_CV_HISTORICAL
	design_team = mio:JAP_yokosuka_naval_arsenal_organization
	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_1
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = heavy_ship_engine_2
		fixed_ship_secondaries_slot = ship_secondaries_2
		mid_1_custom_slot = ship_deck_space
		fixed_ship_armor_slot = ship_armor_cruiser_1
	}
	obsolete = yes
}
create_equipment_variant = {
	name = "Soryu Class"
	type = ship_hull_carrier_1
	name_group = JAP_CV_HISTORICAL
	design_team = mio:JAP_yokosuka_naval_arsenal_organization
	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_1
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = carrier_ship_engine_2
		fixed_ship_secondaries_slot = ship_secondaries_1
		front_1_custom_slot = ship_deck_space
	}
}
create_equipment_variant = {
	name = "Zuiho Class"
	type = ship_hull_carrier_conversion_ca
	name_group = JAP_CVL_HISTORICAL
	design_team = mio:JAP_yokosuka_naval_arsenal_organization
	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_1
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = carrier_ship_engine_2
		fixed_ship_secondaries_slot = ship_secondaries_1
	}
}
create_equipment_variant = {
	name = "Hosho Class"
	name_group = JAP_CVL_HISTORICAL
	design_team = mio:JAP_yokosuka_naval_arsenal_organization
	type = ship_hull_carrier_conversion_ca
	parent_version = 0
	modules = {
		fixed_ship_deck_slot_1 = ship_deck_space
		fixed_ship_deck_slot_2 = empty
		fixed_ship_anti_air_slot = empty
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = carrier_ship_engine_1
		fixed_ship_secondaries_slot = ship_secondaries_1
		fixed_ship_armor_slot = empty
	}
	obsolete = yes
}
create_equipment_variant = {
	name = "Ryujo Class"
	name_group = JAP_CVL_HISTORICAL
	design_team = mio:JAP_yokosuka_naval_arsenal_organization
	type = ship_hull_carrier_1
	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_1
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = carrier_ship_engine_1
		fixed_ship_secondaries_slot = ship_secondaries_1
		front_1_custom_slot = empty
	}
	obsolete = yes
}

### Battleship Variants	
create_equipment_variant = {
	name = "Nagato Class"
	name_group = JAP_BB_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	type = ship_hull_heavy_1
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_heavy_battery_2
		fixed_ship_anti_air_slot = ship_anti_air_1
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = heavy_ship_engine_2
		fixed_ship_secondaries_slot = ship_secondaries_1
		fixed_ship_armor_slot = ship_armor_bb_1
		front_1_custom_slot = ship_anti_air_1
		mid_1_custom_slot = ship_secondaries_1
		mid_2_custom_slot = ship_airplane_launcher_1
		rear_1_custom_slot = ship_heavy_battery_2
	}
}
create_equipment_variant = {
	name = "Kongo Class"
	name_group = JAP_BB_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	type = ship_hull_heavy_1
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_heavy_battery_1
		fixed_ship_anti_air_slot = ship_anti_air_1
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = heavy_ship_engine_2
		fixed_ship_secondaries_slot = ship_secondaries_1
		fixed_ship_armor_slot = ship_armor_bc_2
		front_1_custom_slot = ship_anti_air_1
		mid_1_custom_slot = ship_secondaries_1
		mid_2_custom_slot = ship_airplane_launcher_1
		rear_1_custom_slot = ship_heavy_battery_1
	}
}
create_equipment_variant = {
	name = "Fuso/Ise Class"
	type = ship_hull_heavy_1
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	name_group = JAP_BB_HISTORICAL
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_heavy_battery_1
		fixed_ship_anti_air_slot = ship_anti_air_1
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = heavy_ship_engine_2
		fixed_ship_secondaries_slot = ship_secondaries_1
		fixed_ship_armor_slot = ship_armor_bb_1
		front_1_custom_slot = ship_heavy_battery_1
		mid_1_custom_slot = ship_secondaries_1
		mid_2_custom_slot = ship_airplane_launcher_1
		rear_1_custom_slot = ship_heavy_battery_1
	}
	obsolete = yes
}
	
### Cruiser Variants			
create_equipment_variant = {
	name = "Takao Class"
	type = ship_hull_cruiser_2
	name_group = JAP_CA_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_medium_battery_2
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_2
		fixed_ship_armor_slot = ship_armor_cruiser_2
		fixed_ship_secondaries_slot = ship_secondaries_1
		front_1_custom_slot = ship_medium_battery_2
		mid_1_custom_slot = ship_torpedo_1
		mid_2_custom_slot = ship_torpedo_1
		rear_1_custom_slot = ship_airplane_launcher_1
	}
	obsolete = yes
}
create_equipment_variant = {
	name = "Myoko Class"
	type = ship_hull_cruiser_2
	name_group = JAP_CA_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_medium_battery_2
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_2
		fixed_ship_armor_slot = ship_armor_cruiser_2
		fixed_ship_secondaries_slot = ship_secondaries_1
		front_1_custom_slot = ship_medium_battery_2
		mid_1_custom_slot = ship_torpedo_2
		mid_2_custom_slot = ship_torpedo_2
		rear_1_custom_slot = ship_airplane_launcher_1
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Furutaka/Aoba Class"
	type = ship_hull_cruiser_2
	name_group = JAP_CA_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_medium_battery_2
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_1
		fixed_ship_armor_slot = ship_armor_cruiser_1
		fixed_ship_secondaries_slot = ship_secondaries_1
		mid_1_custom_slot = ship_torpedo_2
		mid_2_custom_slot = ship_torpedo_2
		rear_1_custom_slot = empty
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Chikuma Class"
	type = ship_hull_cruiser_1
	name_group = JAP_CA_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_medium_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_1
		fixed_ship_armor_slot = ship_armor_cruiser_1
		fixed_ship_secondaries_slot = ship_secondaries_1
		mid_1_custom_slot = ship_torpedo_1
		mid_2_custom_slot = empty
		rear_1_custom_slot = empty
	}
	obsolete = yes
}
create_equipment_variant = {
	name = "Izumo Class"
	type = ship_hull_cruiser_coastal_defense_ship
	name_group = JAP_CA_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_medium_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_1
		fixed_ship_armor_slot = ship_armor_cruiser_2
		mid_1_custom_slot = ship_secondaries_1
		mid_2_custom_slot = ship_secondaries_1
		rear_1_custom_slot = ship_torpedo_1
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Tone Class"
	type = ship_hull_cruiser_2
	name_group = JAP_CA_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_medium_battery_2
		fixed_ship_anti_air_slot = ship_anti_air_1
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_2
		fixed_ship_armor_slot = ship_armor_cruiser_2
		fixed_ship_secondaries_slot = ship_secondaries_1
		front_1_custom_slot = ship_medium_battery_1
		mid_1_custom_slot = ship_torpedo_2
		mid_2_custom_slot = ship_airplane_launcher_1
		rear_1_custom_slot = ship_airplane_launcher_1
	}
}

create_equipment_variant = {
	name = "Tokiwa Class"
	type = ship_hull_cruiser_coastal_defense_ship
	name_group = JAP_CA_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_medium_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_1
		fixed_ship_armor_slot = ship_armor_cruiser_2
		mid_1_custom_slot = ship_secondaries_1
		mid_2_custom_slot = ship_secondaries_1
		rear_1_custom_slot = ship_mine_layer_1
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Mogami Class"
	type = ship_hull_cruiser_2
	name_group = JAP_CL_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_medium_battery_2
		fixed_ship_anti_air_slot = ship_anti_air_1
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_2
		fixed_ship_armor_slot = ship_armor_cruiser_2
		fixed_ship_secondaries_slot = ship_secondaries_1
		front_1_custom_slot = ship_light_medium_battery_2
		mid_1_custom_slot = ship_torpedo_2
		mid_2_custom_slot = ship_torpedo_2
		rear_1_custom_slot = ship_airplane_launcher_1
	}
}

create_equipment_variant = {
	name = "Yubari Class"
	type = ship_hull_cruiser_2
	name_group = JAP_CL_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_medium_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_1
		fixed_ship_armor_slot = ship_armor_cruiser_1
		mid_1_custom_slot = ship_torpedo_1
		mid_2_custom_slot = empty
		rear_1_custom_slot = ship_mine_layer_1
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Sendai Class"
	type = ship_hull_cruiser_1
	name_group = JAP_CL_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_medium_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_2
		fixed_ship_armor_slot = ship_armor_cruiser_1
		fixed_ship_secondaries_slot = ship_secondaries_1
		mid_1_custom_slot = ship_torpedo_1
		mid_2_custom_slot = ship_airplane_launcher_1
		rear_1_custom_slot = ship_mine_layer_1
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Tenryu Class"
	type = ship_hull_cruiser_1
	name_group = JAP_CL_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_medium_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_2
		fixed_ship_armor_slot = ship_armor_cruiser_1
		mid_1_custom_slot = ship_torpedo_1
		mid_2_custom_slot = empty
		rear_1_custom_slot = empty
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Kuma/Nagara Class"
	type = ship_hull_cruiser_1
	name_group = JAP_CL_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_medium_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_2
		fixed_ship_armor_slot = ship_armor_cruiser_1
		mid_1_custom_slot = ship_torpedo_1
		mid_2_custom_slot = empty
		rear_1_custom_slot = ship_mine_layer_1
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Okinoshima Class"					# cruiser minelayer
	type = ship_hull_cruiser_1
	name_group = JAP_MINELAYERS_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_medium_battery_1
		fixed_ship_anti_air_slot = ship_anti_air_1
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_1
		fixed_ship_armor_slot = empty
		mid_1_custom_slot = empty
		mid_2_custom_slot = empty
		rear_1_custom_slot = ship_mine_layer_1
	}
}

create_equipment_variant = {
	name = "Chitose/Mizuho Class"
	type = ship_hull_cruiser_2
	name_group = JAP_CL_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_1
		fixed_ship_anti_air_slot = ship_anti_air_1
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_1
		fixed_ship_armor_slot = empty
		mid_1_custom_slot = ship_airplane_launcher_1
		mid_2_custom_slot = ship_airplane_launcher_1
		rear_1_custom_slot = empty
	}
}

### Destroyer Variants
create_equipment_variant = {
	name = "Mutsuki Class" #collection of various WWI and early interwar ships with similiar capabilities
	type = ship_hull_light_1
	name_group = JAP_DD_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = light_ship_engine_2
		fixed_ship_torpedo_slot = ship_torpedo_1
		mid_1_custom_slot = ship_torpedo_1
		rear_1_custom_slot = ship_depth_charge_1
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Minekaze Class" 
	type = ship_hull_light_1
	name_group = JAP_DD_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		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
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Momi Class" 
	type = ship_hull_light_1
	name_group = JAP_DD_HISTORICAL
	parent_version = 0
	design_team = mio:JAP_kawasaki_dockyards_organization
	modules = {
		fixed_ship_battery_slot = ship_light_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = light_ship_engine_1
		fixed_ship_torpedo_slot = ship_torpedo_1
		mid_1_custom_slot = empty
		rear_1_custom_slot = empty
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Chidori/Otori Class"
	type = ship_hull_light_1
	name_group = JAP_DD_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = light_ship_engine_1
		fixed_ship_torpedo_slot = ship_torpedo_1
		mid_1_custom_slot = empty
		rear_1_custom_slot = ship_depth_charge_1
	}
}

create_equipment_variant = {
	name = "Fubuki Class"
	type = ship_hull_light_2
	name_group = JAP_DD_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_2
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = light_ship_engine_2
		fixed_ship_torpedo_slot = ship_torpedo_2
		mid_1_custom_slot = ship_torpedo_2
		rear_1_custom_slot = ship_depth_charge_1
	}
}

create_equipment_variant = {
	name = "Sokuten Class" 				# collection of interwar DD-sized minelayers
	type = ship_hull_light_1
	name_group = JAP_MINELAYERS_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = empty
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = light_ship_engine_1
		fixed_ship_torpedo_slot = empty
		mid_1_custom_slot = ship_mine_layer_1
		rear_1_custom_slot = ship_mine_layer_1
	}
}	

create_equipment_variant = {
	name = "Momo Class" # Momo-class destroyers, successors to the Kaba's, one of which is transferred to Manchukuo in 1937
	type = ship_hull_light_1
	name_group = JAP_DD_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_1
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		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 = empty
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Asashio Class"
	type = ship_hull_light_2
	name_group = JAP_DD_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_2
		fixed_ship_anti_air_slot = ship_anti_air_1
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = light_ship_engine_2
		fixed_ship_torpedo_slot = ship_torpedo_2
		mid_1_custom_slot = ship_torpedo_2
		rear_1_custom_slot = ship_depth_charge_1
	}
}

create_equipment_variant = {
	name = "Hatsuharu Class"
	type = ship_hull_light_2
	name_group = JAP_DD_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_2
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = light_ship_engine_2
		fixed_ship_torpedo_slot = ship_torpedo_1
		mid_1_custom_slot = empty
		rear_1_custom_slot = ship_depth_charge_1
	}
	obsolete = yes
}

create_equipment_variant = {
	name = "Shiratsuyu Class"
	type = ship_hull_light_2
	name_group = JAP_DD_HISTORICAL
	design_team = mio:JAP_maizuru_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_battery_slot = ship_light_battery_2
		fixed_ship_anti_air_slot = empty
		fixed_ship_fire_control_system_slot = ship_fire_control_system_0
		fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = light_ship_engine_2
		fixed_ship_torpedo_slot = ship_torpedo_2
		mid_1_custom_slot = ship_torpedo_1
		rear_1_custom_slot = ship_depth_charge_1
	}
	obsolete = yes
}

### Submarine Variants	
create_equipment_variant = {
	name = "Kaidai III Class"
	type = ship_hull_submarine_2
	name_group = JAP_SS_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	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 = "Kaichū IV Class"
	type = ship_hull_submarine_1
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	parent_version = 0
	modules = {
		fixed_ship_torpedo_slot = ship_torpedo_sub_1
		fixed_ship_engine_slot = sub_ship_engine_1
		rear_1_custom_slot = empty
	}
}

create_equipment_variant = {
	name = "Kiraisen Class"
	type = ship_hull_submarine_2
	name_group = JAP_SS_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	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_mine_layer_sub
	}
}	

create_equipment_variant = {
	name = "I-1 Class"
	type = ship_hull_cruiser_submarine
	name_group = JAP_SS_HISTORICAL
	design_team = mio:JAP_sasebo_naval_arsenal_organization
	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_light_battery_sub
		mid_1_custom_slot = empty
		rear_1_custom_slot = ship_torpedo_sub_1
	}
}



# 1939 Start #			
1939.1.1 = {

	IF = {
		limit = {
			has_dlc = "By Blood Alone"
		}
		create_equipment_variant = {
			name = "Ki-27"
			type = small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = light_mg_2x
				engine_type_slot = engine_2_1x
				special_type_slot_1 = empty
			}
		}
		create_equipment_variant = {
			name = "A5M"
			type = cv_small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = light_mg_2x
				engine_type_slot = engine_2_1x
				special_type_slot_1 = empty
			}
			icon = "GFX_JAP_cv_fighter1_medium"
		}
		create_equipment_variant = {
			name = "B5N"
			type = cv_small_plane_naval_bomber_airframe_1
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				engine_type_slot = engine_2_1x
				special_type_slot_1 = fuel_tanks_small
			}
			icon = "GFX_JAP_cv_naval_bomber1_medium"
		}
		create_equipment_variant = {
			name = "Ki-30/32"
			type = small_plane_cas_airframe_1
			modules = {
				fixed_main_weapon_slot = small_bomb_bay
				engine_type_slot = engine_2_1x
				special_type_slot_1 = empty
			}
		}
		create_equipment_variant = {
			name = "Ki-21"
			type = medium_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				engine_type_slot = engine_2_2x
				special_type_slot_1 = lmg_defense_turret
			}
		}
		create_equipment_variant = {
			name = "G3M2"
			type = medium_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = torpedo_mounting
				engine_type_slot = engine_3_2x #Increased tier due to thrust/weight issues
				special_type_slot_1 = lmg_defense_turret_2x
				special_type_slot_2 = fuel_tanks_medium
			}
			icon = "GFX_JAP_early_bomber_medium"
		}
	}
	IF = {
		limit = {
			NOT = { has_dlc = "Man the Guns" }
		}
		### Carrier Variants
		create_equipment_variant = {
			name = "Hiryu Class"
			type = carrier_2
			parent_version = 0
			upgrades = {
				ship_deckspace_upgrade = 1
				carrier_armor_upgrade = 0
				ship_engine_upgrade = 0
				ship_reliability_upgrade = 1
			}
		}
		
		create_equipment_variant = {
			name = "Kagero Class"
			type = destroyer_2
			parent_version = 0
			upgrades = {
				ship_torpedo_upgrade = 2
				destroyer_engine_upgrade = 3
				ship_ASW_upgrade = 2
				ship_anti_air_upgrade = 2
			}
		}
	}
	IF = {
		limit = {
			has_dlc = "Man the Guns"
		}
		create_equipment_variant = {
			name = "Shokaku Class"
			type = ship_hull_carrier_2
			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 = carrier_ship_engine_2
				fixed_ship_secondaries_slot = dp_ship_secondaries_1
				front_1_custom_slot = ship_deck_space
				mid_1_custom_slot = ship_deck_space
			}
		}
		create_equipment_variant = {
			name = "Yamato Class"
			type = ship_hull_super_heavy_1
			name_group = JAP_BB_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_super_heavy_battery_1
				fixed_ship_anti_air_slot = ship_anti_air_2
				fixed_ship_fire_control_system_slot = ship_fire_control_system_1
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = heavy_ship_engine_2
				fixed_ship_secondaries_slot = ship_secondaries_2
				fixed_ship_armor_slot = ship_armor_shbb
				front_1_custom_slot = ship_anti_air_1
				front_2_custom_slot = empty
				mid_1_custom_slot = empty
				mid_2_custom_slot = ship_secondaries_2
				mid_3_custom_slot = dp_ship_secondaries_2
				rear_1_custom_slot = ship_super_heavy_battery_1
				rear_2_custom_slot = ship_airplane_launcher_1
			}
		}
		create_equipment_variant = {
			name = "Asashio Class"
			type = ship_hull_light_2
			name_group = JAP_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 = empty
				fixed_ship_engine_slot = light_ship_engine_2
				fixed_ship_torpedo_slot = ship_torpedo_2
				mid_1_custom_slot = ship_torpedo_2
				rear_1_custom_slot = ship_depth_charge_1
			}
		}
		create_equipment_variant = {
			name = "Katori Class"
			type = ship_hull_cruiser_2
			name_group = JAP_CL_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_light_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = cruiser_ship_engine_1
				fixed_ship_secondaries_slot = ship_secondaries_1
				mid_1_custom_slot = ship_torpedo_1
				mid_2_custom_slot = empty
				rear_1_custom_slot = ship_airplane_launcher_1
			}
			obsolete = yes
		}
		create_equipment_variant = {
			name = "Kagero Class"
			type = ship_hull_light_2
			name_group = JAP_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = dp_light_battery_2
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = light_ship_engine_2
				fixed_ship_torpedo_slot = ship_torpedo_2
				mid_1_custom_slot = ship_torpedo_2
				rear_1_custom_slot = ship_depth_charge_1
			}
		}
		create_equipment_variant = {
			name = "Hatsutaka Class" 	# DD-sized minelayers
			type = ship_hull_light_2
			name_group = JAP_MINELAYERS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_light_battery_1
				fixed_ship_anti_air_slot = empty
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = light_ship_engine_1
				fixed_ship_torpedo_slot = empty
				mid_1_custom_slot = ship_mine_layer_1
				rear_1_custom_slot = ship_mine_layer_1
			}
		}
		create_equipment_variant = {
			name = "A1/B1 Class"
			type = ship_hull_cruiser_submarine
			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 = empty
				rear_1_custom_slot = empty
			}
		}
	}
	IF = {
		limit = {
			has_dlc = "No Step Back"
		}
		create_equipment_variant = {
			name = "Type 97 Chi-Ha"
			type = medium_tank_chassis_1
			design_team = mio:JAP_sagami_army_arsenal_organization
			parent_version = 0
			modules = {
				main_armament_slot = tank_close_support_gun
				turret_type_slot = tank_medium_two_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_diesel_engine
				special_type_slot_1 = tank_radio_1
			}
			upgrades = {
				tank_nsb_engine_upgrade = 4
				tank_nsb_armor_upgrade = 2
			}
			icon = "GFX_JAP_basic_medium_tank_medium"
		}
	}	
}
	
