BM_mechanized_aa_eq_organization = {
	name = BM_mechanized_aa_eq_organization_name
	icon = GFX_idea_bm_mechanized_anti_air_eq_organization

	equipment_type = { bm_mechanized_anti_air_eq_group }

	allowed = {
		hidden_trigger = {
			has_dlc = "Arms Against Tyranny"
		}
	}
	visible = {
		hidden_trigger = {
			has_dlc = "Arms Against Tyranny"
		}
	}
	available = {
		owner = {
			has_equipment = {
				bm_mechanized_anti_air_equipment > 0
			}
		}
		hidden_trigger = {
			has_dlc = "Arms Against Tyranny"
		}
	}

	research_bonus = 0.05
	task_capacity = 999

	tree_header_text = {
		text = BM_mechanized_aa_eq_organization_header_1
		x = 1
	}
	tree_header_text = {
		text = BM_mechanized_aa_eq_organization_header_1
		x = 6
	}

	initial_trait = {
		name = BM_mechanized_aa_eq_organization_initial_trait

		organization_modifier = {
			military_industrial_organization_design_team_assign_cost = -0.05
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.05
		}
	}

	# RELIABILITY
	trait = {
		token = BM_mechanized_aa_eq_organization_reliabilty_1
		name = BM_mechanized_aa_eq_organization_reliabilty_1
		icon = GFX_bm_reliability_1

		position = { x=0 y=0 }
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_production_1
		}

		equipment_bonus = {
			reliability = 0.02
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_reliabilty_2
		name = BM_mechanized_aa_eq_organization_reliabilty_2
		icon = GFX_bm_reliability_2

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_reliabilty_1
		any_parent = {
			BM_mechanized_aa_eq_organization_reliabilty_1
			BM_mechanized_aa_eq_organization_production_1
		}
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_production_2
		}

		equipment_bonus = {
			reliability = 0.04
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_reliabilty_3
		name = BM_mechanized_aa_eq_organization_reliabilty_3
		icon = GFX_bm_reliability_3

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_reliabilty_2
		any_parent = {
			BM_mechanized_aa_eq_organization_reliabilty_2
			BM_mechanized_aa_eq_organization_production_2
		}
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_production_3
		}

		equipment_bonus = {
			reliability = 0.06
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_reliabilty_4
		name = BM_mechanized_aa_eq_organization_reliabilty_4
		icon = GFX_bm_reliability_4

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_reliabilty_3
		any_parent = {
			BM_mechanized_aa_eq_organization_reliabilty_3
			BM_mechanized_aa_eq_organization_production_3
		}
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_production_4
		}

		equipment_bonus = {
			reliability = 0.08
		}
	}

	# PRODUCTION COST
	trait = {
		token = BM_mechanized_aa_eq_organization_production_1
		name = BM_mechanized_aa_eq_organization_production_1
		icon = GFX_bm_production_cost_1

		position = { x=2 y=0 }
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_reliabilty_1
		}

		equipment_bonus = {
			build_cost_ic = -0.02
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_production_2
		name = BM_mechanized_aa_eq_organization_production_2
		icon = GFX_bm_production_cost_2

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_production_1
		any_parent = {
			BM_mechanized_aa_eq_organization_reliabilty_1
			BM_mechanized_aa_eq_organization_production_1
		}
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_reliabilty_2
		}

		equipment_bonus = {
			build_cost_ic = -0.04
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_production_3
		name = BM_mechanized_aa_eq_organization_production_3
		icon = GFX_bm_production_cost_3

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_production_2
		any_parent = {
			BM_mechanized_aa_eq_organization_reliabilty_2
			BM_mechanized_aa_eq_organization_production_2
		}
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_reliabilty_3
		}
		equipment_bonus = {
			build_cost_ic = -0.06
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_production_4
		name = BM_mechanized_aa_eq_organization_production_4
		icon = GFX_bm_production_cost_4

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_production_3
		any_parent = {
			BM_mechanized_aa_eq_organization_reliabilty_3
			BM_mechanized_aa_eq_organization_production_3
		}
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_reliabilty_4
		}

		equipment_bonus = {
			build_cost_ic = -0.08
		}
	}

	# AIR ATTACK
	trait = {
		token = BM_mechanized_aa_eq_organization_air_attack_1
		name = BM_mechanized_aa_eq_organization_air_attack_1
		icon = GFX_bm_air_attack_1

		position = { x=3 y=0 }
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_breakthrough_1
		}

		equipment_bonus = {
			air_attack = 0.02
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_air_attack_2
		name = BM_mechanized_aa_eq_organization_air_attack_2
		icon = GFX_bm_air_attack_2

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_air_attack_1
		all_parents = { BM_mechanized_aa_eq_organization_air_attack_1 }

		equipment_bonus = {
			air_attack = 0.04
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_air_attack_3
		name = BM_mechanized_aa_eq_organization_air_attack_3
		icon = GFX_bm_air_attack_3

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_air_attack_2
		all_parents = { BM_mechanized_aa_eq_organization_air_attack_2 }

		equipment_bonus = {
			air_attack = 0.06
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_air_attack_4
		name = BM_mechanized_aa_eq_organization_air_attack_4
		icon = GFX_bm_air_attack_2

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_air_attack_3
		all_parents = { BM_mechanized_aa_eq_organization_air_attack_3 }

		equipment_bonus = {
			air_attack = 0.08
		}
	}

	# ARMOR
	trait = {
		token = BM_mechanized_aa_eq_organization_armor_1
		name = BM_mechanized_aa_eq_organization_armor_1
		icon = GFX_bm_armor_value_1

		position = { x=5 y=1 }
		any_parent = {
			BM_mechanized_aa_eq_organization_air_attack_1
			BM_mechanized_aa_eq_organization_breakthrough_1
		}

		equipment_bonus = {
			armor_value = 0.02
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_armor_2
		name = BM_mechanized_aa_eq_organization_armor_2
		icon = GFX_bm_armor_value_2

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_armor_1
		all_parents = { BM_mechanized_aa_eq_organization_armor_1 }

		equipment_bonus = {
			armor_value = 0.04
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_armor_3
		name = BM_mechanized_aa_eq_organization_armor_3
		icon = GFX_bm_armor_value_3

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_armor_2
		all_parents = { BM_mechanized_aa_eq_organization_armor_2 }

		equipment_bonus = {
			armor_value = 0.06
		}
	}

	# FUEL
	trait = {
		token = BM_mechanized_aa_eq_organization_fuel_1
		name = BM_mechanized_aa_eq_organization_fuel_1
		icon = GFX_bm_fuel_1

		position = { x=7 y=1 }
		any_parent = {
			BM_mechanized_aa_eq_organization_air_attack_1
			BM_mechanized_aa_eq_organization_breakthrough_1
		}

		equipment_bonus = {
			fuel_consumption_factor = -0.02
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_fuel_2
		name = BM_mechanized_aa_eq_organization_fuel_2
		icon = GFX_bm_fuel_2

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_fuel_1
		all_parents = { BM_mechanized_aa_eq_organization_fuel_1 }

		equipment_bonus = {
			fuel_consumption_factor = -0.04
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_fuel_3
		name = BM_mechanized_aa_eq_organization_fuel_3
		icon = GFX_bm_fuel_3

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_fuel_2
		all_parents = { BM_mechanized_aa_eq_organization_fuel_2 }

		equipment_bonus = {
			fuel_consumption_factor = -0.06
		}
	}

	# BREAKTHROUGH
	trait = {
		token = BM_mechanized_aa_eq_organization_breakthrough_1
		name = BM_mechanized_aa_eq_organization_breakthrough_1
		icon = GFX_bm_breakthrough_1

		position = { x=9 y=0 }
		mutually_exclusive = {
			BM_mechanized_aa_eq_organization_air_attack_1
		}

		equipment_bonus = {
			breakthrough = 0.02
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_breakthrough_2
		name = BM_mechanized_aa_eq_organization_breakthrough_2
		icon = GFX_bm_breakthrough_2

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_breakthrough_1
		all_parents = { BM_mechanized_aa_eq_organization_breakthrough_1 }

		equipment_bonus = {
			breakthrough = 0.04
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_breakthrough_3
		name = BM_mechanized_aa_eq_organization_breakthrough_3
		icon = GFX_bm_breakthrough_3

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_breakthrough_2
		all_parents = { BM_mechanized_aa_eq_organization_breakthrough_1 }

		equipment_bonus = {
			breakthrough = 0.06
		}
	}
	trait = {
		token = BM_mechanized_aa_eq_organization_breakthrough_4
		name = BM_mechanized_aa_eq_organization_breakthrough_4
		icon = GFX_bm_breakthrough_4

		position = { x=0 y=1 }
		relative_position_id = BM_mechanized_aa_eq_organization_breakthrough_3
		all_parents = { BM_mechanized_aa_eq_organization_breakthrough_1 }

		equipment_bonus = {
			breakthrough = 0.08
		}
	}
}