@prussia_of_the_balkans_position_X = 9
@prussia_of_the_balkans_position_Y = 4
@prussia_of_the_balkans_research_bonus = 0.05
@prussia_of_the_balkans_production_capacity_factor = 0.05

#####################

###  ##  #  # # #  ## 
 #  #  # ## # # # #   
 #  #### # ## ##   #  
 #  #  # #  # # #   # 
 #  #  # #  # # # ## 

 #################### 

### Foreign Subsidiaries

### GER_henschel_organization -> see GER_organizations.txt 
### ENG_vickers_armstrong_eng_organization -> see ENG_organizations.txt 
### ITA_fiat_organization -> see ITA_organizations.txt 
### SOV_okmo_organization -> see SOV_organizations.txt 

#####################

 ## #  # ### ###   ## 
#   #  #  #  #  # #   
 #  ####  #  ###   #  
  # #  #  #  #      # 
##  #  # ### #    ##  
 
#####################

BUL_varna_naval_dockyard_organization = {
	include = generic_task_force_ship_organization
	icon = GFX_idea_generic_naval_manufacturer_2
	
	allowed = {	
		tag = BUL
		has_dlc = "Battle for the Bosporus"
	}
	
	available = {
		FROM = { has_completed_focus = BUL_expand_varna_naval_base }
	}

	research_bonus = 0

	add_trait = { 
		token = BUL_mio_trait_an_aegean_sea_fleet
		name = BUL_an_aegean_sea_fleet
		icon = GFX_generic_mio_department_icon_facilities
		special_trait_background = yes

		position = { x=@prussia_of_the_balkans_position_X y=@prussia_of_the_balkans_position_Y }
		
		available = {
			FROM = {
				has_completed_focus = BUL_an_aegean_sea_fleet
			}
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = @prussia_of_the_balkans_research_bonus
		}

		production_bonus = {
			production_capacity_factor = @prussia_of_the_balkans_production_capacity_factor
		}
	}
}

### Foreign Subsidiaries

### ENG_yarrow_shipbuilders_organization -> see ENG_organizations.txt 
### SOV_nevskoye_design_bureau_organization -> see SOV_organizations.txt 
### ITA_crda_organization -> see ITA_organizations.txt 


###########################

###  #    ##  #  # ###  ## 
#  # #   #  # ## # #   #   
###  #   #### # ## ##   #  
#    #   #  # #  # #     # 
#    ### #  # #  # ### ##  

###########################

BUL_dar_organization = {
	include = generic_multi_role_aircraft_organization
	icon = GFX_idea_bul_dar
	
	allowed = {	
		tag = BUL
	}

	available = { #TODO_Manu: Could do with a trait
		if = {
			limit = {
				has_dlc = "Battle for the Bosporus"
			}
			FROM = { OR = { has_completed_focus = BUL_darzhavna_aeroplanna_rabotilnitsa has_completed_focus = BUL_utmost_optimization has_completed_focus = BUL_nationalization } }
		}
	}

	add_trait = { 
		token = BUL_mio_trait_prussia_of_the_balkans
		name = BUL_prussia_of_the_balkans
		icon = GFX_generic_mio_department_icon_facilities
		special_trait_background = yes

		position = { x=@prussia_of_the_balkans_position_X y=@prussia_of_the_balkans_position_Y }
		
		available = {
			FROM = {
				has_completed_focus = BUL_prussia_of_the_balkans
			}
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = @prussia_of_the_balkans_research_bonus
		}

		production_bonus = {
			production_capacity_factor = @prussia_of_the_balkans_production_capacity_factor
		}
	}
}

BUL_kaproni_bulgarski_organization = {
	include = generic_cas_aircraft_organization
	icon = GFX_idea_bul_kaproni_bulgarski
	
	allowed = {	
		tag = BUL
		has_dlc = "Battle for the Bosporus"
	}

	available = {
		FROM = { has_completed_focus = BUL_kaproni_bulgarski }
	}

	add_trait = { 
		token = BUL_mio_trait_prussia_of_the_balkans
		name = BUL_prussia_of_the_balkans
		icon = GFX_generic_mio_department_icon_facilities
		special_trait_background = yes

		position = { x=@prussia_of_the_balkans_position_X y=@prussia_of_the_balkans_position_Y }
		
		available = {
			FROM = {
				has_completed_focus = BUL_prussia_of_the_balkans
			}
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = @prussia_of_the_balkans_research_bonus
		}

		production_bonus = {
			production_capacity_factor = @prussia_of_the_balkans_production_capacity_factor
		}
	}
}

### Foreign Subsidiaries

### GER_heinkel_organization -> see GER_organizations.txt 
### ENG_fairey_aviation_organization -> see ENG_organizations.txt 
### SOV_ilyushin_design_bureau -> see SOV_organizations.txt 


################################### 

#   #  ##  ### ### ###  ### ### #   
## ## #  #  #  #   #  #  #  #   #   
# # # ####  #  ##  ###   #  ##  #   
#   # #  #  #  #   #  #  #  #   #   
#   # #  #  #  ### #  # ### ### ### 


###################################

BUL_dvf_organization = {
	include = generic_infantry_equipment_organization
	icon = GFX_idea_bul_darzhavna_voenna_fabrika
	
	allowed = {	
		tag = BUL
		has_dlc = "Battle for the Bosporus"
	}
	
	available = {
		FROM = { 
		        OR = {
		          has_completed_focus = BUL_darzhavna_voenna_fabrika 
				  has_completed_focus = BUL_utmost_optimization
				  has_completed_focus = BUL_nationalization
				  }
		}
	}

	add_trait = { 
		token = BUL_mio_trait_prussia_of_the_balkans
		name = BUL_prussia_of_the_balkans
		icon = GFX_generic_mio_department_icon_facilities
		special_trait_background = yes

		position = { x=@prussia_of_the_balkans_position_X y=@prussia_of_the_balkans_position_Y }
		
		available = {
			FROM = {
				has_completed_focus = BUL_prussia_of_the_balkans
			}
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = @prussia_of_the_balkans_research_bonus
		}

		production_bonus = {
			production_capacity_factor = @prussia_of_the_balkans_production_capacity_factor
		}
	}
}

BUL_dvf_sopot_organization = {
	include = generic_artillery_organization
	icon = GFX_idea_bul_darzhavna_voenna_fabrika
	
	allowed = {	
		tag = BUL
		has_dlc = "Battle for the Bosporus"
	}

	available = {
		FROM = { 
		        OR = {
		          has_completed_focus = BUL_found_dvf_sopot 
				  has_completed_focus = BUL_utmost_optimization
				  has_completed_focus = BUL_nationalization
				  }
		}
	}

	add_trait = { 
		token = BUL_mio_trait_prussia_of_the_balkans
		name = BUL_prussia_of_the_balkans
		icon = GFX_generic_mio_department_icon_facilities
		special_trait_background = yes

		position = { x=@prussia_of_the_balkans_position_X y=@prussia_of_the_balkans_position_Y }
		
		available = {
			FROM = {
				has_completed_focus = BUL_prussia_of_the_balkans
			}
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = @prussia_of_the_balkans_research_bonus
		}

		production_bonus = {
			production_capacity_factor = @prussia_of_the_balkans_production_capacity_factor
		}
	}
}


BUL_dvf_tank_organization = {
	include = generic_tank_organization
	icon = GFX_idea_bul_darzhavna_voenna_fabrika
	name = BUL_dvf_organization 
	
	allowed = {	
		tag = BUL
		has_dlc = "Battle for the Bosporus"
	}
	
	available = {
		FROM = { 
		        OR = {
				has_completed_focus = BUL_darzhavna_voenna_fabrika
				has_completed_focus = BUL_utmost_optimization
				has_completed_focus = BUL_nationalization
			 }
		}
	}

	add_trait = { 
		token = BUL_mio_trait_prussia_of_the_balkans
		name = BUL_prussia_of_the_balkans
		icon = GFX_generic_mio_department_icon_facilities
		special_trait_background = yes

		position = { x=@prussia_of_the_balkans_position_X y=@prussia_of_the_balkans_position_Y }
		
		available = {
			FROM = {
				has_completed_focus = BUL_prussia_of_the_balkans
			}
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = @prussia_of_the_balkans_research_bonus
		}

		production_bonus = {
			production_capacity_factor = @prussia_of_the_balkans_production_capacity_factor
		}
	}
}

BUL_dvf_car_organization = {
	include = generic_motorized_mechanized_organization
	icon = GFX_idea_bul_darzhavna_voenna_fabrika
	name = BUL_dvf_sopot_organization 
	
	allowed = {	
		tag = BUL
		has_dlc = "Battle for the Bosporus"
	}
	
	available = {
		FROM = { 
		        OR = {
		          has_completed_focus = BUL_found_dvf_sopot 
				  has_completed_focus = BUL_utmost_optimization
				  has_completed_focus = BUL_nationalization
			 }
		}
	}

	add_trait = { 
		token = BUL_mio_trait_prussia_of_the_balkans
		name = BUL_prussia_of_the_balkans
		icon = GFX_generic_mio_department_icon_facilities
		special_trait_background = yes

		position = { x=@prussia_of_the_balkans_position_X y=@prussia_of_the_balkans_position_Y }
		
		available = {
			FROM = {
				has_completed_focus = BUL_prussia_of_the_balkans
			}
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = @prussia_of_the_balkans_research_bonus
		}

		production_bonus = {
			production_capacity_factor = @prussia_of_the_balkans_production_capacity_factor
		}
	}
}

BUL_krupp_tanki_organization = {
	include = generic_tank_refurbishment_plant_organization
	name = krupp
			
	icon = GFX_idea_krupp
	
	allowed = {	
		tag = BUL
		has_dlc = "Battle for the Bosporus"
	}
	
			available = {
				GER = { has_capitulated = no is_subject = no }
				FROM = {
				 OR = { custom_trigger_tooltip = {
					tooltip = BUL_foreign_industrial_concern_requirements_ger_tt
					NOT = { check_variable = { BUL_german_industrial_investments < BUL_industrial_investments_medium_cap } }
					has_completed_focus = BUL_utmost_optimization }
				    }
				OR = {
					is_subject = no
					is_subject_of = GER
				}
				NOT = { has_completed_focus = BUL_nationalization } NOT = { has_war_with = GER } }
			}
}

BUL_stz_design_bureau_organization = {
	include = generic_tank_organization
	name = stalingrad_tractor_factory
	icon = GFX_idea_stalingrad_tractor_factory

	equipment_type = { mio_cat_eq_all_light_tank mio_cat_eq_all_medium_tank mio_cat_eq_all_heavy_tank }
	allowed = {	
		tag = BUL
		has_dlc = "Battle for the Bosporus"
	}
			available = {
				SOV = { has_capitulated = no is_subject = no }
				FROM = {
				OR = { custom_trigger_tooltip = {
					tooltip = BUL_foreign_industrial_concern_requirements_sov_tt
					NOT = { check_variable = { BUL_soviet_industrial_investments < BUL_industrial_investments_medium_cap } }
				     }
				has_completed_focus = BUL_utmost_optimization }
				OR = {
					is_subject = no
					is_subject_of = SOV
				}
				NOT = { has_completed_focus = BUL_nationalization } NOT = { has_war_with = SOV } }
			}
}


### Foreign Subsidiaries

### GER_opel_organization -> see GER_organizations.txt 
### ENG_vauxhall_organization -> see ENG_organizations.txt 
### SOV_gaz_organization -> see SOV_organizations.txt 
### ITA_lancia_organization -> see ITA_organizations.txt 