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

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

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

### POL_pzinz_organization -> see POL_organizations.txt

ROM_leonidas_works_organization = {
	include = generic_medium_tank_organization
	icon = GFX_idea_ROM_leonidas_works
	allowed = { 
		tag = ROM
		has_dlc = "Death or Dishonor"
	}
	
	equipment_type = { armor }
	available = {
		FROM = { has_completed_focus = ROM_mobile_tank_destroyers }
	}
	initial_trait = {
		name = ROM_mio_trait_mobile_tank_destroyers
		
		equipment_bonus = {
			hard_attack = 0.05
		}
	}
}

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

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

ROM_constanta_shipyard_organization = {
	include = generic_task_force_ship_organization
	icon = GFX_idea_generic_naval_manufacturer_2
	allowed = { 
		tag = ROM
	}
}

ROM_galati_shipyard_organization = {
	include = generic_raider_ship_organization
	icon = GFX_idea_generic_coastal_navy
	allowed = { 
		tag = ROM
		has_dlc = "Death or Dishonor"
	}
	available = {
		FROM = { has_completed_focus = ROM_coastal_defense_navy }
	}
	initial_trait = {
		name = ROM_mio_trait_coastal_defense_production
		limit_to_equipment_type = { mio_cat_eq_all_cruiser }
		production_bonus = {
			production_cost_factor = -0.05
		}
		equipment_bonus = {
			lg_attack = 0.05
			naval_range = -0.15
		}
	}
}

ROM_Braila_organization = {
	include = generic_black_sea_fleet_organization
	icon = GFX_idea_generic_sea_focused_navy
	allowed = { 
		tag = ROM
		has_dlc = "Death or Dishonor"
	}
	available = {
		FROM = { has_completed_focus = ROM_black_sea_dominance }
	}
}

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

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

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

ROM_iar_organization = {
	include = generic_multi_role_aircraft_organization
	icon = GFX_idea_ROM_iar
	allowed = { 
		tag = ROM
	}
	
	available = {
		if = {
			limit = {
				has_dlc = "Death or Dishonor"
			}
			FROM = { has_completed_focus = ROM_invest_in_the_iar }
		}
	}
	
    tree_header_text = {
        text = mio_header_light_aircraft
        x = 2
    }

    tree_header_text = {
        text = mio_header_medium_aircraft
        x = 6
    }

    tree_header_text = {
        text = mio_header_equipment_and_specialization
        x = 4
    }

    override_trait = {
        token = generic_mio_trait_armored_cockpit
        position = { x=2 y=0 }
    }

    override_trait = {
        token = generic_mio_trait_escort_designs
        position = { x=4 y=0 }
    }

    override_trait = {
        token = generic_mio_trait_not_enough_guns_never_enough_guns
        position = { x=2 y=0 }
    }

    add_trait = { 
        token = DEN_mio_trait_fighter_specialization
        name = generic_mio_trait_fighter_aircraft_specialists
        icon = GFX_generic_mio_department_icon_plane_fighter
        special_trait_background = yes

        position = { x=1 y=0 }
        relative_position_id = generic_mio_trait_armored_cockpit

        mutually_exclusive = { DEN_mio_trait_cas_specialization }

        equipment_bonus = {
            air_agility = 0.05
            air_attack = 0.05
        }
    }

    add_trait = { 
        token = DEN_mio_trait_cas_specialization
        name = generic_mio_trait_close_air_support_specialization
        icon = GFX_generic_mio_department_icon_plane_cv_cas
        special_trait_background = yes

        position = { x=3 y=0 }
        relative_position_id = generic_mio_trait_armored_cockpit

        mutually_exclusive = { DEN_mio_trait_fighter_specialization }        

        equipment_bonus = {
            air_ground_attack = 0.05
            air_defence = 0.05
        }
    }

    add_trait = { 
        token = DEN_mio_trait_standardized_production_flyvertroppernes
        name = generic_mio_initial_trait_standardized_production
        icon = GFX_generic_mio_department_icon_plane_general_line_efficiency
        special_trait_background = yes

        position = { x=1 y=0 }
        relative_position_id = generic_mio_trait_upgraded_engines
        
        any_parent = { generic_mio_trait_light_airframe generic_mio_trait_medium_airframe }
        

        production_bonus = {
            production_capacity_factor = 0.05
        }
    }

	add_trait = {
		token = generic_mio_trait_heavily_armed_aircraft
		name = generic_mio_trait_heavily_armed_aircraft
		icon = GFX_generic_mio_department_icon_plane_fighter_combat
        special_trait_background = yes 
		position = { x=0 y=0 }

		visible = {
			has_dlc = "Death or Dishonor"
		}

		available = {
			FROM = { has_completed_focus = ROM_invest_in_the_iar }
		}

		equipment_bonus = {
			air_attack = 0.05
			air_ground_attack = 0.05
			
		}
	}
}

ROM_icar_organization = {
	include = generic_general_aircraft_organization
	icon = GFX_idea_ROM_ICAR
	allowed = { 
		tag = ROM
		has_dlc = "Death or Dishonor"
	}
}

ROM_set_organization = {
	include = generic_naval_aircraft_organization
	icon = GFX_idea_ROM_SET
	allowed = { 
		tag = ROM
		has_dlc = "Death or Dishonor"
	}
}


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

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


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

ROM_cugir_organization = {
	include = generic_infantry_equipment_organization
	icon = GFX_idea_ROM_cugir  #used with permission from Turning Point mod
	allowed = { 
		tag = ROM
	}
}

ROM_resita_works_organization = {
	include = generic_artillery_organization
	icon = GFX_idea_generic_artillery_manufacturer_1
	allowed = { 
		tag = ROM
	}
}

ROM_malaxa_organization = {
	include = generic_tank_organization
	icon = GFX_idea_ROM_malaxa
	allowed = { 
		tag = ROM
	}

}


ROM_romloc_organization = {
	include = generic_tank_refurbishment_plant_organization
	icon = GFX_idea_ROM_ROMLOC
	name = ROM_ROMLOC
	allowed = { 
		tag = ROM
	}
	initial_trait = {
		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
			military_industrial_organization_funds_gain = 0.15
		}
	}
}

### ENG_vauxhall_organization -> see ENG_organizations.txt

### USA_ford_organization -> see USA_organizations.txt

### GER_opel_organization -> see GER_organizations.txt