# Scripted trigger is_custom_mio_country is used to lock these countries out of generic MIO's. Remove them from this trigger and add them to the scripted trigger when doing custom MIO content
# Author(s): TheGeneral

GENERIC_marshall_tractor_works = {
	allowed = { always = yes }
	name = GENERIC_marshall_tractor_works_name
	icon = GFX_idea_company_kmz_marshal

	visible = {
		FROM = {
			OR = {
				has_country_flag = marshall_tractor_works_unlocked
				GENERIC_marshall_tractor_works_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = marshall_tractor_works_unlocked } }
			}
			FROM = { has_country_flag = marshall_tractor_works_unlocked }
		}
	}

	equipment_type = {
		medium_tank_chassis
		medium_tank_amphibious_chassis
	}

	research_categories = {
		CAT_tanks
		CAT_armored_personnel_carriers
		CAT_tank_engines
	}

	tree_header_text = {
		text = GENERIC_marshall_tractor_works_workshops_header
		x = 2
	}

	tree_header_text = {
		text = GENERIC_marshall_tractor_works_bazaar_header
		x = 5
	}

	tree_header_text = {
		text = GENERIC_marshall_tractor_works_export_header
		x = 7
	}

	initial_trait = {
		name = GENERIC_marshall_tractor_works_trait

		equipment_bonus = { reliability = 0.03 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.05 }
	}

	trait = {
		token = GENERIC_marshall_tractor_works_assembly_line_memory
		name = GENERIC_marshall_tractor_works_assembly_line_memory
		icon = GFX_generic_mio_trait_icon_mbt_reliability

		position = { x = 2 y = 0 }

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { reliability = 0.03 }

		production_bonus = { production_efficiency_cap_factor = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_komsomol_veterans
		name = GENERIC_marshall_tractor_works_komsomol_veterans
		icon = GFX_generic_mio_trait_icon_mbt_buildcost

		all_parents = { GENERIC_marshall_tractor_works_assembly_line_memory }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_hammer_forge_hulls
		name = GENERIC_marshall_tractor_works_hammer_forge_hulls
		icon = GFX_generic_mio_trait_icon_mbt_armor

		all_parents = { GENERIC_marshall_tractor_works_assembly_line_memory }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { armor_value = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_reverse_torsion
		name = GENERIC_marshall_tractor_works_reverse_torsion
		icon = GFX_generic_mio_trait_icon_mbt_reliability

		all_parents = { GENERIC_marshall_tractor_works_komsomol_veterans }

		position = { x = -2 y = 2 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_foundry_overhaul
		name = GENERIC_marshall_tractor_works_foundry_overhaul
		icon = GFX_generic_mio_trait_icon_mbt_efficiency_cap

		any_parent = {
			GENERIC_marshall_tractor_works_komsomol_veterans
			GENERIC_marshall_tractor_works_hammer_forge_hulls
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		limit_to_equipment_type = { medium_tank_chassis }

		production_bonus = { production_efficiency_cap_factor = 0.06 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_stolen_blueprints
		name = GENERIC_marshall_tractor_works_stolen_blueprints
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_marshall_tractor_works_hammer_forge_hulls }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_marshall_tractor_works_stolen_blueprints
					bonus = 0.10
					uses = 1
					category = CAT_tanks
				} hidden_effect = { rq_eb_fca8b22b9a = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_grandfathers_lathe
		name = GENERIC_marshall_tractor_works_grandfathers_lathe
		icon = GFX_generic_mio_trait_icon_mbt_speed

		all_parents = { GENERIC_marshall_tractor_works_reverse_torsion }

		position = { x = -2 y = 3 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = {
			reliability = 0.04
			maximum_speed = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_era_bolt_ons
		name = GENERIC_marshall_tractor_works_era_bolt_ons
		icon = GFX_generic_mio_trait_icon_mbt_armor

		any_parent = {
			GENERIC_marshall_tractor_works_reverse_torsion
			GENERIC_marshall_tractor_works_foundry_overhaul
		}

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		mutually_exclusive = { GENERIC_marshall_tractor_works_slat_armour }

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { armor_value = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_slat_armour
		name = GENERIC_marshall_tractor_works_slat_armour
		icon = GFX_generic_mio_trait_icon_mbt_defense

		all_parents = { GENERIC_marshall_tractor_works_foundry_overhaul }

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

		mutually_exclusive = { GENERIC_marshall_tractor_works_era_bolt_ons }

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { defense = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_torchcut_turrets
		name = GENERIC_marshall_tractor_works_torchcut_turrets
		icon = GFX_generic_mio_trait_icon_mbt_hard_attack

		any_parent = {
			GENERIC_marshall_tractor_works_foundry_overhaul
			GENERIC_marshall_tractor_works_stolen_blueprints
		}

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = {
			hard_attack = 0.04
			reliability = 0.02
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_night_shift_quotas
		name = GENERIC_marshall_tractor_works_night_shift_quotas
		icon = GFX_generic_mio_trait_icon_mbt_efficiency_gain

		any_parent = {
			GENERIC_marshall_tractor_works_era_bolt_ons
			GENERIC_marshall_tractor_works_slat_armour
		}

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		mutually_exclusive = { GENERIC_marshall_tractor_works_triple_shift_beatings }

		limit_to_equipment_type = { medium_tank_chassis }

		production_bonus = { production_efficiency_gain_factor = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_triple_shift_beatings
		name = GENERIC_marshall_tractor_works_triple_shift_beatings
		icon = GFX_generic_mio_trait_icon_mbt_buildcost

		any_parent = {
			GENERIC_marshall_tractor_works_era_bolt_ons
			GENERIC_marshall_tractor_works_slat_armour
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		mutually_exclusive = { GENERIC_marshall_tractor_works_night_shift_quotas }

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_passes_inspection
		name = GENERIC_marshall_tractor_works_passes_inspection
		icon = GFX_generic_mio_trait_icon_mbt_armor

		all_parents = { GENERIC_marshall_tractor_works_torchcut_turrets }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_marshall_tractor_works_assembly_line_memory

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = {
			armor_value = 0.04
			hard_attack = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_ministry_contracts
		name = GENERIC_marshall_tractor_works_ministry_contracts
		icon = GFX_generic_mio_trait_icon_funds

		position = { x = 5 y = 0 }

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.04
			military_industrial_organization_task_capacity = 1
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_off_books_accountants
		name = GENERIC_marshall_tractor_works_off_books_accountants
		icon = GFX_generic_mio_trait_icon_apc_buildcost

		all_parents = { GENERIC_marshall_tractor_works_ministry_contracts }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		limit_to_equipment_type = { medium_tank_amphibious_chassis }

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_bribed_inspectors
		name = GENERIC_marshall_tractor_works_bribed_inspectors
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_marshall_tractor_works_ministry_contracts }

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

		organization_modifier = {
			military_industrial_organization_size_up_requirement = -0.10
			military_industrial_organization_funds_gain = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_black_market_parts
		name = GENERIC_marshall_tractor_works_black_market_parts
		icon = GFX_generic_mio_trait_icon_apc_reliability

		all_parents = { GENERIC_marshall_tractor_works_ministry_contracts }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		limit_to_equipment_type = { medium_tank_amphibious_chassis }

		equipment_bonus = {
			reliability = 0.04
			build_cost_ic = -0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_kickback_network
		name = GENERIC_marshall_tractor_works_kickback_network
		icon = GFX_generic_mio_trait_icon_design

		any_parent = {
			GENERIC_marshall_tractor_works_off_books_accountants
			GENERIC_marshall_tractor_works_bribed_inspectors
		}

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_design_team_change_cost = -0.15
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_grey_import_electronics
		name = GENERIC_marshall_tractor_works_grey_import_electronics
		icon = GFX_generic_mio_trait_icon_apc_soft_attack

		any_parent = {
			GENERIC_marshall_tractor_works_black_market_parts
			GENERIC_marshall_tractor_works_bribed_inspectors
			GENERIC_marshall_tractor_works_bolt_on_flir
		}

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		limit_to_equipment_type = { medium_tank_amphibious_chassis }

		equipment_bonus = { soft_attack = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_customs_exemption
		name = GENERIC_marshall_tractor_works_customs_exemption
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_marshall_tractor_works_kickback_network }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		mutually_exclusive = { GENERIC_marshall_tractor_works_ministry_subsidy }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_tax_haven_registry
		name = GENERIC_marshall_tractor_works_tax_haven_registry
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_marshall_tractor_works_kickback_network
			GENERIC_marshall_tractor_works_grey_import_electronics
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_funds_gain = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_ministry_subsidy
		name = GENERIC_marshall_tractor_works_ministry_subsidy
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_marshall_tractor_works_grey_import_electronics }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		mutually_exclusive = { GENERIC_marshall_tractor_works_customs_exemption }

		organization_modifier = { military_industrial_organization_funds_gain = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_diverted_imf_loan
		name = GENERIC_marshall_tractor_works_diverted_imf_loan
		icon = GFX_generic_mio_trait_icon_apc_buildcost

		any_parent = {
			GENERIC_marshall_tractor_works_customs_exemption
			GENERIC_marshall_tractor_works_ministry_subsidy
		}

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		limit_to_equipment_type = { medium_tank_amphibious_chassis }

		production_bonus = { production_cost_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_presidential_decree
		name = GENERIC_marshall_tractor_works_presidential_decree
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_marshall_tractor_works_tax_haven_registry }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.04
			military_industrial_organization_task_capacity = 1
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_marshall_tractor_works_presidential_decree
					bonus = 0.10
					uses = 1
					category = CAT_armored_personnel_carriers
				} hidden_effect = { rq_eb_4e86f8eeae = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_phantom_workforce
		name = GENERIC_marshall_tractor_works_phantom_workforce
		icon = GFX_generic_mio_trait_icon_apc_buildcost

		any_parent = {
			GENERIC_marshall_tractor_works_customs_exemption
			GENERIC_marshall_tractor_works_ministry_subsidy
		}

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		limit_to_equipment_type = { medium_tank_amphibious_chassis }

		equipment_bonus = { build_cost_ic = -0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_crony_tenders
		name = GENERIC_marshall_tractor_works_crony_tenders
		icon = GFX_generic_mio_trait_icon_apc_efficiency_cap

		all_parents = { GENERIC_marshall_tractor_works_diverted_imf_loan }

		position = { x = -1 y = 6 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		mutually_exclusive = { GENERIC_marshall_tractor_works_no_bid_contracts }

		limit_to_equipment_type = { medium_tank_amphibious_chassis }

		production_bonus = { production_efficiency_cap_factor = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_no_bid_contracts
		name = GENERIC_marshall_tractor_works_no_bid_contracts
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_marshall_tractor_works_phantom_workforce }

		position = { x = 1 y = 6 }
		relative_position_id = GENERIC_marshall_tractor_works_ministry_contracts

		mutually_exclusive = { GENERIC_marshall_tractor_works_crony_tenders }

		organization_modifier = {
			military_industrial_organization_design_team_assign_cost = -0.15
			military_industrial_organization_task_capacity = 1
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_export_catalogue
		name = GENERIC_marshall_tractor_works_export_catalogue
		icon = GFX_generic_mio_trait_icon_mbt_soft_attack

		position = { x = 7 y = 0 }

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { soft_attack = 0.03 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_repainted_demonstrators
		name = GENERIC_marshall_tractor_works_repainted_demonstrators
		icon = GFX_generic_mio_trait_icon_mbt_breakthrough

		all_parents = { GENERIC_marshall_tractor_works_export_catalogue }

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

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { breakthrough = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_monkey_model_turret
		name = GENERIC_marshall_tractor_works_monkey_model_turret
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_marshall_tractor_works_export_catalogue }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		equipment_bonus = { soft_attack = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "No Step Back" }
					add_tech_bonus = {
						name = GENERIC_marshall_tractor_works_monkey_model_turret
						bonus = 0.10
						uses = 1
						category = CAT_tank_engines
					} hidden_effect = { rq_eb_05b918967f = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_marshall_tractor_works_monkey_model_turret
						bonus = 0.10
						uses = 1
						category = CAT_armor
					} hidden_effect = { rq_eb_795def258a = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_bolt_on_flir
		name = GENERIC_marshall_tractor_works_bolt_on_flir
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_marshall_tractor_works_export_catalogue }

		position = { x = 2 y = 1 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		equipment_bonus = { soft_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_desert_package
		name = GENERIC_marshall_tractor_works_desert_package
		icon = GFX_generic_mio_trait_icon_defense

		any_parent = {
			GENERIC_marshall_tractor_works_monkey_model_turret
			GENERIC_marshall_tractor_works_repainted_demonstrators
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		mutually_exclusive = { GENERIC_marshall_tractor_works_tropical_package }

		equipment_bonus = {
			defense = 0.05
			reliability = 0.02
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_diesel_downgrade
		name = GENERIC_marshall_tractor_works_diesel_downgrade
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_marshall_tractor_works_repainted_demonstrators }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_tropical_package
		name = GENERIC_marshall_tractor_works_tropical_package
		icon = GFX_generic_mio_trait_icon_apc_speed

		any_parent = {
			GENERIC_marshall_tractor_works_repainted_demonstrators
			GENERIC_marshall_tractor_works_bolt_on_flir
		}

		position = { x = 2 y = 2 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		mutually_exclusive = { GENERIC_marshall_tractor_works_desert_package }

		limit_to_equipment_type = { medium_tank_amphibious_chassis }

		equipment_bonus = {
			maximum_speed = 0.05
			reliability = 0.02
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_brochure_photography
		name = GENERIC_marshall_tractor_works_brochure_photography
		icon = GFX_generic_mio_trait_icon_funds

		any_parent = {
			GENERIC_marshall_tractor_works_desert_package
			GENERIC_marshall_tractor_works_tropical_package
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		organization_modifier = { military_industrial_organization_funds_gain = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_secondhand_atgm
		name = GENERIC_marshall_tractor_works_secondhand_atgm
		icon = GFX_generic_mio_trait_icon_mbt_hard_attack

		all_parents = { GENERIC_marshall_tractor_works_diesel_downgrade }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { hard_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_parade_polish
		name = GENERIC_marshall_tractor_works_parade_polish
		icon = GFX_generic_mio_trait_icon_mbt_breakthrough

		any_parent = {
			GENERIC_marshall_tractor_works_desert_package
			GENERIC_marshall_tractor_works_tropical_package
		}

		position = { x = 2 y = 4 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		limit_to_equipment_type = { medium_tank_chassis }

		equipment_bonus = { breakthrough = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_nv_sticker
		name = GENERIC_marshall_tractor_works_nv_sticker
		icon = GFX_generic_mio_trait_icon_apc_soft_attack

		all_parents = { GENERIC_marshall_tractor_works_brochure_photography }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		mutually_exclusive = { GENERIC_marshall_tractor_works_thermal_clone }

		limit_to_equipment_type = { medium_tank_amphibious_chassis }

		equipment_bonus = { soft_attack = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_thermal_clone
		name = GENERIC_marshall_tractor_works_thermal_clone
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_marshall_tractor_works_parade_polish }

		position = { x = 2 y = 5 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		mutually_exclusive = { GENERIC_marshall_tractor_works_nv_sticker }

		equipment_bonus = {
			soft_attack = 0.05
			breakthrough = 0.02
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_marshall_tractor_works_trade_show_variant
		name = GENERIC_marshall_tractor_works_trade_show_variant
		icon = GFX_generic_mio_trait_icon_apc_defense

		any_parent = {
			GENERIC_marshall_tractor_works_nv_sticker
			GENERIC_marshall_tractor_works_thermal_clone
		}

		position = { x = 1 y = 6 }
		relative_position_id = GENERIC_marshall_tractor_works_export_catalogue

		limit_to_equipment_type = { medium_tank_amphibious_chassis }

		equipment_bonus = {
			maximum_speed = 0.04
			defense = 0.04
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_krepost_state_defense_bureau = {
	allowed = { always = yes }
	name = GENERIC_krepost_state_defense_bureau_name
	icon = GFX_idea_company_krepost_state_bureau

	visible = {
		FROM = {
			OR = {
				has_country_flag = krepost_state_defense_bureau_unlocked
				GENERIC_krepost_state_defense_bureau_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = krepost_state_defense_bureau_unlocked } }
			}
			FROM = { has_country_flag = krepost_state_defense_bureau_unlocked }
		}
	}

	equipment_type = {
		AA_Equipment
		L_AT_Equipment
		H_AT_Equipment
	}

	research_categories = {
		CAT_anti_air
		CAT_anti_tank
		CAT_support_weapons
	}

	tree_header_text = {
		text = GENERIC_krepost_state_defense_bureau_branch_manpads
		x = 1
	}

	tree_header_text = {
		text = GENERIC_krepost_state_defense_bureau_branch_atgm
		x = 4
	}

	tree_header_text = {
		text = GENERIC_krepost_state_defense_bureau_branch_network
		x = 7
	}

	initial_trait = {
		name = GENERIC_krepost_state_defense_bureau_trait

		equipment_bonus = { reliability = 0.03 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.06 }
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_strela_heritage
		name = GENERIC_krepost_state_defense_bureau_strela_heritage
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		position = { x = 1 y = 0 }

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { build_cost_ic = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_tubular_launcher
		name = GENERIC_krepost_state_defense_bureau_tubular_launcher
		icon = GFX_generic_mio_trait_icon_aa_reliability

		all_parents = { GENERIC_krepost_state_defense_bureau_strela_heritage }

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

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_ir_seeker
		name = GENERIC_krepost_state_defense_bureau_ir_seeker
		icon = GFX_generic_mio_trait_icon_aa_anti_air_attack

		all_parents = { GENERIC_krepost_state_defense_bureau_tubular_launcher }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		mutually_exclusive = { GENERIC_krepost_state_defense_bureau_two_colour_seeker }

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { air_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_two_colour_seeker
		name = GENERIC_krepost_state_defense_bureau_two_colour_seeker
		icon = GFX_generic_mio_trait_icon_aa_anti_air_attack

		all_parents = { GENERIC_krepost_state_defense_bureau_tubular_launcher }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		mutually_exclusive = { GENERIC_krepost_state_defense_bureau_ir_seeker }

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = {
			air_attack = 0.06
			reliability = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_cold_launch
		name = GENERIC_krepost_state_defense_bureau_cold_launch
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = {
			GENERIC_krepost_state_defense_bureau_ir_seeker
			GENERIC_krepost_state_defense_bureau_two_colour_seeker
		}

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

		production_bonus = { production_cost_factor = -0.08 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_rugged_manual
		name = GENERIC_krepost_state_defense_bureau_rugged_manual
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_krepost_state_defense_bureau_cold_launch }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		equipment_bonus = { reliability = 0.06 }

		production_bonus = { production_resource_need_factor = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_proximity_fuse
		name = GENERIC_krepost_state_defense_bureau_proximity_fuse
		icon = GFX_generic_mio_trait_icon_aa_anti_air_attack

		all_parents = { GENERIC_krepost_state_defense_bureau_cold_launch }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { air_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_igla_s
		name = GENERIC_krepost_state_defense_bureau_igla_s
		icon = GFX_generic_mio_trait_icon_aa_anti_air_attack

		all_parents = {
			GENERIC_krepost_state_defense_bureau_rugged_manual
			GENERIC_krepost_state_defense_bureau_proximity_fuse
		}

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { air_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_warhead_enhancement
		name = GENERIC_krepost_state_defense_bureau_warhead_enhancement
		icon = GFX_generic_mio_trait_icon_aa_efficiency_cap

		all_parents = { GENERIC_krepost_state_defense_bureau_igla_s }

		position = { x = -1 y = 6 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		limit_to_equipment_type = { AA_Equipment }

		production_bonus = { production_efficiency_cap_factor = 0.08 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_operator_cadre
		name = GENERIC_krepost_state_defense_bureau_operator_cadre
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_krepost_state_defense_bureau_igla_s }

		position = { x = 1 y = 6 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		production_bonus = { production_efficiency_gain_factor = 0.10 }

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_verba_line
		name = GENERIC_krepost_state_defense_bureau_verba_line
		icon = GFX_generic_mio_trait_icon_aa

		any_parent = {
			GENERIC_krepost_state_defense_bureau_warhead_enhancement
			GENERIC_krepost_state_defense_bureau_operator_cadre
		}

		position = { x = 0 y = 7 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		limit_to_equipment_type = { AA_Equipment }

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_krepost_state_defense_bureau_verba_line
					bonus = 0.10
					uses = 1
					category = CAT_anti_air
				} hidden_effect = { rq_eb_5fb8d4ebb6 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_anti_heli_doctrine
		name = GENERIC_krepost_state_defense_bureau_anti_heli_doctrine
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_krepost_state_defense_bureau_verba_line }

		position = { x = -1 y = 8 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		limit_to_equipment_type = { AA_Equipment }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_export_meiv
		name = GENERIC_krepost_state_defense_bureau_export_meiv
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_krepost_state_defense_bureau_verba_line }

		position = { x = 1 y = 8 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_strela_heritage

		production_bonus = { production_cost_factor = -0.06 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_malyutka
		name = GENERIC_krepost_state_defense_bureau_malyutka
		icon = GFX_generic_mio_trait_icon_hard_attack

		position = { x = 4 y = 0 }

		limit_to_equipment_type = {
			L_AT_Equipment
			H_AT_Equipment
		}

		equipment_bonus = { hard_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_mclos
		name = GENERIC_krepost_state_defense_bureau_mclos
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_krepost_state_defense_bureau_malyutka }

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

		limit_to_equipment_type = {
			L_AT_Equipment
			H_AT_Equipment
		}

		equipment_bonus = {
			reliability = 0.05
			hard_attack = 0.06
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_fagot_saclos
		name = GENERIC_krepost_state_defense_bureau_fagot_saclos
		icon = GFX_generic_mio_trait_icon_atgm_hard_attack

		all_parents = { GENERIC_krepost_state_defense_bureau_mclos }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		mutually_exclusive = { GENERIC_krepost_state_defense_bureau_konkurs }

		limit_to_equipment_type = { L_AT_Equipment }

		equipment_bonus = {
			hard_attack = 0.05
			defense = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_konkurs
		name = GENERIC_krepost_state_defense_bureau_konkurs
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_krepost_state_defense_bureau_mclos }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		mutually_exclusive = { GENERIC_krepost_state_defense_bureau_fagot_saclos }

		limit_to_equipment_type = {
			L_AT_Equipment
			H_AT_Equipment
		}

		equipment_bonus = { soft_attack = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_tandem_charge
		name = GENERIC_krepost_state_defense_bureau_tandem_charge
		icon = GFX_generic_mio_trait_icon_ap_attack

		any_parent = {
			GENERIC_krepost_state_defense_bureau_fagot_saclos
			GENERIC_krepost_state_defense_bureau_konkurs
		}

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

		limit_to_equipment_type = { H_AT_Equipment }

		equipment_bonus = { ap_attack = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_krepost_state_defense_bureau_tandem_charge
					bonus = 0.10
					uses = 1
					category = CAT_anti_tank
				} hidden_effect = { rq_eb_a57d7fb2da = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_crew_module
		name = GENERIC_krepost_state_defense_bureau_crew_module
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_krepost_state_defense_bureau_tandem_charge }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		limit_to_equipment_type = {
			L_AT_Equipment
			H_AT_Equipment
		}

		equipment_bonus = { build_cost_ic = -0.08 }

		production_bonus = { production_resource_penalty_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_ruggedized_optics
		name = GENERIC_krepost_state_defense_bureau_ruggedized_optics
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_krepost_state_defense_bureau_tandem_charge }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		limit_to_equipment_type = { L_AT_Equipment }

		equipment_bonus = { breakthrough = 0.05 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_metis_m
		name = GENERIC_krepost_state_defense_bureau_metis_m
		icon = GFX_generic_mio_trait_icon_ap_attack

		all_parents = {
			GENERIC_krepost_state_defense_bureau_crew_module
			GENERIC_krepost_state_defense_bureau_ruggedized_optics
		}

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		limit_to_equipment_type = {
			L_AT_Equipment
			H_AT_Equipment
		}

		equipment_bonus = { ap_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_multi_role
		name = GENERIC_krepost_state_defense_bureau_multi_role
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_krepost_state_defense_bureau_metis_m }

		position = { x = -1 y = 6 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		limit_to_equipment_type = {
			L_AT_Equipment
			H_AT_Equipment
		}

		equipment_bonus = { soft_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_bunker_buster
		name = GENERIC_krepost_state_defense_bureau_bunker_buster
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_krepost_state_defense_bureau_metis_m }

		position = { x = 1 y = 6 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		limit_to_equipment_type = { H_AT_Equipment }

		equipment_bonus = {
			soft_attack = 0.05
			defense = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_kornet_e
		name = GENERIC_krepost_state_defense_bureau_kornet_e
		icon = GFX_generic_mio_trait_icon_conversion_speed

		any_parent = {
			GENERIC_krepost_state_defense_bureau_multi_role
			GENERIC_krepost_state_defense_bureau_bunker_buster
		}

		position = { x = 0 y = 7 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		limit_to_equipment_type = {
			L_AT_Equipment
			H_AT_Equipment
		}

		equipment_bonus = { hard_attack = 0.08 }

		production_bonus = { production_conversion_speed_factor = 0.15 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_fiber_guidance
		name = GENERIC_krepost_state_defense_bureau_fiber_guidance
		icon = GFX_generic_mio_trait_icon_ap_attack

		all_parents = { GENERIC_krepost_state_defense_bureau_kornet_e }

		position = { x = -1 y = 8 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		limit_to_equipment_type = { H_AT_Equipment }

		equipment_bonus = { ap_attack = 0.06 }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_thermal_clu
		name = GENERIC_krepost_state_defense_bureau_thermal_clu
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_krepost_state_defense_bureau_kornet_e }

		position = { x = 1 y = 8 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_malyutka

		limit_to_equipment_type = { H_AT_Equipment }

		production_bonus = { production_capacity_factor = 0.08 }

		organization_modifier = {
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.15
			military_industrial_organization_research_bonus = 0.04
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_anon_bureau
		name = GENERIC_krepost_state_defense_bureau_anon_bureau
		icon = GFX_generic_mio_trait_icon_funds

		position = { x = 7 y = 0 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_unmarked_crates
		name = GENERIC_krepost_state_defense_bureau_unmarked_crates
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_krepost_state_defense_bureau_anon_bureau }

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

		production_bonus = { production_capacity_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_shell_company
		name = GENERIC_krepost_state_defense_bureau_shell_company
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_krepost_state_defense_bureau_unmarked_crates }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		mutually_exclusive = { GENERIC_krepost_state_defense_bureau_deniable_channels }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_deniable_channels
		name = GENERIC_krepost_state_defense_bureau_deniable_channels
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_krepost_state_defense_bureau_unmarked_crates }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		mutually_exclusive = { GENERIC_krepost_state_defense_bureau_shell_company }

		organization_modifier = {
			military_industrial_organization_design_team_assign_cost = -0.15
			military_industrial_organization_design_team_change_cost = -0.10
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_siberian_lines
		name = GENERIC_krepost_state_defense_bureau_siberian_lines
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		any_parent = {
			GENERIC_krepost_state_defense_bureau_shell_company
			GENERIC_krepost_state_defense_bureau_deniable_channels
		}

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

		production_bonus = { production_efficiency_cap_factor = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_krepost_state_defense_bureau_siberian_lines
					bonus = 0.10
					uses = 1
					category = CAT_support_weapons
				} hidden_effect = { rq_eb_25367d1f22 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_parallel_tooling
		name = GENERIC_krepost_state_defense_bureau_parallel_tooling
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = {
			GENERIC_krepost_state_defense_bureau_siberian_lines
			GENERIC_krepost_state_defense_bureau_tandem_charge
		}

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		limit_to_equipment_type = {
			L_AT_Equipment
			H_AT_Equipment
		}

		equipment_bonus = { build_cost_ic = -0.06 }

		production_bonus = { production_conversion_speed_factor = 0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_cryo_storage
		name = GENERIC_krepost_state_defense_bureau_cryo_storage
		icon = GFX_generic_mio_trait_icon_aa_resource

		all_parents = {
			GENERIC_krepost_state_defense_bureau_siberian_lines
			GENERIC_krepost_state_defense_bureau_cold_launch
		}

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		limit_to_equipment_type = { AA_Equipment }

		production_bonus = { production_resource_penalty_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_conscript_assembly
		name = GENERIC_krepost_state_defense_bureau_conscript_assembly
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = {
			GENERIC_krepost_state_defense_bureau_parallel_tooling
			GENERIC_krepost_state_defense_bureau_cryo_storage
		}

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		production_bonus = { production_efficiency_gain_factor = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_intermediary_firms
		name = GENERIC_krepost_state_defense_bureau_intermediary_firms
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_krepost_state_defense_bureau_conscript_assembly }

		position = { x = -1 y = 6 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_reverse_eng
		name = GENERIC_krepost_state_defense_bureau_reverse_eng
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_krepost_state_defense_bureau_conscript_assembly }

		position = { x = 1 y = 6 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_deniability_ops
		name = GENERIC_krepost_state_defense_bureau_deniability_ops
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_krepost_state_defense_bureau_intermediary_firms
			GENERIC_krepost_state_defense_bureau_reverse_eng
		}

		position = { x = 0 y = 7 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_warehouse_network
		name = GENERIC_krepost_state_defense_bureau_warehouse_network
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_krepost_state_defense_bureau_deniability_ops }

		position = { x = -1 y = 8 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		production_bonus = { production_resource_need_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_gray_market
		name = GENERIC_krepost_state_defense_bureau_gray_market
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_krepost_state_defense_bureau_deniability_ops }

		position = { x = 1 y = 8 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.06
			military_industrial_organization_design_team_change_cost = -0.10
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_krepost_state_defense_bureau_ghost_factory
		name = GENERIC_krepost_state_defense_bureau_ghost_factory
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_krepost_state_defense_bureau_warehouse_network
			GENERIC_krepost_state_defense_bureau_gray_market
		}

		position = { x = 0 y = 9 }
		relative_position_id = GENERIC_krepost_state_defense_bureau_anon_bureau

		limit_to_equipment_type = {
			AA_Equipment
			L_AT_Equipment
			H_AT_Equipment
		}

		production_bonus = { production_cost_factor = -0.06 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_mil_kamov_rotorworks = {
	allowed = { always = yes }
	name = GENERIC_mil_kamov_rotorworks
	icon = GFX_idea_company_mil_kamov_rotorworks

	visible = {
		FROM = {
			OR = {
				has_country_flag = mil_kamov_rotorworks_unlocked
				GENERIC_mil_kamov_rotorworks_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = mil_kamov_rotorworks_unlocked } }
			}
			FROM = { has_country_flag = mil_kamov_rotorworks_unlocked }
		}
	}

	equipment_type = {
		heavy_tank_chassis
		heavy_tank_amphibious_chassis
	}

	research_categories = { CAT_helicopters }

	tree_header_text = {
		text = GENERIC_mil_kamov_rotorworks_mio_header_transport_rotorcraft
		x = 2
	}

	tree_header_text = {
		text = GENERIC_mil_kamov_rotorworks_mio_header_attack_rotorcraft
		x = 7
	}

	tree_header_text = {
		text = GENERIC_mil_kamov_rotorworks_mio_header_corporate_operations
		x = 5
	}

	initial_trait = {
		name = GENERIC_mil_kamov_rotorworks_trait

		equipment_bonus = {
			maximum_speed = 0.05
			reliability = 0.03
		}

		organization_modifier = { military_industrial_organization_research_bonus = 0.06 }
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_mi8_heritage
		name = GENERIC_mil_kamov_rotorworks_mi8_heritage
		icon = GFX_generic_mio_trait_icon_attackheli_speed

		position = { x = 2 y = 0 }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_boardroom
		name = GENERIC_mil_kamov_rotorworks_boardroom
		icon = GFX_generic_mio_trait_icon_task

		position = { x = 5 y = 0 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_ka50_legacy
		name = GENERIC_mil_kamov_rotorworks_ka50_legacy
		icon = GFX_generic_mio_trait_icon_transport_heli

		position = { x = 7 y = 0 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { hard_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_mi17_rework
		name = GENERIC_mil_kamov_rotorworks_mi17_rework
		icon = GFX_generic_mio_trait_icon_attackheli_soft_attack

		all_parents = { GENERIC_mil_kamov_rotorworks_mi8_heritage }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = -1 y = 1 }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = { soft_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_hammer_kit
		name = GENERIC_mil_kamov_rotorworks_hammer_kit
		icon = GFX_generic_mio_trait_icon_conversion_speed

		all_parents = { GENERIC_mil_kamov_rotorworks_mi8_heritage }

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

		production_bonus = { production_conversion_speed_factor = 0.15 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_mi26_halo
		name = GENERIC_mil_kamov_rotorworks_mi26_halo
		icon = GFX_generic_mio_trait_icon_attackheli_reliability

		all_parents = { GENERIC_mil_kamov_rotorworks_mi8_heritage }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = 1 y = 1 }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = {
			reliability = 0.06
			fuel_consumption = 0.08
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_shared_tooling
		name = GENERIC_mil_kamov_rotorworks_shared_tooling
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_mil_kamov_rotorworks_boardroom }

		relative_position_id = GENERIC_mil_kamov_rotorworks_boardroom
		position = { x = -1 y = 1 }

		equipment_bonus = { build_cost_ic = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_blueprint_vault
		name = GENERIC_mil_kamov_rotorworks_blueprint_vault
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_mil_kamov_rotorworks_boardroom }

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

		organization_modifier = {
			military_industrial_organization_design_team_assign_cost = -0.15
			military_industrial_organization_design_team_change_cost = -0.10
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_rotorhead
		name = GENERIC_mil_kamov_rotorworks_rotorhead
		icon = GFX_generic_mio_trait_icon_transport_heli_speed

		all_parents = { GENERIC_mil_kamov_rotorworks_ka50_legacy }

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

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_ka52_alligator
		name = GENERIC_mil_kamov_rotorworks_ka52_alligator
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_mil_kamov_rotorworks_ka50_legacy }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = 1 y = 1 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { breakthrough = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_kazan_plant
		name = GENERIC_mil_kamov_rotorworks_kazan_plant
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_mil_kamov_rotorworks_mi17_rework }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = -2 y = 2 }

		production_bonus = { production_capacity_factor = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_dust_filter
		name = GENERIC_mil_kamov_rotorworks_dust_filter
		icon = GFX_generic_mio_trait_icon_attackheli_reliability

		all_parents = { GENERIC_mil_kamov_rotorworks_mi17_rework }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = -1 y = 2 }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_klimov_engine
		name = GENERIC_mil_kamov_rotorworks_klimov_engine
		icon = GFX_generic_mio_trait_icon_attackheli_speed

		all_parents = { GENERIC_mil_kamov_rotorworks_hammer_kit }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = 0 y = 2 }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = {
			maximum_speed = 0.05
			fuel_consumption = -0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_swing_nose
		name = GENERIC_mil_kamov_rotorworks_swing_nose
		icon = GFX_generic_mio_trait_icon_attackheli

		all_parents = { GENERIC_mil_kamov_rotorworks_mi26_halo }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = 1 y = 2 }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = { fuel_consumption = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_joint_pilots
		name = GENERIC_mil_kamov_rotorworks_joint_pilots
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_mil_kamov_rotorworks_shared_tooling }

		relative_position_id = GENERIC_mil_kamov_rotorworks_boardroom
		position = { x = -1 y = 2 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_samara
		name = GENERIC_mil_kamov_rotorworks_samara
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		all_parents = { GENERIC_mil_kamov_rotorworks_blueprint_vault }

		relative_position_id = GENERIC_mil_kamov_rotorworks_boardroom
		position = { x = 0 y = 2 }

		production_bonus = { production_efficiency_cap_factor = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_progress_engines
		name = GENERIC_mil_kamov_rotorworks_progress_engines
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_mil_kamov_rotorworks_rotorhead }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = -1 y = 2 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { fuel_consumption = -0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_helmet_cannon
		name = GENERIC_mil_kamov_rotorworks_helmet_cannon
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_mil_kamov_rotorworks_rotorhead }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = 0 y = 2 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { soft_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_black_shark
		name = GENERIC_mil_kamov_rotorworks_black_shark
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_mil_kamov_rotorworks_ka52_alligator }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = 1 y = 2 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { hard_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_titanium_tub
		name = GENERIC_mil_kamov_rotorworks_titanium_tub
		icon = GFX_generic_mio_trait_icon_transport_heli_armor

		all_parents = { GENERIC_mil_kamov_rotorworks_ka52_alligator }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = 2 y = 2 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = {
			hardness = 0.06
			defense = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_armored_tub
		name = GENERIC_mil_kamov_rotorworks_armored_tub
		icon = GFX_generic_mio_trait_icon_attackheli_armor

		all_parents = { GENERIC_mil_kamov_rotorworks_dust_filter }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = -1 y = 3 }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = {
			hardness = 0.05
			defense = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_conveyor
		name = GENERIC_mil_kamov_rotorworks_conveyor
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_mil_kamov_rotorworks_klimov_engine }

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

		production_bonus = { production_efficiency_gain_factor = 0.12 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_rotor_ice
		name = GENERIC_mil_kamov_rotorworks_rotor_ice
		icon = GFX_generic_mio_trait_icon_attackheli_reliability

		all_parents = { GENERIC_mil_kamov_rotorworks_swing_nose }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = 1 y = 3 }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = { reliability = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_ground_crew
		name = GENERIC_mil_kamov_rotorworks_ground_crew
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_mil_kamov_rotorworks_joint_pilots }

		relative_position_id = GENERIC_mil_kamov_rotorworks_boardroom
		position = { x = -1 y = 3 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_maint_manual
		name = GENERIC_mil_kamov_rotorworks_maint_manual
		icon = GFX_generic_mio_trait_icon_conversion_speed

		any_parent = { GENERIC_mil_kamov_rotorworks_samara }

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

		production_bonus = { production_conversion_speed_factor = 0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_tundra_kit
		name = GENERIC_mil_kamov_rotorworks_tundra_kit
		icon = GFX_generic_mio_trait_icon_fuel_consumption

		all_parents = { GENERIC_mil_kamov_rotorworks_progress_engines }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = -1 y = 3 }

		equipment_bonus = { fuel_consumption = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_arbalet_radar
		name = GENERIC_mil_kamov_rotorworks_arbalet_radar
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_mil_kamov_rotorworks_helmet_cannon }

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

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_ejection_seat
		name = GENERIC_mil_kamov_rotorworks_ejection_seat
		icon = GFX_generic_mio_trait_icon_attackheli_defense

		all_parents = { GENERIC_mil_kamov_rotorworks_black_shark }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = 1 y = 3 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { defense = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_noe_flight
		name = GENERIC_mil_kamov_rotorworks_noe_flight
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_mil_kamov_rotorworks_titanium_tub }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = 2 y = 3 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { breakthrough = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_hind_gunship
		name = GENERIC_mil_kamov_rotorworks_hind_gunship
		icon = GFX_generic_mio_trait_icon_attackheli_soft_attack

		all_parents = { GENERIC_mil_kamov_rotorworks_armored_tub }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = -1 y = 4 }

		mutually_exclusive = { GENERIC_mil_kamov_rotorworks_gauntlet_pylon }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = {
			soft_attack = 0.06
			breakthrough = 0.05
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_mil_kamov_rotorworks_hind_gunship
					bonus = 0.10
					uses = 1
					category = CAT_helicopters
				} hidden_effect = { rq_eb_699b159743 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_gauntlet_pylon
		name = GENERIC_mil_kamov_rotorworks_gauntlet_pylon
		icon = GFX_generic_mio_trait_icon_attackheli_hard_attack

		all_parents = { GENERIC_mil_kamov_rotorworks_rotor_ice }

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = 1 y = 4 }

		mutually_exclusive = { GENERIC_mil_kamov_rotorworks_hind_gunship }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = {
			hard_attack = 0.08
			ap_attack = 0.05
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_export_office
		name = GENERIC_mil_kamov_rotorworks_export_office
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_mil_kamov_rotorworks_ground_crew }

		relative_position_id = GENERIC_mil_kamov_rotorworks_boardroom
		position = { x = -1 y = 4 }

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.06
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_sabotage
		name = GENERIC_mil_kamov_rotorworks_sabotage
		icon = GFX_generic_mio_trait_icon_resources

		any_parent = { GENERIC_mil_kamov_rotorworks_maint_manual }

		relative_position_id = GENERIC_mil_kamov_rotorworks_boardroom
		position = { x = 0 y = 4 }

		production_bonus = { production_resource_penalty_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_vikhr
		name = GENERIC_mil_kamov_rotorworks_vikhr
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_mil_kamov_rotorworks_tundra_kit }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = -1 y = 4 }

		mutually_exclusive = { GENERIC_mil_kamov_rotorworks_shturm }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { ap_attack = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_mil_kamov_rotorworks_vikhr
					bonus = 0.10
					uses = 1
					category = CAT_helicopters
				} hidden_effect = { rq_eb_699b159743 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_shturm
		name = GENERIC_mil_kamov_rotorworks_shturm
		icon = GFX_generic_mio_trait_icon_transport_heli_resources

		all_parents = { GENERIC_mil_kamov_rotorworks_ejection_seat }

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = 1 y = 4 }

		mutually_exclusive = { GENERIC_mil_kamov_rotorworks_vikhr }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		production_bonus = { production_resource_need_factor = -0.08 }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_field_workshop
		name = GENERIC_mil_kamov_rotorworks_field_workshop
		icon = GFX_generic_mio_trait_icon_production_capacity

		any_parent = {
			GENERIC_mil_kamov_rotorworks_hind_gunship
			GENERIC_mil_kamov_rotorworks_gauntlet_pylon
		}

		relative_position_id = GENERIC_mil_kamov_rotorworks_mi8_heritage
		position = { x = 0 y = 5 }

		production_bonus = { production_cost_factor = -0.06 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_kremlin_subsidy
		name = GENERIC_mil_kamov_rotorworks_kremlin_subsidy
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = {
			GENERIC_mil_kamov_rotorworks_export_office
			GENERIC_mil_kamov_rotorworks_sabotage
		}

		relative_position_id = GENERIC_mil_kamov_rotorworks_boardroom
		position = { x = -1 y = 5 }

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_size_up_requirement = -0.10
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_kumertau
		name = GENERIC_mil_kamov_rotorworks_kumertau
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = {
			GENERIC_mil_kamov_rotorworks_vikhr
			GENERIC_mil_kamov_rotorworks_shturm
		}

		relative_position_id = GENERIC_mil_kamov_rotorworks_ka50_legacy
		position = { x = 0 y = 5 }

		production_bonus = { production_cost_factor = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_stolen_mi
		name = GENERIC_mil_kamov_rotorworks_stolen_mi
		icon = GFX_generic_mio_trait_icon_attackheli_soft_attack

		all_parents = {
			GENERIC_mil_kamov_rotorworks_kremlin_subsidy
			GENERIC_mil_kamov_rotorworks_armored_tub
		}

		relative_position_id = GENERIC_mil_kamov_rotorworks_boardroom
		position = { x = -1 y = 6 }

		mutually_exclusive = { GENERIC_mil_kamov_rotorworks_stolen_ka }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = { soft_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_mil_kamov_rotorworks_stolen_ka
		name = GENERIC_mil_kamov_rotorworks_stolen_ka
		icon = GFX_generic_mio_trait_icon_transport_heli_armor

		all_parents = {
			GENERIC_mil_kamov_rotorworks_kremlin_subsidy
			GENERIC_mil_kamov_rotorworks_ejection_seat
		}

		relative_position_id = GENERIC_mil_kamov_rotorworks_boardroom
		position = { x = 0 y = 6 }

		mutually_exclusive = { GENERIC_mil_kamov_rotorworks_stolen_mi }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { hardness = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_sevmorprom_submarine_yards = {
	allowed = { always = yes }
	name = GENERIC_sevmorprom_submarine_yards_name
	icon = GFX_idea_company_sevmorprom

	visible = {
		FROM = {
			OR = {
				has_country_flag = sevmorprom_submarine_yards_unlocked
				GENERIC_sevmorprom_submarine_yards_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = sevmorprom_submarine_yards_unlocked } }
			}
			FROM = { has_country_flag = sevmorprom_submarine_yards_unlocked }
		}
	}

	equipment_type = {
		attack_submarine
		missile_submarine
	}

	research_categories = {
		CAT_attack_submarines
		CAT_torpedoes
		CAT_naval_engines
		CAT_cruise_missiles
	}

	initial_trait = {
		name = GENERIC_sevmorprom_submarine_yards_trait

		production_bonus = { production_capacity_factor = 0.10 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }
	}

	trait = {
		token = GENERIC_sevmorprom_trait_dock_no3
		name = GENERIC_sevmorprom_trait_dock_no3
		icon = GFX_generic_mio_trait_icon_max_strength

		position = { x = 1 y = 0 }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = { max_strength = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_arsenal_hall
		name = GENERIC_sevmorprom_trait_arsenal_hall
		icon = GFX_generic_mio_trait_icon_torpedo_attack

		position = { x = 4 y = 0 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = { torpedo_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_shadow_desk
		name = GENERIC_sevmorprom_trait_shadow_desk
		icon = GFX_generic_mio_trait_icon_funds

		position = { x = 7 y = 0 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_hull_welders
		name = GENERIC_sevmorprom_trait_hull_welders
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = { GENERIC_sevmorprom_trait_dock_no3 }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = -1 y = 1 }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = { armor_value = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_anechoic_tiles
		name = GENERIC_sevmorprom_trait_anechoic_tiles
		icon = GFX_generic_mio_trait_icon_sub_visibility

		all_parents = { GENERIC_sevmorprom_trait_dock_no3 }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = 1 y = 1 }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = { sub_visibility = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_tube_refurb
		name = GENERIC_sevmorprom_trait_tube_refurb
		icon = GFX_generic_mio_trait_icon_torpedo_attack

		all_parents = { GENERIC_sevmorprom_trait_arsenal_hall }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = -1 y = 1 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = { naval_torpedo_hit_chance_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_kalibr_interface
		name = GENERIC_sevmorprom_trait_kalibr_interface
		icon = GFX_generic_mio_trait_icon_sub_attack

		all_parents = { GENERIC_sevmorprom_trait_arsenal_hall }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = 1 y = 1 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = { sub_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_cash_delivery
		name = GENERIC_sevmorprom_trait_cash_delivery
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_sevmorprom_trait_shadow_desk }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = -1 y = 1 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_paperwork
		name = GENERIC_sevmorprom_trait_paperwork
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_sevmorprom_trait_shadow_desk }

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

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_grey_ledger
		name = GENERIC_sevmorprom_trait_grey_ledger
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_sevmorprom_trait_shadow_desk }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = 1 y = 1 }

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.04
			military_industrial_organization_size_up_requirement = -0.10
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_pressure_hull
		name = GENERIC_sevmorprom_trait_pressure_hull
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_sevmorprom_trait_hull_welders }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = -1 y = 2 }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = { armor_value = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_sevmorprom_trait_pressure_hull
					bonus = 0.10
					uses = 1
					category = CAT_attack_submarines
				} hidden_effect = { rq_eb_0174c45b9d = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_rusted_truss
		name = GENERIC_sevmorprom_trait_rusted_truss
		icon = GFX_generic_mio_trait_icon_max_strength

		all_parents = { GENERIC_sevmorprom_trait_dock_no3 }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = 0 y = 2 }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = {
			max_strength = 0.03
			max_organisation = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_sail_redesign
		name = GENERIC_sevmorprom_trait_sail_redesign
		icon = GFX_generic_mio_trait_icon_surface_visibility

		all_parents = { GENERIC_sevmorprom_trait_anechoic_tiles }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = 1 y = 2 }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = { surface_visibility = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_heavy_torpedoes
		name = GENERIC_sevmorprom_trait_heavy_torpedoes
		icon = GFX_generic_mio_trait_icon_naval_torpedo_damage_reduction_factor

		all_parents = { GENERIC_sevmorprom_trait_tube_refurb }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = -1 y = 2 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = { armor_value = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_sevmorprom_trait_heavy_torpedoes
					bonus = 0.10
					uses = 1
					category = CAT_torpedoes
				} hidden_effect = { rq_eb_ece42e2671 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_export_warhead
		name = GENERIC_sevmorprom_trait_export_warhead
		icon = GFX_generic_mio_trait_icon_torpedo_attack

		all_parents = { GENERIC_sevmorprom_trait_arsenal_hall }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = 0 y = 2 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = { torpedo_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_club_s
		name = GENERIC_sevmorprom_trait_club_s
		icon = GFX_generic_mio_trait_icon_naval_range

		all_parents = { GENERIC_sevmorprom_trait_kalibr_interface }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = 1 y = 2 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = {
			naval_range = 0.08
			sub_attack = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_bribed_inspectors
		name = GENERIC_sevmorprom_trait_bribed_inspectors
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_sevmorprom_trait_cash_delivery }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = -1 y = 2 }

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_cuban_clients
		name = GENERIC_sevmorprom_trait_cuban_clients
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_sevmorprom_trait_paperwork }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = 0 y = 2 }

		mutually_exclusive = { GENERIC_sevmorprom_trait_venezuelan_deal }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_venezuelan_deal
		name = GENERIC_sevmorprom_trait_venezuelan_deal
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_sevmorprom_trait_grey_ledger }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = 1 y = 2 }

		mutually_exclusive = { GENERIC_sevmorprom_trait_cuban_clients }

		production_bonus = { production_cost_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_propeller_recut
		name = GENERIC_sevmorprom_trait_propeller_recut
		icon = GFX_generic_mio_trait_icon_naval_speed

		all_parents = { GENERIC_sevmorprom_trait_pressure_hull }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = -1 y = 3 }

		mutually_exclusive = { GENERIC_sevmorprom_trait_silent_running }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = { naval_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_arctic_dry_dock
		name = GENERIC_sevmorprom_trait_arctic_dry_dock
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_sevmorprom_trait_rusted_truss }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = 0 y = 4 }

		limit_to_equipment_type = { attack_submarine }

		production_bonus = { production_capacity_factor = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_coastal = yes
						free_building_slots = { building = dockyard size > 0 include_locked = no }
					}
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_silent_running
		name = GENERIC_sevmorprom_trait_silent_running
		icon = GFX_generic_mio_trait_icon_sub_visibility

		all_parents = { GENERIC_sevmorprom_trait_sail_redesign }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = 1 y = 3 }

		mutually_exclusive = { GENERIC_sevmorprom_trait_propeller_recut }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = { sub_visibility = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_silent_torpedo
		name = GENERIC_sevmorprom_trait_silent_torpedo
		icon = GFX_generic_mio_trait_icon_torpedo_attack

		all_parents = {
			GENERIC_sevmorprom_trait_heavy_torpedoes
			GENERIC_sevmorprom_trait_anechoic_tiles
		}

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = -1 y = 3 }

		mutually_exclusive = { GENERIC_sevmorprom_trait_mass_warhead }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = {
			sub_visibility = -0.05
			torpedo_attack = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_antiship_cruise
		name = GENERIC_sevmorprom_trait_antiship_cruise
		icon = GFX_generic_mio_trait_icon_sub_attack

		all_parents = { GENERIC_sevmorprom_trait_export_warhead }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = 0 y = 4 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = {
			sub_attack = 0.08
			max_organisation = 0.03
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_sevmorprom_trait_antiship_cruise
					bonus = 0.10
					uses = 1
					category = CAT_cruise_missiles
				} hidden_effect = { rq_eb_c4a112cc93 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_mass_warhead
		name = GENERIC_sevmorprom_trait_mass_warhead
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_sevmorprom_trait_club_s }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = 1 y = 3 }

		mutually_exclusive = { GENERIC_sevmorprom_trait_silent_torpedo }

		limit_to_equipment_type = { missile_submarine }

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_scrap_metal
		name = GENERIC_sevmorprom_trait_scrap_metal
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_sevmorprom_trait_bribed_inspectors }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = -1 y = 3 }

		production_bonus = { production_resource_penalty_factor = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_smuggled_electronics
		name = GENERIC_sevmorprom_trait_smuggled_electronics
		icon = GFX_generic_mio_trait_icon_naval_range

		any_parent = {
			GENERIC_sevmorprom_trait_cuban_clients
			GENERIC_sevmorprom_trait_venezuelan_deal
		}

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

		equipment_bonus = { naval_range = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_diesel_pipeline
		name = GENERIC_sevmorprom_trait_diesel_pipeline
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_sevmorprom_trait_venezuelan_deal }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = 1 y = 3 }

		production_bonus = { production_resource_need_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_battery_salvage
		name = GENERIC_sevmorprom_trait_battery_salvage
		icon = GFX_generic_mio_trait_icon_naval_range

		all_parents = { GENERIC_sevmorprom_trait_propeller_recut }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = -1 y = 5 }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = { naval_range = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_hull_recycling
		name = GENERIC_sevmorprom_trait_hull_recycling
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_sevmorprom_trait_arctic_dry_dock }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = 0 y = 5 }

		limit_to_equipment_type = { attack_submarine }

		production_bonus = { production_resource_need_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_deck_gun
		name = GENERIC_sevmorprom_trait_deck_gun
		icon = GFX_generic_mio_trait_icon_lg_attack

		all_parents = { GENERIC_sevmorprom_trait_silent_running }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = 1 y = 5 }

		limit_to_equipment_type = { attack_submarine }

		equipment_bonus = { lg_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_anti_air_retrofit
		name = GENERIC_sevmorprom_trait_anti_air_retrofit
		icon = GFX_generic_mio_trait_icon_submarine_surface_detection

		all_parents = { GENERIC_sevmorprom_trait_silent_torpedo }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = -1 y = 4 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = { surface_detection = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_legacy_san5
		name = GENERIC_sevmorprom_trait_legacy_san5
		icon = GFX_generic_mio_trait_icon_hg_attack

		all_parents = { GENERIC_sevmorprom_trait_antiship_cruise }
		any_parent = {
			GENERIC_sevmorprom_trait_anti_air_retrofit
			GENERIC_sevmorprom_trait_soviet_guidance
		}

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = 0 y = 5 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = { hg_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_soviet_guidance
		name = GENERIC_sevmorprom_trait_soviet_guidance
		icon = GFX_generic_mio_trait_icon_naval_torpedo_damage_reduction_factor

		all_parents = { GENERIC_sevmorprom_trait_mass_warhead }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = 1 y = 4 }

		limit_to_equipment_type = { missile_submarine }

		equipment_bonus = {
			armor_value = 0.05
			hg_armor_piercing = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_untraceable
		name = GENERIC_sevmorprom_trait_untraceable
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_sevmorprom_trait_scrap_metal }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = -1 y = 4 }

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_dual_use
		name = GENERIC_sevmorprom_trait_dual_use
		icon = GFX_generic_mio_trait_icon_naval_speed

		all_parents = { GENERIC_sevmorprom_trait_smuggled_electronics }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = 0 y = 4 }

		equipment_bonus = {
			naval_speed = 0.04
			surface_visibility = -0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_arms_fair
		name = GENERIC_sevmorprom_trait_arms_fair
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_sevmorprom_trait_diesel_pipeline }

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = 1 y = 4 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_veteran_shipwrights
		name = GENERIC_sevmorprom_trait_veteran_shipwrights
		icon = GFX_generic_mio_trait_icon_research

		any_parent = {
			GENERIC_sevmorprom_trait_battery_salvage
			GENERIC_sevmorprom_trait_deck_gun
		}
		all_parents = { GENERIC_sevmorprom_trait_hull_recycling }

		relative_position_id = GENERIC_sevmorprom_trait_dock_no3
		position = { x = 0 y = 6 }

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.04
			military_industrial_organization_design_team_assign_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_weapon_masters
		name = GENERIC_sevmorprom_trait_weapon_masters
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_sevmorprom_trait_legacy_san5 }

		relative_position_id = GENERIC_sevmorprom_trait_arsenal_hall
		position = { x = 0 y = 6 }

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.03
			military_industrial_organization_design_team_change_cost = -0.20
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sevmorprom_trait_polar_overhead
		name = GENERIC_sevmorprom_trait_polar_overhead
		icon = GFX_generic_mio_trait_icon_design

		all_parents = {
			GENERIC_sevmorprom_trait_untraceable
			GENERIC_sevmorprom_trait_dual_use
			GENERIC_sevmorprom_trait_arms_fair
		}

		relative_position_id = GENERIC_sevmorprom_trait_shadow_desk
		position = { x = 0 y = 5 }

		organization_modifier = {
			military_industrial_organization_size_up_requirement = -0.10
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.15
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_vanderlind_hartwell_systems = {
	allowed = { always = yes }
	name = GENERIC_vanderlind_hartwell_systems_name
	icon = GFX_idea_company_vanderlind

	visible = {
		FROM = {
			OR = {
				has_country_flag = vanderlind_hartwell_systems_unlocked
				GENERIC_vanderlind_hartwell_systems_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = vanderlind_hartwell_systems_unlocked } }
			}
			FROM = { has_country_flag = vanderlind_hartwell_systems_unlocked }
		}
	}

	equipment_type = {
		medium_tank_chassis
		medium_tank_flame_chassis
	}

	research_categories = {
		CAT_tanks
		CAT_infantry_fighting_vehicles
		CAT_tank_armor
		CAT_tank_defensive_systems
	}

	tree_header_text = {
		text = GENERIC_vanderlind_hartwell_systems_heritage_header
		x = 1
	}

	tree_header_text = {
		text = GENERIC_vanderlind_hartwell_systems_bristol_header
		x = 4
	}

	tree_header_text = {
		text = GENERIC_vanderlind_hartwell_systems_arlington_header
		x = 7
	}

	initial_trait = {
		name = GENERIC_vanderlind_hartwell_systems_trait

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_funds_gain = 0.03
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_heritage
		name = GENERIC_vanderlind_hartwell_systems_heritage
		icon = GFX_generic_mio_trait_icon_reliability

		position = { x = 1 y = 0 }

		equipment_bonus = { reliability = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_composite_plate
		name = GENERIC_vanderlind_hartwell_systems_composite_plate
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = { GENERIC_vanderlind_hartwell_systems_heritage }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		equipment_bonus = { armor_value = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_mbt_line
		name = GENERIC_vanderlind_hartwell_systems_mbt_line
		icon = GFX_generic_mio_trait_icon_hard_attack

		all_parents = { GENERIC_vanderlind_hartwell_systems_heritage }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		equipment_bonus = { hard_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_laminate_refinement
		name = GENERIC_vanderlind_hartwell_systems_laminate_refinement
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_vanderlind_hartwell_systems_composite_plate }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		equipment_bonus = { breakthrough = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "No Step Back" }
					add_tech_bonus = {
						name = GENERIC_vanderlind_hartwell_systems_laminate_refinement
						bonus = 0.10
						uses = 1
						category = CAT_tank_armor
					} hidden_effect = { rq_eb_3da4c9801f = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_vanderlind_hartwell_systems_laminate_refinement
						bonus = 0.10
						uses = 1
						category = CAT_armor
					} hidden_effect = { rq_eb_795def258a = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_reactive_suite
		name = GENERIC_vanderlind_hartwell_systems_reactive_suite
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_vanderlind_hartwell_systems_composite_plate }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		equipment_bonus = { defense = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_crownsbridge_gun
		name = GENERIC_vanderlind_hartwell_systems_crownsbridge_gun
		icon = GFX_generic_mio_trait_icon_hard_attack

		all_parents = { GENERIC_vanderlind_hartwell_systems_mbt_line }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		equipment_bonus = {
			hard_attack = 0.07
			build_cost_ic = -0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_turret_automation
		name = GENERIC_vanderlind_hartwell_systems_turret_automation
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_vanderlind_hartwell_systems_laminate_refinement }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		equipment_bonus = { breakthrough = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_expeditionary_mobility
		name = GENERIC_vanderlind_hartwell_systems_expeditionary_mobility
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_vanderlind_hartwell_systems_reactive_suite }

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

		mutually_exclusive = { GENERIC_vanderlind_hartwell_systems_heavyweight_package }

		equipment_bonus = { maximum_speed = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_heavyweight_package
		name = GENERIC_vanderlind_hartwell_systems_heavyweight_package
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = { GENERIC_vanderlind_hartwell_systems_crownsbridge_gun }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		mutually_exclusive = { GENERIC_vanderlind_hartwell_systems_expeditionary_mobility }

		equipment_bonus = { armor_value = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_hull_standardization
		name = GENERIC_vanderlind_hartwell_systems_hull_standardization
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_vanderlind_hartwell_systems_turret_automation }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		production_bonus = { production_capacity_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_veteran_workforce
		name = GENERIC_vanderlind_hartwell_systems_veteran_workforce
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = {
			GENERIC_vanderlind_hartwell_systems_expeditionary_mobility
			GENERIC_vanderlind_hartwell_systems_heavyweight_package
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_ifv_crew_module
		name = GENERIC_vanderlind_hartwell_systems_ifv_crew_module
		icon = GFX_generic_mio_trait_icon_soft_attack

		any_parent = {
			GENERIC_vanderlind_hartwell_systems_expeditionary_mobility
			GENERIC_vanderlind_hartwell_systems_heavyweight_package
		}

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		equipment_bonus = { soft_attack = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_legacy_pipeline
		name = GENERIC_vanderlind_hartwell_systems_legacy_pipeline
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_vanderlind_hartwell_systems_veteran_workforce }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_heritage

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_bristol
		name = GENERIC_vanderlind_hartwell_systems_bristol
		icon = GFX_generic_mio_trait_icon_research

		position = { x = 4 y = 0 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_trophy_aps
		name = GENERIC_vanderlind_hartwell_systems_trophy_aps
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = { GENERIC_vanderlind_hartwell_systems_bristol }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		equipment_bonus = { armor_value = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_cavalier_ifv
		name = GENERIC_vanderlind_hartwell_systems_cavalier_ifv
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_vanderlind_hartwell_systems_bristol }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		equipment_bonus = { soft_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_hardkill_launchers
		name = GENERIC_vanderlind_hartwell_systems_hardkill_launchers
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_vanderlind_hartwell_systems_trophy_aps }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		mutually_exclusive = { GENERIC_vanderlind_hartwell_systems_softkill_ecm }

		equipment_bonus = { defense = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_softkill_ecm
		name = GENERIC_vanderlind_hartwell_systems_softkill_ecm
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_vanderlind_hartwell_systems_trophy_aps }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		mutually_exclusive = { GENERIC_vanderlind_hartwell_systems_hardkill_launchers }

		equipment_bonus = { reliability = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_autocannon_refit
		name = GENERIC_vanderlind_hartwell_systems_autocannon_refit
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_vanderlind_hartwell_systems_cavalier_ifv }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		equipment_bonus = { soft_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_modular_applique
		name = GENERIC_vanderlind_hartwell_systems_modular_applique
		icon = GFX_generic_mio_trait_icon_hard_attack

		any_parent = {
			GENERIC_vanderlind_hartwell_systems_hardkill_launchers
			GENERIC_vanderlind_hartwell_systems_softkill_ecm
		}

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		equipment_bonus = { hard_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_networked_crew
		name = GENERIC_vanderlind_hartwell_systems_networked_crew
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = {
			GENERIC_vanderlind_hartwell_systems_hardkill_launchers
			GENERIC_vanderlind_hartwell_systems_softkill_ecm
		}

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

		equipment_bonus = { reliability = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_sensor_fusion
		name = GENERIC_vanderlind_hartwell_systems_sensor_fusion
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_vanderlind_hartwell_systems_autocannon_refit }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		equipment_bonus = { maximum_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_common_aps_mount
		name = GENERIC_vanderlind_hartwell_systems_common_aps_mount
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_vanderlind_hartwell_systems_modular_applique }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_bristol_test_range
		name = GENERIC_vanderlind_hartwell_systems_bristol_test_range
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_vanderlind_hartwell_systems_networked_crew }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "No Step Back" }
					add_tech_bonus = {
						name = GENERIC_vanderlind_hartwell_systems_bristol_test_range
						bonus = 0.10
						uses = 1
						category = CAT_tank_defensive_systems
					} hidden_effect = { rq_eb_0a4346a05e = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_vanderlind_hartwell_systems_bristol_test_range
						bonus = 0.10
						uses = 1
						category = CAT_armor
					} hidden_effect = { rq_eb_795def258a = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_future_combat_lab
		name = GENERIC_vanderlind_hartwell_systems_future_combat_lab
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_vanderlind_hartwell_systems_sensor_fusion }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		equipment_bonus = { defense = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_next_gen_integration
		name = GENERIC_vanderlind_hartwell_systems_next_gen_integration
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_vanderlind_hartwell_systems_bristol_test_range }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_bristol

		equipment_bonus = { breakthrough = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_vanderlind_hartwell_systems_next_gen_integration
					bonus = 0.10
					uses = 1
					category = CAT_tanks
				} hidden_effect = { rq_eb_fca8b22b9a = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_arlington
		name = GENERIC_vanderlind_hartwell_systems_arlington
		icon = GFX_generic_mio_trait_icon_funds

		position = { x = 7 y = 0 }

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_design_team_assign_cost = -0.10
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_pentagon_liaison
		name = GENERIC_vanderlind_hartwell_systems_pentagon_liaison
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		all_parents = { GENERIC_vanderlind_hartwell_systems_arlington }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		production_bonus = { production_efficiency_cap_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_hill_lobby_suite
		name = GENERIC_vanderlind_hartwell_systems_hill_lobby_suite
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_vanderlind_hartwell_systems_arlington }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.06
			military_industrial_organization_research_bonus = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_revolving_door
		name = GENERIC_vanderlind_hartwell_systems_revolving_door
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_vanderlind_hartwell_systems_pentagon_liaison }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		production_bonus = { production_efficiency_gain_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_kstreet_retainer
		name = GENERIC_vanderlind_hartwell_systems_kstreet_retainer
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_vanderlind_hartwell_systems_hill_lobby_suite }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		mutually_exclusive = { GENERIC_vanderlind_hartwell_systems_bipartisan_outreach }

		organization_modifier = {
			military_industrial_organization_design_team_change_cost = -0.20
			military_industrial_organization_design_team_assign_cost = -0.15
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_bipartisan_outreach
		name = GENERIC_vanderlind_hartwell_systems_bipartisan_outreach
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_vanderlind_hartwell_systems_hill_lobby_suite }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		mutually_exclusive = { GENERIC_vanderlind_hartwell_systems_kstreet_retainer }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_overrun_clause
		name = GENERIC_vanderlind_hartwell_systems_overrun_clause
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_vanderlind_hartwell_systems_hill_lobby_suite }

		position = { x = 2 y = 2 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_industrial_base_report
		name = GENERIC_vanderlind_hartwell_systems_industrial_base_report
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		all_parents = { GENERIC_vanderlind_hartwell_systems_revolving_door }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		production_bonus = { production_efficiency_cap_factor = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_program_office_bloat
		name = GENERIC_vanderlind_hartwell_systems_program_office_bloat
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		any_parent = {
			GENERIC_vanderlind_hartwell_systems_kstreet_retainer
			GENERIC_vanderlind_hartwell_systems_bipartisan_outreach
		}

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

		production_bonus = { production_efficiency_gain_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_congressional_earmark
		name = GENERIC_vanderlind_hartwell_systems_congressional_earmark
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = {
			GENERIC_vanderlind_hartwell_systems_kstreet_retainer
			GENERIC_vanderlind_hartwell_systems_bipartisan_outreach
		}

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_bonus_clause
		name = GENERIC_vanderlind_hartwell_systems_bonus_clause
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_vanderlind_hartwell_systems_overrun_clause }

		position = { x = 2 y = 3 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_embassy_annex
		name = GENERIC_vanderlind_hartwell_systems_embassy_annex
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_vanderlind_hartwell_systems_program_office_bloat }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		organization_modifier = {
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.20
			military_industrial_organization_size_up_requirement = -0.10
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_export_accounts
		name = GENERIC_vanderlind_hartwell_systems_export_accounts
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_vanderlind_hartwell_systems_congressional_earmark }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vanderlind_hartwell_systems_fourstar_retirement
		name = GENERIC_vanderlind_hartwell_systems_fourstar_retirement
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_vanderlind_hartwell_systems_bonus_clause }

		position = { x = 2 y = 4 }
		relative_position_id = GENERIC_vanderlind_hartwell_systems_arlington

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_aurora_aerodynamics_corporation = {
	allowed = { always = yes }
	name = GENERIC_aurora_aerodynamics_corporation_name
	icon = GFX_idea_company_aurora

	visible = {
		FROM = {
			OR = {
				has_country_flag = aurora_aerodynamics_corporation_unlocked
				GENERIC_aurora_aerodynamics_corporation_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = aurora_aerodynamics_corporation_unlocked } }
			}
			FROM = { has_country_flag = aurora_aerodynamics_corporation_unlocked }
		}
	}

	equipment_type = { mio_cat_eq_only_all_medium_aircraft }

	research_categories = {
		CAT_medium_aircraft
		CAT_air_engines
		CAT_avionics
	}

	tree_header_text = {
		text = GENERIC_aurora_aerodynamics_corporation_fighter_header
		x = 1
	}

	tree_header_text = {
		text = GENERIC_aurora_aerodynamics_corporation_strike_header
		x = 5
	}

	tree_header_text = {
		text = GENERIC_aurora_aerodynamics_corporation_advanced_header
		x = 8
	}

	initial_trait = {
		name = GENERIC_aurora_aerodynamics_corporation_trait

		equipment_bonus = {
			reliability = 0.05
			air_agility = 0.025
			air_attack = 0.025
			air_ground_attack = 0.025
		}

		organization_modifier = { military_industrial_organization_research_bonus = 0.075 }
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_au200
		name = GENERIC_aurora_aerodynamics_corporation_au200
		icon = GFX_generic_mio_trait_icon_reliability

		position = { x = 1 y = 0 }

		equipment_bonus = {
			reliability = 0.04
			build_cost_ic = -0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_composite_airframe
		name = GENERIC_aurora_aerodynamics_corporation_composite_airframe
		icon = GFX_generic_mio_trait_icon_air_agility

		all_parents = { GENERIC_aurora_aerodynamics_corporation_au200 }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		equipment_bonus = { air_agility = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_aesa_fire_control
		name = GENERIC_aurora_aerodynamics_corporation_aesa_fire_control
		icon = GFX_generic_mio_trait_icon_air_attack

		all_parents = { GENERIC_aurora_aerodynamics_corporation_au200 }

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

		equipment_bonus = { air_attack = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_aurora_aerodynamics_corporation_aesa_fire_control
					bonus = 0.10
					uses = 1
					category = CAT_medium_aircraft
				} hidden_effect = { rq_eb_2569c6c774 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_supercruise_engine
		name = GENERIC_aurora_aerodynamics_corporation_supercruise_engine
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_aurora_aerodynamics_corporation_au200 }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		equipment_bonus = { maximum_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_fused_sensor_cockpit
		name = GENERIC_aurora_aerodynamics_corporation_fused_sensor_cockpit
		icon = GFX_generic_mio_trait_icon_air_agility

		all_parents = { GENERIC_aurora_aerodynamics_corporation_composite_airframe }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_nato_datalink_suite }

		equipment_bonus = { air_agility = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_nato_datalink_suite
		name = GENERIC_aurora_aerodynamics_corporation_nato_datalink_suite
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_aurora_aerodynamics_corporation_aesa_fire_control }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_fused_sensor_cockpit }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_standardized_avionics
		name = GENERIC_aurora_aerodynamics_corporation_standardized_avionics
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_aurora_aerodynamics_corporation_supercruise_engine }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		equipment_bonus = { build_cost_ic = -0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_block_upgrade_cycle
		name = GENERIC_aurora_aerodynamics_corporation_block_upgrade_cycle
		icon = GFX_generic_mio_trait_icon_design

		any_parent = { GENERIC_aurora_aerodynamics_corporation_fused_sensor_cockpit }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_pilot_academy_partnership
		name = GENERIC_aurora_aerodynamics_corporation_pilot_academy_partnership
		icon = GFX_generic_mio_trait_icon_design

		any_parent = {
			GENERIC_aurora_aerodynamics_corporation_fused_sensor_cockpit
			GENERIC_aurora_aerodynamics_corporation_nato_datalink_suite
		}

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

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_bvr_missile_integration
		name = GENERIC_aurora_aerodynamics_corporation_bvr_missile_integration
		icon = GFX_generic_mio_trait_icon_air_range

		all_parents = { GENERIC_aurora_aerodynamics_corporation_standardized_avionics }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		equipment_bonus = { air_range = 0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_carrier_capable_variant
		name = GENERIC_aurora_aerodynamics_corporation_carrier_capable_variant
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_aurora_aerodynamics_corporation_block_upgrade_cycle }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_gulf_export_build }

		equipment_bonus = { maximum_speed = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_gulf_export_build
		name = GENERIC_aurora_aerodynamics_corporation_gulf_export_build
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_aurora_aerodynamics_corporation_pilot_academy_partnership }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_carrier_capable_variant }

		production_bonus = { production_cost_factor = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_serial_lot_production
		name = GENERIC_aurora_aerodynamics_corporation_serial_lot_production
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		all_parents = { GENERIC_aurora_aerodynamics_corporation_bvr_missile_integration }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_au200

		production_bonus = { production_efficiency_cap_factor = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform
		name = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform
		icon = GFX_generic_mio_trait_icon_reliability

		position = { x = 5 y = 0 }

		equipment_bonus = { reliability = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_terrain_following_radar
		name = GENERIC_aurora_aerodynamics_corporation_terrain_following_radar
		icon = GFX_generic_mio_trait_icon_air_defence

		all_parents = { GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		equipment_bonus = { air_defence = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_precision_munitions_bus
		name = GENERIC_aurora_aerodynamics_corporation_precision_munitions_bus
		icon = GFX_generic_mio_trait_icon_air_ground_attack

		all_parents = { GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform }

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

		equipment_bonus = { air_ground_attack = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_aurora_aerodynamics_corporation_precision_munitions_bus
					bonus = 0.10
					uses = 1
					category = CAT_medium_aircraft
				} hidden_effect = { rq_eb_2569c6c774 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_internal_weapons_bay
		name = GENERIC_aurora_aerodynamics_corporation_internal_weapons_bay
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		equipment_bonus = { build_cost_ic = -0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_conformal_fuel_tanks
		name = GENERIC_aurora_aerodynamics_corporation_conformal_fuel_tanks
		icon = GFX_generic_mio_trait_icon_air_range

		all_parents = { GENERIC_aurora_aerodynamics_corporation_terrain_following_radar }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		equipment_bonus = { air_range = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_sead_wild_weasel
		name = GENERIC_aurora_aerodynamics_corporation_sead_wild_weasel
		icon = GFX_generic_mio_trait_icon_air_attack

		all_parents = { GENERIC_aurora_aerodynamics_corporation_precision_munitions_bus }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_anti_ship_penetrator }

		equipment_bonus = { air_attack = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_anti_ship_penetrator
		name = GENERIC_aurora_aerodynamics_corporation_anti_ship_penetrator
		icon = GFX_generic_mio_trait_icon_strategic_attack

		all_parents = { GENERIC_aurora_aerodynamics_corporation_internal_weapons_bay }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_sead_wild_weasel }

		equipment_bonus = { air_bombing = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_ew_self_protection
		name = GENERIC_aurora_aerodynamics_corporation_ew_self_protection
		icon = GFX_generic_mio_trait_icon_air_defence

		all_parents = { GENERIC_aurora_aerodynamics_corporation_conformal_fuel_tanks }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		equipment_bonus = { air_defence = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_digital_fly_by_wire
		name = GENERIC_aurora_aerodynamics_corporation_digital_fly_by_wire
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = {
			GENERIC_aurora_aerodynamics_corporation_sead_wild_weasel
			GENERIC_aurora_aerodynamics_corporation_anti_ship_penetrator
		}

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

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_stand_off_stores_pylon
		name = GENERIC_aurora_aerodynamics_corporation_stand_off_stores_pylon
		icon = GFX_generic_mio_trait_icon_air_ground_attack

		any_parent = { GENERIC_aurora_aerodynamics_corporation_anti_ship_penetrator }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		equipment_bonus = { air_ground_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_two_seat_trainer_variant
		name = GENERIC_aurora_aerodynamics_corporation_two_seat_trainer_variant
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_aurora_aerodynamics_corporation_ew_self_protection }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_gulf_allies_fms_line
		name = GENERIC_aurora_aerodynamics_corporation_gulf_allies_fms_line
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_aurora_aerodynamics_corporation_digital_fly_by_wire }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		production_bonus = { production_cost_factor = -0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_heavy_loadout_certification
		name = GENERIC_aurora_aerodynamics_corporation_heavy_loadout_certification
		icon = GFX_generic_mio_trait_icon_air_ground_attack

		all_parents = { GENERIC_aurora_aerodynamics_corporation_stand_off_stores_pylon }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_all_weather_strike_platform

		equipment_bonus = { air_ground_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter
		name = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter
		icon = GFX_generic_mio_trait_icon_research

		position = { x = 8 y = 0 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_ram_stealth_coatings
		name = GENERIC_aurora_aerodynamics_corporation_ram_stealth_coatings
		icon = GFX_generic_mio_trait_icon_air_defence

		all_parents = { GENERIC_aurora_aerodynamics_corporation_phantom_works_charter }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		equipment_bonus = { air_defence = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_fifth_gen_demonstrator
		name = GENERIC_aurora_aerodynamics_corporation_fifth_gen_demonstrator
		icon = GFX_generic_mio_trait_icon_air_attack

		all_parents = { GENERIC_aurora_aerodynamics_corporation_phantom_works_charter }

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

		equipment_bonus = { air_attack = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "By Blood Alone" }
					add_tech_bonus = {
						name = GENERIC_aurora_aerodynamics_corporation_fifth_gen_demonstrator
						bonus = 0.10
						uses = 1
						category = CAT_avionics
					} hidden_effect = { rq_eb_f9cc8494fa = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_aurora_aerodynamics_corporation_fifth_gen_demonstrator
						bonus = 0.10
						uses = 1
						category = CAT_aircraft
					} hidden_effect = { rq_eb_ce6880c1df = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_loyal_wingman_datalink
		name = GENERIC_aurora_aerodynamics_corporation_loyal_wingman_datalink
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_aurora_aerodynamics_corporation_phantom_works_charter }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_faceted_airframe
		name = GENERIC_aurora_aerodynamics_corporation_faceted_airframe
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_aurora_aerodynamics_corporation_ram_stealth_coatings }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_blended_wing_body }

		equipment_bonus = { maximum_speed = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_blended_wing_body
		name = GENERIC_aurora_aerodynamics_corporation_blended_wing_body
		icon = GFX_generic_mio_trait_icon_air_agility

		all_parents = { GENERIC_aurora_aerodynamics_corporation_fifth_gen_demonstrator }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_faceted_airframe }

		equipment_bonus = { air_agility = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_adaptive_cycle_engine
		name = GENERIC_aurora_aerodynamics_corporation_adaptive_cycle_engine
		icon = GFX_generic_mio_trait_icon_air_range

		all_parents = { GENERIC_aurora_aerodynamics_corporation_loyal_wingman_datalink }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		equipment_bonus = { air_range = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_long_range_strike_package
		name = GENERIC_aurora_aerodynamics_corporation_long_range_strike_package
		icon = GFX_generic_mio_trait_icon_strategic_attack

		any_parent = { GENERIC_aurora_aerodynamics_corporation_faceted_airframe }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		equipment_bonus = { air_bombing = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_classified_funding_stream
		name = GENERIC_aurora_aerodynamics_corporation_classified_funding_stream
		icon = GFX_generic_mio_trait_icon_funds

		any_parent = {
			GENERIC_aurora_aerodynamics_corporation_faceted_airframe
			GENERIC_aurora_aerodynamics_corporation_blended_wing_body
		}

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

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_cost_overrun_buffer }

		organization_modifier = { military_industrial_organization_funds_gain = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_cost_overrun_buffer
		name = GENERIC_aurora_aerodynamics_corporation_cost_overrun_buffer
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_aurora_aerodynamics_corporation_adaptive_cycle_engine }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		mutually_exclusive = { GENERIC_aurora_aerodynamics_corporation_classified_funding_stream }

		organization_modifier = { military_industrial_organization_funds_gain = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_ngad_concept_contract
		name = GENERIC_aurora_aerodynamics_corporation_ngad_concept_contract
		icon = GFX_generic_mio_trait_icon_task

		any_parent = { GENERIC_aurora_aerodynamics_corporation_long_range_strike_package }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_rapid_prototyping_lab
		name = GENERIC_aurora_aerodynamics_corporation_rapid_prototyping_lab
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		any_parent = {
			GENERIC_aurora_aerodynamics_corporation_classified_funding_stream
			GENERIC_aurora_aerodynamics_corporation_cost_overrun_buffer
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		production_bonus = { production_efficiency_gain_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_directed_energy_weapon
		name = GENERIC_aurora_aerodynamics_corporation_directed_energy_weapon
		icon = GFX_generic_mio_trait_icon_strategic_attack

		all_parents = { GENERIC_aurora_aerodynamics_corporation_cost_overrun_buffer }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		equipment_bonus = { air_bombing = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_aurora_aerodynamics_corporation_sixth_gen_vision
		name = GENERIC_aurora_aerodynamics_corporation_sixth_gen_vision
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_aurora_aerodynamics_corporation_rapid_prototyping_lab }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_aurora_aerodynamics_corporation_phantom_works_charter

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_triton_maritime_defense_group = {
	allowed = { always = yes }
	name = GENERIC_triton_maritime_defense_group_name
	icon = GFX_idea_company_triton_maritime

	visible = {
		FROM = {
			OR = {
				has_country_flag = triton_maritime_defense_group_unlocked
				GENERIC_triton_maritime_defense_group_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = triton_maritime_defense_group_unlocked } }
			}
			FROM = { has_country_flag = triton_maritime_defense_group_unlocked }
		}
	}

	equipment_type = {
		mio_cat_destroyers
		mio_cat_frigates
		battle_cruiser
	}

	research_categories = {
		CAT_destroyers
		CAT_frigates
		CAT_naval_electronics
		CAT_naval_vertical_launch_systems
		CAT_naval_anti_air_missiles
	}

	initial_trait = {
		name = GENERIC_triton_maritime_defense_group_trait

		equipment_bonus = {
			build_cost_ic = -0.03
			reliability = 0.03
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_toulon_charter
		name = GENERIC_triton_maritime_defense_group_toulon_charter
		icon = GFX_generic_mio_trait_icon_surface_detection

		position = { x = 1 y = 0 }

		equipment_bonus = { surface_detection = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_triton_maritime_defense_group_toulon_charter
					bonus = 0.10
					uses = 1
					category = CAT_naval_electronics
				} hidden_effect = { rq_eb_a6a3f79acc = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_la_spezia_dockyard
		name = GENERIC_triton_maritime_defense_group_la_spezia_dockyard
		icon = GFX_generic_mio_trait_icon_naval_speed

		position = { x = 4 y = 0 }

		equipment_bonus = { naval_speed = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_coastal = yes
						free_building_slots = { building = dockyard size > 0 include_locked = no }
					}
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_cadiz_arsenal
		name = GENERIC_triton_maritime_defense_group_cadiz_arsenal
		icon = GFX_generic_mio_trait_icon_hg_attack

		position = { x = 7 y = 0 }

		equipment_bonus = { hg_attack = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_triton_maritime_defense_group_cadiz_arsenal
					bonus = 0.10
					uses = 1
					category = CAT_naval_vertical_launch_systems
				} hidden_effect = { rq_eb_97e08eff6f = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_thales_heritage
		name = GENERIC_triton_maritime_defense_group_thales_heritage
		icon = GFX_generic_mio_trait_icon_surface_detection

		all_parents = { GENERIC_triton_maritime_defense_group_toulon_charter }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		equipment_bonus = { surface_detection = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_integrated_mast
		name = GENERIC_triton_maritime_defense_group_integrated_mast
		icon = GFX_generic_mio_trait_icon_surface_detection

		all_parents = { GENERIC_triton_maritime_defense_group_toulon_charter }

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

		equipment_bonus = { surface_detection = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_herakles_suite
		name = GENERIC_triton_maritime_defense_group_herakles_suite
		icon = GFX_generic_mio_trait_icon_naval_anti_air_attack

		all_parents = { GENERIC_triton_maritime_defense_group_toulon_charter }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		equipment_bonus = { anti_air_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_fremm_lineage
		name = GENERIC_triton_maritime_defense_group_fremm_lineage
		icon = GFX_generic_mio_trait_icon_naval_speed

		all_parents = { GENERIC_triton_maritime_defense_group_la_spezia_dockyard }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		equipment_bonus = { naval_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_horizon_dna
		name = GENERIC_triton_maritime_defense_group_horizon_dna
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = { GENERIC_triton_maritime_defense_group_la_spezia_dockyard }

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

		equipment_bonus = { armor_value = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_fincantieri_workflow
		name = GENERIC_triton_maritime_defense_group_fincantieri_workflow
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_triton_maritime_defense_group_la_spezia_dockyard }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_navantia_guns
		name = GENERIC_triton_maritime_defense_group_navantia_guns
		icon = GFX_generic_mio_trait_icon_hg_attack

		all_parents = { GENERIC_triton_maritime_defense_group_cadiz_arsenal }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = { hg_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_aster_15
		name = GENERIC_triton_maritime_defense_group_aster_15
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = { GENERIC_triton_maritime_defense_group_cadiz_arsenal }

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

		equipment_bonus = { max_organisation = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_mu90_impact
		name = GENERIC_triton_maritime_defense_group_mu90_impact
		icon = GFX_generic_mio_trait_icon_torpedo_attack

		all_parents = { GENERIC_triton_maritime_defense_group_cadiz_arsenal }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = { torpedo_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_smart_l_scanner
		name = GENERIC_triton_maritime_defense_group_smart_l_scanner
		icon = GFX_generic_mio_trait_icon_sub_detection

		all_parents = { GENERIC_triton_maritime_defense_group_thales_heritage }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		equipment_bonus = { sub_detection = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_aegis_clone_cms
		name = GENERIC_triton_maritime_defense_group_aegis_clone_cms
		icon = GFX_generic_mio_trait_icon_batteries_hit_chance

		all_parents = { GENERIC_triton_maritime_defense_group_integrated_mast }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		equipment_bonus = {
			hg_attack = 0.06
			lg_attack = 0.06
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_empar_array
		name = GENERIC_triton_maritime_defense_group_empar_array
		icon = GFX_generic_mio_trait_icon_naval_anti_air_attack

		all_parents = { GENERIC_triton_maritime_defense_group_herakles_suite }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		equipment_bonus = { anti_air_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_gas_turbine_overhaul
		name = GENERIC_triton_maritime_defense_group_gas_turbine_overhaul
		icon = GFX_generic_mio_trait_icon_naval_speed

		all_parents = { GENERIC_triton_maritime_defense_group_fremm_lineage }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		equipment_bonus = { naval_speed = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_modular_hull
		name = GENERIC_triton_maritime_defense_group_modular_hull
		icon = GFX_generic_mio_trait_icon_max_strength

		all_parents = { GENERIC_triton_maritime_defense_group_horizon_dna }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		equipment_bonus = { max_strength = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_la_spezia_slipways
		name = GENERIC_triton_maritime_defense_group_la_spezia_slipways
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_triton_maritime_defense_group_fincantieri_workflow }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_oto_melara_127
		name = GENERIC_triton_maritime_defense_group_oto_melara_127
		icon = GFX_generic_mio_trait_icon_hg_attack

		all_parents = { GENERIC_triton_maritime_defense_group_navantia_guns }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = {
			hg_attack = 0.08
			hg_armor_piercing = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_aster_30_1nt
		name = GENERIC_triton_maritime_defense_group_aster_30_1nt
		icon = GFX_generic_mio_trait_icon_max_strength

		all_parents = { GENERIC_triton_maritime_defense_group_aster_15 }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = { max_strength = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_black_shark
		name = GENERIC_triton_maritime_defense_group_black_shark
		icon = GFX_generic_mio_trait_icon_torpedo_attack

		all_parents = { GENERIC_triton_maritime_defense_group_mu90_impact }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = { torpedo_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_ew_pod_delta
		name = GENERIC_triton_maritime_defense_group_ew_pod_delta
		icon = GFX_generic_mio_trait_icon_sub_visibility

		all_parents = { GENERIC_triton_maritime_defense_group_smart_l_scanner }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		mutually_exclusive = { GENERIC_triton_maritime_defense_group_decoy_cyclone }

		equipment_bonus = { surface_visibility = -0.08 }

		production_bonus = { production_cost_factor = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_sampson_upgrade
		name = GENERIC_triton_maritime_defense_group_sampson_upgrade
		icon = GFX_generic_mio_trait_icon_sub_detection

		all_parents = { GENERIC_triton_maritime_defense_group_aegis_clone_cms }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		equipment_bonus = { sub_detection = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_decoy_cyclone
		name = GENERIC_triton_maritime_defense_group_decoy_cyclone
		icon = GFX_generic_mio_trait_icon_surface_visibility

		all_parents = { GENERIC_triton_maritime_defense_group_empar_array }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		mutually_exclusive = { GENERIC_triton_maritime_defense_group_ew_pod_delta }

		equipment_bonus = { surface_visibility = -0.08 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_ifep_propulsion
		name = GENERIC_triton_maritime_defense_group_ifep_propulsion
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = { GENERIC_triton_maritime_defense_group_gas_turbine_overhaul }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		mutually_exclusive = { GENERIC_triton_maritime_defense_group_ppa_tri_role }

		equipment_bonus = { max_organisation = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_fuel_bunker_ext
		name = GENERIC_triton_maritime_defense_group_fuel_bunker_ext
		icon = GFX_generic_mio_trait_icon_naval_range

		all_parents = { GENERIC_triton_maritime_defense_group_modular_hull }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		equipment_bonus = { naval_range = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_ppa_tri_role
		name = GENERIC_triton_maritime_defense_group_ppa_tri_role
		icon = GFX_generic_mio_trait_icon_max_strength

		all_parents = { GENERIC_triton_maritime_defense_group_la_spezia_slipways }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		mutually_exclusive = { GENERIC_triton_maritime_defense_group_ifep_propulsion }

		equipment_bonus = { max_strength = 0.06 }

		production_bonus = { production_resource_need_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_strales_ammo
		name = GENERIC_triton_maritime_defense_group_strales_ammo
		icon = GFX_generic_mio_trait_icon_batteries_hit_chance

		all_parents = { GENERIC_triton_maritime_defense_group_oto_melara_127 }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		mutually_exclusive = { GENERIC_triton_maritime_defense_group_mk41_integration }

		equipment_bonus = { hg_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_sylver_a70
		name = GENERIC_triton_maritime_defense_group_sylver_a70
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = {
			GENERIC_triton_maritime_defense_group_aster_30_1nt
			GENERIC_triton_maritime_defense_group_aegis_clone_cms
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = { max_organisation = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_triton_maritime_defense_group_sylver_a70
					bonus = 0.10
					uses = 1
					category = CAT_naval_anti_air_missiles
				} hidden_effect = { rq_eb_53bc640595 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_mk41_integration
		name = GENERIC_triton_maritime_defense_group_mk41_integration
		icon = GFX_generic_mio_trait_icon_batteries_hit_chance

		all_parents = { GENERIC_triton_maritime_defense_group_black_shark }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		mutually_exclusive = { GENERIC_triton_maritime_defense_group_strales_ammo }

		equipment_bonus = { lg_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_cofres_relay
		name = GENERIC_triton_maritime_defense_group_cofres_relay
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_triton_maritime_defense_group_ew_pod_delta }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		production_bonus = { production_resource_penalty_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_paams_integration
		name = GENERIC_triton_maritime_defense_group_paams_integration
		icon = GFX_generic_mio_trait_icon_naval_anti_air_attack

		all_parents = { GENERIC_triton_maritime_defense_group_sampson_upgrade }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		equipment_bonus = { anti_air_attack = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_crotale_ng
		name = GENERIC_triton_maritime_defense_group_crotale_ng
		icon = GFX_generic_mio_trait_icon_lg_attack

		all_parents = { GENERIC_triton_maritime_defense_group_decoy_cyclone }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		equipment_bonus = { lg_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_cifs_node
		name = GENERIC_triton_maritime_defense_group_cifs_node
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = { GENERIC_triton_maritime_defense_group_ifep_propulsion }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		equipment_bonus = { armor_value = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_kevlar_belt
		name = GENERIC_triton_maritime_defense_group_kevlar_belt
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = { GENERIC_triton_maritime_defense_group_fuel_bunker_ext }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		equipment_bonus = { armor_value = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_coastal = yes
						free_building_slots = { building = dockyard size > 0 include_locked = no }
					}
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_common_deck
		name = GENERIC_triton_maritime_defense_group_common_deck
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_triton_maritime_defense_group_ppa_tri_role }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_dart_ammo
		name = GENERIC_triton_maritime_defense_group_dart_ammo
		icon = GFX_generic_mio_trait_icon_ap_attack

		all_parents = { GENERIC_triton_maritime_defense_group_strales_ammo }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = {
			hg_armor_piercing = 0.06
			lg_attack = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_searam_integration
		name = GENERIC_triton_maritime_defense_group_searam_integration
		icon = GFX_generic_mio_trait_icon_batteries_hit_chance

		all_parents = { GENERIC_triton_maritime_defense_group_sylver_a70 }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = { hg_attack = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_bofors_40l70
		name = GENERIC_triton_maritime_defense_group_bofors_40l70
		icon = GFX_generic_mio_trait_icon_lg_attack

		all_parents = { GENERIC_triton_maritime_defense_group_mk41_integration }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = { lg_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_research_compact
		name = GENERIC_triton_maritime_defense_group_research_compact
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_triton_maritime_defense_group_cofres_relay }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
			military_industrial_organization_design_team_assign_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_combat_cloud_link
		name = GENERIC_triton_maritime_defense_group_combat_cloud_link
		icon = GFX_generic_mio_trait_icon_sub_detection

		all_parents = {
			GENERIC_triton_maritime_defense_group_paams_integration
			GENERIC_triton_maritime_defense_group_kevlar_belt
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_triton_maritime_defense_group_toulon_charter

		equipment_bonus = { sub_detection = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_triton_maritime_defense_group_combat_cloud_link
					bonus = 0.10
					uses = 1
					category = CAT_naval_electronics
				} hidden_effect = { rq_eb_a6a3f79acc = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_toulon_genoa_rotation
		name = GENERIC_triton_maritime_defense_group_toulon_genoa_rotation
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = { GENERIC_triton_maritime_defense_group_cifs_node }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		equipment_bonus = { reliability = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_triton_skills_pact
		name = GENERIC_triton_maritime_defense_group_triton_skills_pact
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = { GENERIC_triton_maritime_defense_group_common_deck }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_triton_maritime_defense_group_la_spezia_dockyard

		equipment_bonus = { max_organisation = 0.04 }

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_size_up_requirement = -0.10
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_teseo_mk2e
		name = GENERIC_triton_maritime_defense_group_teseo_mk2e
		icon = GFX_generic_mio_trait_icon_lg_attack

		all_parents = { GENERIC_triton_maritime_defense_group_dart_ammo }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		equipment_bonus = { lg_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_triton_maritime_defense_group_mbda_consortium
		name = GENERIC_triton_maritime_defense_group_mbda_consortium
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_triton_maritime_defense_group_bofors_40l70 }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_triton_maritime_defense_group_cadiz_arsenal

		production_bonus = { production_cost_factor = -0.06 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_skyforge_autonomous_systems = {
	allowed = { always = yes }
	name = GENERIC_skyforge_autonomous_systems_name
	icon = GFX_idea_company_skyforge

	task_capacity = 10

	visible = {
		FROM = {
			OR = {
				has_country_flag = skyforge_autonomous_systems_unlocked
				GENERIC_skyforge_autonomous_systems_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = skyforge_autonomous_systems_unlocked } }
			}
			FROM = { has_country_flag = skyforge_autonomous_systems_unlocked }
		}
	}

	equipment_type = {
		mio_cat_eq_only_uav
		land_drone_equipment_type
	}

	research_categories = {
		CAT_air_drones
		CAT_avionics
		CAT_artificial_intelligence
		CAT_land_drones
	}

	initial_trait = {
		name = GENERIC_skyforge_autonomous_systems_trait

		equipment_bonus = { build_cost_ic = -0.03 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.03 }
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_attritable_doctrine
		name = GENERIC_skyforge_autonomous_systems_attritable_doctrine
		icon = GFX_generic_mio_trait_icon_design

		position = { x = 1 y = 0 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_skyforge_autonomous_systems_attritable_doctrine
					bonus = 0.10
					uses = 1
					category = CAT_air_drones
				} hidden_effect = { rq_eb_5e7dff21a1 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_printed_fuselage
		name = GENERIC_skyforge_autonomous_systems_printed_fuselage
		icon = GFX_generic_mio_trait_icon_uav_buildcost

		all_parents = { GENERIC_skyforge_autonomous_systems_attritable_doctrine }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_offshelf_motors
		name = GENERIC_skyforge_autonomous_systems_offshelf_motors
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_skyforge_autonomous_systems_attritable_doctrine }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_swarm_production
		name = GENERIC_skyforge_autonomous_systems_swarm_production
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_skyforge_autonomous_systems_attritable_doctrine }

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

		production_bonus = { production_capacity_factor = 0.12 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_opensource_autopilot
		name = GENERIC_skyforge_autonomous_systems_opensource_autopilot
		icon = GFX_generic_mio_trait_icon_uav_reliability

		all_parents = { GENERIC_skyforge_autonomous_systems_printed_fuselage }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_tractor_chassis
		name = GENERIC_skyforge_autonomous_systems_tractor_chassis
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_skyforge_autonomous_systems_offshelf_motors }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = {
			reliability = 0.05
			maximum_speed = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_attritable_contract
		name = GENERIC_skyforge_autonomous_systems_attritable_contract
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_skyforge_autonomous_systems_swarm_production }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_research_bonus = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_polystyrene_wings
		name = GENERIC_skyforge_autonomous_systems_polystyrene_wings
		icon = GFX_generic_mio_trait_icon_uav_weight

		all_parents = { GENERIC_skyforge_autonomous_systems_opensource_autopilot }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { weight = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_cargocult_assembly
		name = GENERIC_skyforge_autonomous_systems_cargocult_assembly
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_skyforge_autonomous_systems_attritable_contract }

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

		mutually_exclusive = { GENERIC_skyforge_autonomous_systems_handsoldered_quality }

		production_bonus = { production_cost_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_handsoldered_quality
		name = GENERIC_skyforge_autonomous_systems_handsoldered_quality
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_skyforge_autonomous_systems_attritable_contract }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		mutually_exclusive = { GENERIC_skyforge_autonomous_systems_cargocult_assembly }

		production_bonus = { production_efficiency_gain_factor = 0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_shahed_lessons
		name = GENERIC_skyforge_autonomous_systems_shahed_lessons
		icon = GFX_generic_mio_trait_icon_uav_range

		all_parents = { GENERIC_skyforge_autonomous_systems_polystyrene_wings }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { air_range = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_sacrificial_loiter
		name = GENERIC_skyforge_autonomous_systems_sacrificial_loiter
		icon = GFX_generic_mio_trait_icon_uav_strategic_attack

		any_parent = {
			GENERIC_skyforge_autonomous_systems_cargocult_assembly
			GENERIC_skyforge_autonomous_systems_handsoldered_quality
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = {
			air_bombing = 0.07
			naval_strike_attack = 0.05
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_skyforge_autonomous_systems_sacrificial_loiter
					bonus = 0.10
					uses = 1
					category = CAT_air_drones
				} hidden_effect = { rq_eb_5e7dff21a1 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_walmart_doctrine
		name = GENERIC_skyforge_autonomous_systems_walmart_doctrine
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_skyforge_autonomous_systems_sacrificial_loiter }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_attritable_doctrine

		organization_modifier = {
			military_industrial_organization_size_up_requirement = -0.10
			military_industrial_organization_funds_gain = 0.04
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_predator_lineage
		name = GENERIC_skyforge_autonomous_systems_predator_lineage
		icon = GFX_generic_mio_trait_icon_uav_air_attack

		position = { x = 5 y = 0 }

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { air_attack = 0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_skyforge_autonomous_systems_predator_lineage
					bonus = 0.10
					uses = 1
					category = CAT_air_drones
				} hidden_effect = { rq_eb_5e7dff21a1 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_gimbal_turret
		name = GENERIC_skyforge_autonomous_systems_gimbal_turret
		icon = GFX_generic_mio_trait_icon_uav_air_ground_attack

		all_parents = { GENERIC_skyforge_autonomous_systems_predator_lineage }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { air_ground_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_hellfire_rail
		name = GENERIC_skyforge_autonomous_systems_hellfire_rail
		icon = GFX_generic_mio_trait_icon_uav_air_attack

		all_parents = { GENERIC_skyforge_autonomous_systems_predator_lineage }

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

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { air_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_endurance_wing
		name = GENERIC_skyforge_autonomous_systems_endurance_wing
		icon = GFX_generic_mio_trait_icon_uav_range

		all_parents = { GENERIC_skyforge_autonomous_systems_predator_lineage }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { air_range = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_encrypted_datalink
		name = GENERIC_skyforge_autonomous_systems_encrypted_datalink
		icon = GFX_generic_mio_trait_icon_uav_defense

		all_parents = { GENERIC_skyforge_autonomous_systems_gimbal_turret }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { air_defence = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_surveillance_pod
		name = GENERIC_skyforge_autonomous_systems_surveillance_pod
		icon = GFX_generic_mio_trait_icon_uav

		all_parents = { GENERIC_skyforge_autonomous_systems_endurance_wing }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		limit_to_equipment_type = { medium_plane_suicide_airframe }

		equipment_bonus = { surface_detection = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_topattack_turret
		name = GENERIC_skyforge_autonomous_systems_topattack_turret
		icon = GFX_generic_mio_trait_icon_ap_attack

		all_parents = { GENERIC_skyforge_autonomous_systems_hellfire_rail }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = { hard_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_reactive_composite
		name = GENERIC_skyforge_autonomous_systems_reactive_composite
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_skyforge_autonomous_systems_encrypted_datalink }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = { defense = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_highspeed_scout
		name = GENERIC_skyforge_autonomous_systems_highspeed_scout
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_skyforge_autonomous_systems_surveillance_pod }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = {
			maximum_speed = 0.08
			breakthrough = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_crewserved_ugv
		name = GENERIC_skyforge_autonomous_systems_crewserved_ugv
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_skyforge_autonomous_systems_topattack_turret }

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

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = { soft_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_stealth_airframe
		name = GENERIC_skyforge_autonomous_systems_stealth_airframe
		icon = GFX_generic_mio_trait_icon_uav_defense

		all_parents = { GENERIC_skyforge_autonomous_systems_reactive_composite }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		mutually_exclusive = { GENERIC_skyforge_autonomous_systems_agile_variant }

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { air_defence = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_agile_variant
		name = GENERIC_skyforge_autonomous_systems_agile_variant
		icon = GFX_generic_mio_trait_icon_uav_agility

		all_parents = { GENERIC_skyforge_autonomous_systems_highspeed_scout }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		mutually_exclusive = { GENERIC_skyforge_autonomous_systems_stealth_airframe }

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = {
			air_agility = 0.08
			maximum_speed = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_socom_premium
		name = GENERIC_skyforge_autonomous_systems_socom_premium
		icon = GFX_generic_mio_trait_icon_research

		any_parent = {
			GENERIC_skyforge_autonomous_systems_stealth_airframe
			GENERIC_skyforge_autonomous_systems_agile_variant
		}

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_predator_lineage

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
			military_industrial_organization_design_team_change_cost = -0.25
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_mountainview_doctrine
		name = GENERIC_skyforge_autonomous_systems_mountainview_doctrine
		icon = GFX_generic_mio_trait_icon_design

		position = { x = 8 y = 0 }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_skyforge_autonomous_systems_mountainview_doctrine
					bonus = 0.10
					uses = 1
					category = CAT_artificial_intelligence
				} hidden_effect = { rq_eb_70b9092d7f = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_palantir_targeting
		name = GENERIC_skyforge_autonomous_systems_palantir_targeting
		icon = GFX_generic_mio_trait_icon_uav_air_ground_attack

		all_parents = { GENERIC_skyforge_autonomous_systems_mountainview_doctrine }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = {
			air_ground_attack = 0.05
			air_attack = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_anduril_lattice
		name = GENERIC_skyforge_autonomous_systems_anduril_lattice
		icon = GFX_generic_mio_trait_icon_uav_defense

		all_parents = { GENERIC_skyforge_autonomous_systems_mountainview_doctrine }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { air_defence = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_ai_autonomy
		name = GENERIC_skyforge_autonomous_systems_ai_autonomy
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_skyforge_autonomous_systems_mountainview_doctrine }

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

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = { breakthrough = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_isr_mesh
		name = GENERIC_skyforge_autonomous_systems_isr_mesh
		icon = GFX_generic_mio_trait_icon_uav

		all_parents = { GENERIC_skyforge_autonomous_systems_palantir_targeting }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		limit_to_equipment_type = { medium_plane_suicide_airframe }

		equipment_bonus = {
			surface_detection = 0.08
			sub_detection = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_machine_vision
		name = GENERIC_skyforge_autonomous_systems_machine_vision
		icon = GFX_generic_mio_trait_icon_hard_attack

		all_parents = { GENERIC_skyforge_autonomous_systems_anduril_lattice }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = {
			hard_attack = 0.06
			soft_attack = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_rapid_iteration
		name = GENERIC_skyforge_autonomous_systems_rapid_iteration
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_skyforge_autonomous_systems_ai_autonomy }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		organization_modifier = {
			military_industrial_organization_design_team_change_cost = -0.20
			military_industrial_organization_design_team_assign_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_sv_recruiting
		name = GENERIC_skyforge_autonomous_systems_sv_recruiting
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_skyforge_autonomous_systems_isr_mesh }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.04
			military_industrial_organization_size_up_requirement = -0.08
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_ota_contracts
		name = GENERIC_skyforge_autonomous_systems_ota_contracts
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_skyforge_autonomous_systems_machine_vision }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.07
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_edge_compute
		name = GENERIC_skyforge_autonomous_systems_edge_compute
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_skyforge_autonomous_systems_rapid_iteration }

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

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = {
			recon = 0.05
			defense = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_gps_denied_nav
		name = GENERIC_skyforge_autonomous_systems_gps_denied_nav
		icon = GFX_generic_mio_trait_icon_uav_agility

		any_parent = { GENERIC_skyforge_autonomous_systems_sv_recruiting }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		mutually_exclusive = { GENERIC_skyforge_autonomous_systems_swarm_coord }

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = { air_agility = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_swarm_coord
		name = GENERIC_skyforge_autonomous_systems_swarm_coord
		icon = GFX_generic_mio_trait_icon_uav_agility

		all_parents = { GENERIC_skyforge_autonomous_systems_ota_contracts }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		mutually_exclusive = { GENERIC_skyforge_autonomous_systems_gps_denied_nav }

		limit_to_equipment_type = { mio_cat_eq_only_uav }

		equipment_bonus = {
			air_range = 0.05
			air_agility = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_killchain_integration
		name = GENERIC_skyforge_autonomous_systems_killchain_integration
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_skyforge_autonomous_systems_edge_compute }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_command_power = 10 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_skyforge_autonomous_systems_mass_production_line
		name = GENERIC_skyforge_autonomous_systems_mass_production_line
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		all_parents = { GENERIC_skyforge_autonomous_systems_killchain_integration }

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_skyforge_autonomous_systems_mountainview_doctrine

		production_bonus = { production_efficiency_cap_factor = 0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_sentinel_grid_networks = {
	allowed = { always = yes }
	name = GENERIC_sentinel_grid_networks
	icon = GFX_idea_company_sentinel_grid_networks

	visible = {
		FROM = {
			OR = {
				has_country_flag = sentinel_grid_networks_unlocked
				GENERIC_sentinel_grid_networks_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = sentinel_grid_networks_unlocked } }
			}
			FROM = { has_country_flag = sentinel_grid_networks_unlocked }
		}
	}

	equipment_type = { cnc_equipment_type }

	research_categories = { CAT_command_and_control_equipment }

	initial_trait = {
		name = GENERIC_sentinel_grid_networks_trait

		production_bonus = {
			production_efficiency_cap_factor = 0.03
			production_capacity_factor = 0.10
			production_resource_penalty_factor = 0.075
		}

		organization_modifier = { military_industrial_organization_research_bonus = 0.05 }
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_lattice_mesh
		name = GENERIC_sentinel_grid_networks_lattice_mesh
		icon = GFX_generic_mio_trait_icon_reliability

		position = { x = 1 y = 0 }

		equipment_bonus = {
			reliability = 0.05
			max_organisation = 0.05
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_sentinel_grid_networks_lattice_mesh
					bonus = 0.10
					uses = 1
					category = CAT_command_and_control_equipment
				} hidden_effect = { rq_eb_bff1dcf148 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_packet_storm
		name = GENERIC_sentinel_grid_networks_packet_storm
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_sentinel_grid_networks_lattice_mesh }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_sentinel_grid_networks_lattice_mesh

		equipment_bonus = { reliability = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_frequency_hopping
		name = GENERIC_sentinel_grid_networks_frequency_hopping
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_sentinel_grid_networks_lattice_mesh }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_sentinel_grid_networks_lattice_mesh

		equipment_bonus = { maximum_speed = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_hardened_antennae
		name = GENERIC_sentinel_grid_networks_hardened_antennae
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_sentinel_grid_networks_packet_storm }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_sentinel_grid_networks_lattice_mesh

		equipment_bonus = { reliability = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_self_healing_routing
		name = GENERIC_sentinel_grid_networks_self_healing_routing
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_sentinel_grid_networks_frequency_hopping }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_sentinel_grid_networks_lattice_mesh

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_signal_discipline
		name = GENERIC_sentinel_grid_networks_signal_discipline
		icon = GFX_generic_mio_trait_icon_resources

		any_parent = { GENERIC_sentinel_grid_networks_hardened_antennae }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_sentinel_grid_networks_lattice_mesh

		mutually_exclusive = { GENERIC_sentinel_grid_networks_dense_mesh }

		production_bonus = {
			production_cost_factor = -0.08
			production_resource_penalty_factor = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_dense_mesh
		name = GENERIC_sentinel_grid_networks_dense_mesh
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = { GENERIC_sentinel_grid_networks_self_healing_routing }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_sentinel_grid_networks_lattice_mesh

		mutually_exclusive = { GENERIC_sentinel_grid_networks_signal_discipline }

		equipment_bonus = { max_organisation = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_fabric_keystone
		name = GENERIC_sentinel_grid_networks_fabric_keystone
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_sentinel_grid_networks_signal_discipline
			GENERIC_sentinel_grid_networks_dense_mesh
			GENERIC_sentinel_grid_networks_crosshair_targeting
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_sentinel_grid_networks_lattice_mesh

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_funds_gain = 0.05
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_command_power = 10 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_oracle_kernel
		name = GENERIC_sentinel_grid_networks_oracle_kernel
		icon = GFX_generic_mio_trait_icon_maximum_speed

		position = { x = 4 y = 0 }

		equipment_bonus = {
			max_organisation = 0.05
			maximum_speed = 0.05
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_sentinel_grid_networks_oracle_kernel
					bonus = 0.10
					uses = 1
					category = CAT_command_and_control_equipment
				} hidden_effect = { rq_eb_bff1dcf148 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_sensor_spine
		name = GENERIC_sentinel_grid_networks_sensor_spine
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_sentinel_grid_networks_oracle_kernel }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_sentinel_grid_networks_oracle_kernel

		equipment_bonus = { maximum_speed = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_crosshair_targeting
		name = GENERIC_sentinel_grid_networks_crosshair_targeting
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_sentinel_grid_networks_oracle_kernel }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_sentinel_grid_networks_oracle_kernel

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_pattern_recognition
		name = GENERIC_sentinel_grid_networks_pattern_recognition
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_sentinel_grid_networks_sensor_spine }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_sentinel_grid_networks_oracle_kernel

		organization_modifier = { military_industrial_organization_research_bonus = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_multi_domain_feed
		name = GENERIC_sentinel_grid_networks_multi_domain_feed
		icon = GFX_generic_mio_trait_icon_conversion_speed

		all_parents = { GENERIC_sentinel_grid_networks_crosshair_targeting }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_sentinel_grid_networks_oracle_kernel

		production_bonus = { production_conversion_speed_factor = 0.25 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_predictive_strike
		name = GENERIC_sentinel_grid_networks_predictive_strike
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_sentinel_grid_networks_pattern_recognition }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_sentinel_grid_networks_oracle_kernel

		mutually_exclusive = { GENERIC_sentinel_grid_networks_pattern_of_life }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_pattern_of_life
		name = GENERIC_sentinel_grid_networks_pattern_of_life
		icon = GFX_generic_mio_trait_icon_research

		any_parent = { GENERIC_sentinel_grid_networks_multi_domain_feed }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_sentinel_grid_networks_oracle_kernel

		mutually_exclusive = { GENERIC_sentinel_grid_networks_predictive_strike }

		organization_modifier = { military_industrial_organization_research_bonus = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_kinetic_minimalism
		name = GENERIC_sentinel_grid_networks_kinetic_minimalism
		icon = GFX_generic_mio_trait_icon_design

		any_parent = {
			GENERIC_sentinel_grid_networks_predictive_strike
			GENERIC_sentinel_grid_networks_pattern_of_life
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_sentinel_grid_networks_oracle_kernel

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_compressor_keystone
		name = GENERIC_sentinel_grid_networks_compressor_keystone
		icon = GFX_generic_mio_trait_icon_task

		all_parents = {
			GENERIC_sentinel_grid_networks_kinetic_minimalism
			GENERIC_sentinel_grid_networks_dense_mesh
		}

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_sentinel_grid_networks_oracle_kernel

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_size_up_requirement = -0.10
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_command_power = 10 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_fieldbook_tablet
		name = GENERIC_sentinel_grid_networks_fieldbook_tablet
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		position = { x = 7 y = 0 }

		equipment_bonus = { build_cost_ic = -0.05 }

		production_bonus = { production_capacity_factor = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_rugged_revision
		name = GENERIC_sentinel_grid_networks_rugged_revision
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_sentinel_grid_networks_fieldbook_tablet }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_sentinel_grid_networks_fieldbook_tablet

		equipment_bonus = { build_cost_ic = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_consumer_cots
		name = GENERIC_sentinel_grid_networks_consumer_cots
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_sentinel_grid_networks_fieldbook_tablet }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_sentinel_grid_networks_fieldbook_tablet

		production_bonus = { production_cost_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_forward_dock
		name = GENERIC_sentinel_grid_networks_forward_dock
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = {
			GENERIC_sentinel_grid_networks_rugged_revision
			GENERIC_sentinel_grid_networks_packet_storm
		}

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_sentinel_grid_networks_fieldbook_tablet

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_ota_patching
		name = GENERIC_sentinel_grid_networks_ota_patching
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_sentinel_grid_networks_consumer_cots }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_sentinel_grid_networks_fieldbook_tablet

		production_bonus = { production_efficiency_gain_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_quick_swap_battery
		name = GENERIC_sentinel_grid_networks_quick_swap_battery
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_sentinel_grid_networks_forward_dock }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_sentinel_grid_networks_fieldbook_tablet

		mutually_exclusive = { GENERIC_sentinel_grid_networks_subsidised_units }

		production_bonus = { production_resource_need_factor = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_subsidised_units
		name = GENERIC_sentinel_grid_networks_subsidised_units
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_sentinel_grid_networks_ota_patching }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_sentinel_grid_networks_fieldbook_tablet

		mutually_exclusive = { GENERIC_sentinel_grid_networks_quick_swap_battery }

		production_bonus = { production_cost_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_sentinel_grid_networks_warfighter_keystone
		name = GENERIC_sentinel_grid_networks_warfighter_keystone
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_sentinel_grid_networks_quick_swap_battery
			GENERIC_sentinel_grid_networks_subsidised_units
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_sentinel_grid_networks_fieldbook_tablet

		organization_modifier = {
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.25
			military_industrial_organization_task_capacity = 1
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_vector_defense_labs = {
	allowed = { always = yes }
	name = GENERIC_vector_defense_labs_name
	icon = GFX_idea_company_vector_defense_labs

	task_capacity = 10

	visible = {
		FROM = {
			OR = {
				has_country_flag = vector_defense_labs_unlocked
				GENERIC_vector_defense_labs_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = vector_defense_labs_unlocked } }
			}
			FROM = { has_country_flag = vector_defense_labs_unlocked }
		}
	}

	equipment_type = {
		AA_Equipment
		sam_missile_equipment
	}

	research_categories = {
		CAT_manpads
		CAT_surface_to_air_missiles
		CAT_naval_anti_air_missiles
		CAT_microchips
	}

	initial_trait = {
		name = GENERIC_vector_defense_labs_trait

		equipment_bonus = { reliability = 0.03 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.04 }
	}

	trait = {
		token = GENERIC_vector_defense_labs_seed_round_mandate
		name = GENERIC_vector_defense_labs_seed_round_mandate
		icon = GFX_generic_mio_trait_icon_funds

		position = { x = 5 y = 0 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_vector_defense_labs_seed_round_mandate
					bonus = 0.10
					uses = 1
					category = CAT_surface_to_air_missiles
				} hidden_effect = { rq_eb_a744a50211 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_spacex_veterans
		name = GENERIC_vector_defense_labs_spacex_veterans
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_vector_defense_labs_seed_round_mandate }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_vertical_integration
		name = GENERIC_vector_defense_labs_vertical_integration
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_vector_defense_labs_seed_round_mandate }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.18 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_sceptics_demo_day
		name = GENERIC_vector_defense_labs_sceptics_demo_day
		icon = GFX_generic_mio_trait_icon_sam_reliability

		all_parents = { GENERIC_vector_defense_labs_spacex_veterans }

		position = { x = -2 y = 2 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { reliability = 0.05 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_white_sands_live_fire
		name = GENERIC_vector_defense_labs_white_sands_live_fire
		icon = GFX_generic_mio_trait_icon_sam_buildcost

		all_parents = {
			GENERIC_vector_defense_labs_spacex_veterans
			GENERIC_vector_defense_labs_vertical_integration
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		limit_to_equipment_type = { sam_missile_equipment }

		production_bonus = { production_cost_factor = -0.08 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_series_b_raise
		name = GENERIC_vector_defense_labs_series_b_raise
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_vector_defense_labs_vertical_integration }

		position = { x = 2 y = 2 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.06
			military_industrial_organization_size_up_requirement = -0.10
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_pentagon_contract
		name = GENERIC_vector_defense_labs_pentagon_contract
		icon = GFX_generic_mio_trait_icon_sam

		all_parents = {
			GENERIC_vector_defense_labs_sceptics_demo_day
			GENERIC_vector_defense_labs_white_sands_live_fire
		}

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		limit_to_equipment_type = { sam_missile_equipment }

		production_bonus = { production_capacity_factor = 0.08 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_arms_trade_show
		name = GENERIC_vector_defense_labs_arms_trade_show
		icon = GFX_generic_mio_trait_icon_design

		all_parents = {
			GENERIC_vector_defense_labs_white_sands_live_fire
			GENERIC_vector_defense_labs_series_b_raise
		}

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_rapid_scaling
		name = GENERIC_vector_defense_labs_rapid_scaling
		icon = GFX_generic_mio_trait_icon_sam_efficiency_gain

		all_parents = { GENERIC_vector_defense_labs_pentagon_contract }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		mutually_exclusive = { GENERIC_vector_defense_labs_quality_gate }

		limit_to_equipment_type = { sam_missile_equipment }

		production_bonus = { production_efficiency_gain_factor = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_quality_gate
		name = GENERIC_vector_defense_labs_quality_gate
		icon = GFX_generic_mio_trait_icon_sam_reliability

		all_parents = { GENERIC_vector_defense_labs_arms_trade_show }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		mutually_exclusive = { GENERIC_vector_defense_labs_rapid_scaling }

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { reliability = 0.05 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_product_market_fit
		name = GENERIC_vector_defense_labs_product_market_fit
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_vector_defense_labs_rapid_scaling
			GENERIC_vector_defense_labs_quality_gate
		}

		position = { x = -2 y = 5 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_research_bonus = 0.03
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_gigafactory_commissioned
		name = GENERIC_vector_defense_labs_gigafactory_commissioned
		icon = GFX_generic_mio_trait_icon_sam

		any_parent = {
			GENERIC_vector_defense_labs_rapid_scaling
			GENERIC_vector_defense_labs_quality_gate
		}

		position = { x = 2 y = 5 }
		relative_position_id = GENERIC_vector_defense_labs_seed_round_mandate

		limit_to_equipment_type = { sam_missile_equipment }

		production_bonus = { production_capacity_factor = 0.08 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_sensor_fusion_core
		name = GENERIC_vector_defense_labs_sensor_fusion_core
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_vector_defense_labs_product_market_fit }

		position = { x = 2 y = 6 }

		equipment_bonus = { reliability = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_vector_defense_labs_sensor_fusion_core
					bonus = 0.10
					uses = 1
					category = CAT_microchips
				} hidden_effect = { rq_eb_c4abe0b00c = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_ir_seeker_line
		name = GENERIC_vector_defense_labs_ir_seeker_line
		icon = GFX_generic_mio_trait_icon_aa_anti_air_attack

		all_parents = { GENERIC_vector_defense_labs_sensor_fusion_core }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { air_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_active_radar_module
		name = GENERIC_vector_defense_labs_active_radar_module
		icon = GFX_generic_mio_trait_icon_sam

		all_parents = { GENERIC_vector_defense_labs_sensor_fusion_core }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { air_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_neural_target_id
		name = GENERIC_vector_defense_labs_neural_target_id
		icon = GFX_generic_mio_trait_icon_aa_reliability

		all_parents = { GENERIC_vector_defense_labs_ir_seeker_line }

		position = { x = -2 y = 2 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_threat_discrimination_ai
		name = GENERIC_vector_defense_labs_threat_discrimination_ai
		icon = GFX_generic_mio_trait_icon_sam

		all_parents = {
			GENERIC_vector_defense_labs_ir_seeker_line
			GENERIC_vector_defense_labs_active_radar_module
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { air_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_bvr_engagement_logic
		name = GENERIC_vector_defense_labs_bvr_engagement_logic
		icon = GFX_generic_mio_trait_icon_sam_agility

		all_parents = { GENERIC_vector_defense_labs_active_radar_module }

		position = { x = 2 y = 2 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { air_agility = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_fire_control_radar
		name = GENERIC_vector_defense_labs_fire_control_radar
		icon = GFX_generic_mio_trait_icon_sam_reliability

		any_parent = { GENERIC_vector_defense_labs_neural_target_id }

		position = { x = -2 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { reliability = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_high_fidelity_seeker
		name = GENERIC_vector_defense_labs_high_fidelity_seeker
		icon = GFX_generic_mio_trait_icon_aa_anti_air_attack

		all_parents = {
			GENERIC_vector_defense_labs_neural_target_id
			GENERIC_vector_defense_labs_threat_discrimination_ai
		}

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		mutually_exclusive = { GENERIC_vector_defense_labs_cost_reduced_seeker }

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { air_attack = 0.07 }

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_cost_reduced_seeker
		name = GENERIC_vector_defense_labs_cost_reduced_seeker
		icon = GFX_generic_mio_trait_icon_aa_buildcost

		any_parent = { GENERIC_vector_defense_labs_threat_discrimination_ai }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		mutually_exclusive = { GENERIC_vector_defense_labs_high_fidelity_seeker }

		limit_to_equipment_type = { AA_Equipment }

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_swarm_coordination
		name = GENERIC_vector_defense_labs_swarm_coordination
		icon = GFX_generic_mio_trait_icon_sam_agility

		all_parents = { GENERIC_vector_defense_labs_bvr_engagement_logic }

		position = { x = 2 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { air_agility = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_dual_mode_seeker
		name = GENERIC_vector_defense_labs_dual_mode_seeker
		icon = GFX_generic_mio_trait_icon_sam_buildcost

		any_parent = { GENERIC_vector_defense_labs_fire_control_radar }

		position = { x = -2 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { build_cost_ic = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_networked_battery_c2
		name = GENERIC_vector_defense_labs_networked_battery_c2
		icon = GFX_generic_mio_trait_icon_aa_anti_air_attack

		all_parents = {
			GENERIC_vector_defense_labs_fire_control_radar
			GENERIC_vector_defense_labs_high_fidelity_seeker
		}

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { air_attack = 0.06 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_vector_defense_labs_networked_battery_c2
					bonus = 0.10
					uses = 1
					category = CAT_manpads
				} hidden_effect = { rq_eb_5bff3ca3ec = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_sceptic_proof_logs
		name = GENERIC_vector_defense_labs_sceptic_proof_logs
		icon = GFX_generic_mio_trait_icon_sam_efficiency_cap

		all_parents = {
			GENERIC_vector_defense_labs_cost_reduced_seeker
			GENERIC_vector_defense_labs_swarm_coordination
		}

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { sam_missile_equipment }

		production_bonus = { production_efficiency_cap_factor = 0.10 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_certification_milestone
		name = GENERIC_vector_defense_labs_certification_milestone
		icon = GFX_generic_mio_trait_icon_aa_reliability

		any_parent = { GENERIC_vector_defense_labs_swarm_coordination }

		position = { x = 2 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_sensor_fusion_core

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { reliability = 0.05 }

		production_bonus = { production_cost_factor = -0.07 }

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_kill_vehicle_chassis
		name = GENERIC_vector_defense_labs_kill_vehicle_chassis
		icon = GFX_generic_mio_trait_icon_sam_buildcost

		all_parents = { GENERIC_vector_defense_labs_gigafactory_commissioned }

		position = { x = 7 y = 6 }

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { build_cost_ic = -0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_vector_defense_labs_kill_vehicle_chassis
					bonus = 0.10
					uses = 1
					category = CAT_naval_anti_air_missiles
				} hidden_effect = { rq_eb_53bc640595 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_solid_motor_heritage
		name = GENERIC_vector_defense_labs_solid_motor_heritage
		icon = GFX_generic_mio_trait_icon_sam

		all_parents = { GENERIC_vector_defense_labs_kill_vehicle_chassis }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { maximum_speed = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_boost_sustain_profile
		name = GENERIC_vector_defense_labs_boost_sustain_profile
		icon = GFX_generic_mio_trait_icon_sam_speed

		all_parents = { GENERIC_vector_defense_labs_kill_vehicle_chassis }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { maximum_speed = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_composite_casings
		name = GENERIC_vector_defense_labs_composite_casings
		icon = GFX_generic_mio_trait_icon_sam_buildcost

		all_parents = { GENERIC_vector_defense_labs_solid_motor_heritage }

		position = { x = -2 y = 2 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { build_cost_ic = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_lightweight_airframe
		name = GENERIC_vector_defense_labs_lightweight_airframe
		icon = GFX_generic_mio_trait_icon_sam_speed

		all_parents = {
			GENERIC_vector_defense_labs_solid_motor_heritage
			GENERIC_vector_defense_labs_boost_sustain_profile
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { maximum_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_hit_to_kill_warhead
		name = GENERIC_vector_defense_labs_hit_to_kill_warhead
		icon = GFX_generic_mio_trait_icon_sam_reliability

		all_parents = { GENERIC_vector_defense_labs_boost_sustain_profile }

		position = { x = 2 y = 2 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_budget_interceptor
		name = GENERIC_vector_defense_labs_budget_interceptor
		icon = GFX_generic_mio_trait_icon_sam_buildcost

		any_parent = { GENERIC_vector_defense_labs_composite_casings }

		position = { x = -2 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		mutually_exclusive = { GENERIC_vector_defense_labs_premium_interceptor }

		limit_to_equipment_type = { sam_missile_equipment }

		production_bonus = { production_cost_factor = -0.08 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_premium_interceptor
		name = GENERIC_vector_defense_labs_premium_interceptor
		icon = GFX_generic_mio_trait_icon_sam_range

		any_parent = { GENERIC_vector_defense_labs_hit_to_kill_warhead }

		position = { x = 2 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		mutually_exclusive = { GENERIC_vector_defense_labs_budget_interceptor }

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { air_range = 0.07 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_fractal_nozzle
		name = GENERIC_vector_defense_labs_fractal_nozzle
		icon = GFX_generic_mio_trait_icon_sam

		all_parents = {
			GENERIC_vector_defense_labs_composite_casings
			GENERIC_vector_defense_labs_lightweight_airframe
		}

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { maximum_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_extended_range_fuel
		name = GENERIC_vector_defense_labs_extended_range_fuel
		icon = GFX_generic_mio_trait_icon_sam_range

		all_parents = {
			GENERIC_vector_defense_labs_lightweight_airframe
			GENERIC_vector_defense_labs_hit_to_kill_warhead
		}

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		limit_to_equipment_type = { sam_missile_equipment }

		equipment_bonus = { air_range = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_automated_production
		name = GENERIC_vector_defense_labs_automated_production
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = {
			GENERIC_vector_defense_labs_budget_interceptor
			GENERIC_vector_defense_labs_fractal_nozzle
		}

		position = { x = -2 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		production_bonus = { production_capacity_factor = 0.08 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_flagship_sentinel
		name = GENERIC_vector_defense_labs_flagship_sentinel
		icon = GFX_generic_mio_trait_icon_anti_air_attack

		any_parent = { GENERIC_vector_defense_labs_fractal_nozzle }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		equipment_bonus = { air_attack = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_shoulder_launch_variant
		name = GENERIC_vector_defense_labs_shoulder_launch_variant
		icon = GFX_generic_mio_trait_icon_aa_reliability

		all_parents = {
			GENERIC_vector_defense_labs_fractal_nozzle
			GENERIC_vector_defense_labs_extended_range_fuel
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		limit_to_equipment_type = { AA_Equipment }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_vector_defense_labs_airframe_commonality
		name = GENERIC_vector_defense_labs_airframe_commonality
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = {
			GENERIC_vector_defense_labs_extended_range_fuel
			GENERIC_vector_defense_labs_premium_interceptor
		}

		position = { x = 2 y = 4 }
		relative_position_id = GENERIC_vector_defense_labs_kill_vehicle_chassis

		limit_to_equipment_type = { sam_missile_equipment }

		production_bonus = { production_efficiency_gain_factor = 0.12 }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.18 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_reichswerke_konstrukt_dynamik = {
	allowed = { always = yes }
	name = GENERIC_reichswerke_konstrukt_dynamik_name
	icon = GFX_idea_company_reichswerke

	visible = {
		FROM = {
			OR = {
				has_country_flag = reichswerke_konstrukt_dynamik_unlocked
				GENERIC_reichswerke_konstrukt_dynamik_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = reichswerke_konstrukt_dynamik_unlocked } }
			}
			FROM = { has_country_flag = reichswerke_konstrukt_dynamik_unlocked }
		}
	}

	equipment_type = {
		medium_tank_aa_chassis
		medium_tank_artillery_chassis
		medium_tank_rocket_chassis
	}

	research_categories = {
		CAT_self_propelled_anti_air
		CAT_self_propelled_artillery
		CAT_tank_engines
	}

	initial_trait = {
		name = GENERIC_reichswerke_konstrukt_dynamik_trait

		equipment_bonus = {
			reliability = 0.03
			build_cost_ic = -0.03
		}

		production_bonus = {
			production_efficiency_cap_factor = 0.03
			production_efficiency_gain_factor = 0.05
		}

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.04
			military_industrial_organization_research_bonus = 0.03
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq
		name = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq
		icon = GFX_generic_mio_trait_icon_reliability

		position = { x = 1 y = 0 }

		equipment_bonus = { reliability = 0.05 }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "No Step Back" }
					add_tech_bonus = {
						name = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq
						bonus = 0.10
						uses = 1
						category = CAT_tank_engines
					} hidden_effect = { rq_eb_05b918967f = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq
						bonus = 0.10
						uses = 1
						category = CAT_armor
					} hidden_effect = { rq_eb_795def258a = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_stuttgart_werk
		name = GENERIC_reichswerke_konstrukt_dynamik_stuttgart_werk
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq

		equipment_bonus = {
			maximum_speed = 0.05
			reliability = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_linz_feinschliff
		name = GENERIC_reichswerke_konstrukt_dynamik_linz_feinschliff
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq

		equipment_bonus = { defense = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_wiener_praezision
		name = GENERIC_reichswerke_konstrukt_dynamik_wiener_praezision
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = {
			GENERIC_reichswerke_konstrukt_dynamik_stuttgart_werk
			GENERIC_reichswerke_konstrukt_dynamik_linz_feinschliff
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq

		equipment_bonus = { reliability = 0.04 }

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_manuelle_fertigung
		name = GENERIC_reichswerke_konstrukt_dynamik_manuelle_fertigung
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_wiener_praezision }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq

		mutually_exclusive = { GENERIC_reichswerke_konstrukt_dynamik_modulare_fertigung }

		equipment_bonus = {
			defense = 0.06
			reliability = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_modulare_fertigung
		name = GENERIC_reichswerke_konstrukt_dynamik_modulare_fertigung
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_wiener_praezision }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq

		mutually_exclusive = { GENERIC_reichswerke_konstrukt_dynamik_manuelle_fertigung }

		equipment_bonus = {
			reliability = 0.05
			build_cost_ic = -0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_werkbank_philosophie
		name = GENERIC_reichswerke_konstrukt_dynamik_werkbank_philosophie
		icon = GFX_generic_mio_trait_icon_breakthrough

		any_parent = {
			GENERIC_reichswerke_konstrukt_dynamik_manuelle_fertigung
			GENERIC_reichswerke_konstrukt_dynamik_modulare_fertigung
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq

		equipment_bonus = { breakthrough = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_dreijahres_garantie
		name = GENERIC_reichswerke_konstrukt_dynamik_dreijahres_garantie
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_werkbank_philosophie }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq

		equipment_bonus = { reliability = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_toleranz_auf_null
		name = GENERIC_reichswerke_konstrukt_dynamik_toleranz_auf_null
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_werkbank_philosophie }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq

		equipment_bonus = { armor_value = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_lebensdauer_doktrin
		name = GENERIC_reichswerke_konstrukt_dynamik_lebensdauer_doktrin
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = {
			GENERIC_reichswerke_konstrukt_dynamik_dreijahres_garantie
			GENERIC_reichswerke_konstrukt_dynamik_toleranz_auf_null
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq

		equipment_bonus = { reliability = 0.05 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt
		name = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt
		icon = GFX_generic_mio_trait_icon_research

		position = { x = 5 y = 0 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt
					bonus = 0.10
					uses = 1
					category = CAT_self_propelled_artillery
				} hidden_effect = { rq_eb_ec9815b25b = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_flakpanzer_linie
		name = GENERIC_reichswerke_konstrukt_dynamik_flakpanzer_linie
		icon = GFX_generic_mio_trait_icon_spaa

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt

		limit_to_equipment_type = { medium_tank_aa_chassis }

		equipment_bonus = { hard_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_haubitzen_spitze
		name = GENERIC_reichswerke_konstrukt_dynamik_haubitzen_spitze
		icon = GFX_generic_mio_trait_icon_spg_soft_attack

		all_parents = {
			GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt
			GENERIC_reichswerke_konstrukt_dynamik_muenchen_hq
		}

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

		limit_to_equipment_type = { medium_tank_artillery_chassis }

		equipment_bonus = { soft_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_raketenwerfer_schiene
		name = GENERIC_reichswerke_konstrukt_dynamik_raketenwerfer_schiene
		icon = GFX_generic_mio_trait_icon_mlrs_attack

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt

		limit_to_equipment_type = { medium_tank_rocket_chassis }

		equipment_bonus = { soft_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_flakgurtel
		name = GENERIC_reichswerke_konstrukt_dynamik_flakgurtel
		icon = GFX_generic_mio_trait_icon_spaa_reliability

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_flakpanzer_linie }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt

		limit_to_equipment_type = { medium_tank_aa_chassis }

		equipment_bonus = {
			hard_attack = 0.06
			reliability = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_panzerhaubitze_entwurf
		name = GENERIC_reichswerke_konstrukt_dynamik_panzerhaubitze_entwurf
		icon = GFX_generic_mio_trait_icon_spg_soft_attack

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_haubitzen_spitze }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt

		limit_to_equipment_type = { medium_tank_artillery_chassis }

		equipment_bonus = { soft_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_raketensalve
		name = GENERIC_reichswerke_konstrukt_dynamik_raketensalve
		icon = GFX_generic_mio_trait_icon_mlrs_buildcost

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_raketenwerfer_schiene }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt

		limit_to_equipment_type = { medium_tank_rocket_chassis }

		equipment_bonus = {
			build_cost_ic = -0.05
			reliability = 0.02
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_flak_doppellafette
		name = GENERIC_reichswerke_konstrukt_dynamik_flak_doppellafette
		icon = GFX_generic_mio_trait_icon_spaa_armor

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_flakgurtel }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt

		mutually_exclusive = { GENERIC_reichswerke_konstrukt_dynamik_raketen_dauerfeuer }

		limit_to_equipment_type = { medium_tank_aa_chassis }

		equipment_bonus = { armor_value = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_raketen_dauerfeuer
		name = GENERIC_reichswerke_konstrukt_dynamik_raketen_dauerfeuer
		icon = GFX_generic_mio_trait_icon_mlrs

		any_parent = { GENERIC_reichswerke_konstrukt_dynamik_raketensalve }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt

		mutually_exclusive = { GENERIC_reichswerke_konstrukt_dynamik_flak_doppellafette }

		limit_to_equipment_type = { medium_tank_rocket_chassis }

		equipment_bonus = { maximum_speed = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_trinitaets_synergie
		name = GENERIC_reichswerke_konstrukt_dynamik_trinitaets_synergie
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = {
			GENERIC_reichswerke_konstrukt_dynamik_panzerhaubitze_entwurf
			GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_trinitaet_werkstatt

		equipment_bonus = {
			hard_attack = 0.04
			breakthrough = 0.05
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_reichswerke_konstrukt_dynamik_trinitaets_synergie
					bonus = 0.10
					uses = 1
					category = CAT_self_propelled_anti_air
				} hidden_effect = { rq_eb_7ef85ca7e6 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog
		name = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog
		icon = GFX_generic_mio_trait_icon_funds

		position = { x = 8 y = 0 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_punktlieferung
		name = GENERIC_reichswerke_konstrukt_dynamik_punktlieferung
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog

		production_bonus = { production_capacity_factor = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_just_in_time_bahn
		name = GENERIC_reichswerke_konstrukt_dynamik_just_in_time_bahn
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog

		production_bonus = { production_efficiency_gain_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_auftragsbuch_doktrin
		name = GENERIC_reichswerke_konstrukt_dynamik_auftragsbuch_doktrin
		icon = GFX_generic_mio_trait_icon_design

		all_parents = {
			GENERIC_reichswerke_konstrukt_dynamik_punktlieferung
			GENERIC_reichswerke_konstrukt_dynamik_just_in_time_bahn
			GENERIC_reichswerke_konstrukt_dynamik_haubitzen_spitze
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog

		production_bonus = { production_cost_factor = -0.06 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_exportregister
		name = GENERIC_reichswerke_konstrukt_dynamik_exportregister
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_auftragsbuch_doktrin }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog

		mutually_exclusive = { GENERIC_reichswerke_konstrukt_dynamik_staatsauftrag_vorrang }

		production_bonus = { production_cost_factor = -0.05 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_staatsauftrag_vorrang
		name = GENERIC_reichswerke_konstrukt_dynamik_staatsauftrag_vorrang
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_auftragsbuch_doktrin }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog

		mutually_exclusive = { GENERIC_reichswerke_konstrukt_dynamik_exportregister }

		production_bonus = { production_capacity_factor = 0.05 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_reichswerke_effizienz
		name = GENERIC_reichswerke_konstrukt_dynamik_reichswerke_effizienz
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		any_parent = {
			GENERIC_reichswerke_konstrukt_dynamik_exportregister
			GENERIC_reichswerke_konstrukt_dynamik_staatsauftrag_vorrang
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog

		production_bonus = { production_efficiency_cap_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_ressourcenschonung
		name = GENERIC_reichswerke_konstrukt_dynamik_ressourcenschonung
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_reichswerke_effizienz }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog

		production_bonus = { production_resource_need_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_umruestungs_schiene
		name = GENERIC_reichswerke_konstrukt_dynamik_umruestungs_schiene
		icon = GFX_generic_mio_trait_icon_conversion_speed

		all_parents = { GENERIC_reichswerke_konstrukt_dynamik_reichswerke_effizienz }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog

		production_bonus = {
			production_capacity_factor = 0.04
			production_conversion_speed_factor = 0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_reichswerke_konstrukt_dynamik_rohrbruch_garantie
		name = GENERIC_reichswerke_konstrukt_dynamik_rohrbruch_garantie
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = {
			GENERIC_reichswerke_konstrukt_dynamik_ressourcenschonung
			GENERIC_reichswerke_konstrukt_dynamik_umruestungs_schiene
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_reichswerke_konstrukt_dynamik_samtpreis_katalog

		equipment_bonus = { build_cost_ic = -0.03 }

		production_bonus = { production_cost_factor = -0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_societe_europeenne_daerostructures = {
	allowed = { always = yes }
	name = GENERIC_societe_europeenne_daerostructures_name
	icon = GFX_idea_company_societe_europeenne

	visible = {
		FROM = {
			OR = {
				has_country_flag = societe_europeenne_daerostructures_unlocked
				GENERIC_societe_europeenne_daerostructures_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = societe_europeenne_daerostructures_unlocked } }
			}
			FROM = { has_country_flag = societe_europeenne_daerostructures_unlocked }
		}
	}

	equipment_type = {
		cv_medium_plane_air_transport_airframe
		large_plane_air_transport_airframe
		small_plane_naval_bomber_airframe
		cv_small_plane_naval_bomber_airframe
		medium_plane_maritime_patrol_airframe
		cv_medium_plane_maritime_patrol_airframe
		large_plane_maritime_patrol_airframe
	}

	research_categories = {
		CAT_heavy_aircraft
		CAT_air_engines
		CAT_avionics
	}

	initial_trait = {
		name = GENERIC_societe_europeenne_daerostructures_trait

		organization_modifier = {
			military_industrial_organization_design_team_assign_cost = -0.15
			military_industrial_organization_design_team_change_cost = -0.10
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.15
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_assembly_root
		name = GENERIC_societe_europeenne_daerostructures_assembly_root
		icon = GFX_generic_mio_trait_icon_task

		position = { x = 1 y = 0 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_bristol_line
		name = GENERIC_societe_europeenne_daerostructures_trait_bristol_line
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_societe_europeenne_daerostructures_assembly_root }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = -1 y = 1 }

		limit_to_equipment_type = {
			cv_medium_plane_air_transport_airframe
			large_plane_air_transport_airframe
		}

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_sevilla_line
		name = GENERIC_societe_europeenne_daerostructures_trait_sevilla_line
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_societe_europeenne_daerostructures_assembly_root }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = 1 y = 1 }

		limit_to_equipment_type = {
			small_plane_naval_bomber_airframe
			cv_small_plane_naval_bomber_airframe
			medium_plane_maritime_patrol_airframe
			cv_medium_plane_maritime_patrol_airframe
			large_plane_maritime_patrol_airframe
		}

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_rate_rampup
		name = GENERIC_societe_europeenne_daerostructures_trait_rate_rampup
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_societe_europeenne_daerostructures_assembly_root }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = 2 y = 1 }

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_heavy_lift_fuselage
		name = GENERIC_societe_europeenne_daerostructures_trait_heavy_lift_fuselage
		icon = GFX_generic_mio_trait_icon_air_range

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_bristol_line }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = -1 y = 2 }

		limit_to_equipment_type = {
			cv_medium_plane_air_transport_airframe
			large_plane_air_transport_airframe
		}

		equipment_bonus = { air_range = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_patrol_longevity
		name = GENERIC_societe_europeenne_daerostructures_trait_patrol_longevity
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_sevilla_line }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = 1 y = 2 }

		limit_to_equipment_type = {
			small_plane_naval_bomber_airframe
			cv_small_plane_naval_bomber_airframe
			medium_plane_maritime_patrol_airframe
			cv_medium_plane_maritime_patrol_airframe
			large_plane_maritime_patrol_airframe
		}

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_modular_jig
		name = GENERIC_societe_europeenne_daerostructures_trait_modular_jig
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_rate_rampup }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = 2 y = 2 }

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_load_efficiency
		name = GENERIC_societe_europeenne_daerostructures_trait_load_efficiency
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_heavy_lift_fuselage }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = -1 y = 3 }

		limit_to_equipment_type = {
			cv_medium_plane_air_transport_airframe
			large_plane_air_transport_airframe
		}

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_asw_pylon
		name = GENERIC_societe_europeenne_daerostructures_trait_asw_pylon
		icon = GFX_generic_mio_trait_icon_strategic_attack

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_patrol_longevity }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = 1 y = 3 }

		limit_to_equipment_type = {
			small_plane_naval_bomber_airframe
			cv_small_plane_naval_bomber_airframe
			medium_plane_maritime_patrol_airframe
			cv_medium_plane_maritime_patrol_airframe
			large_plane_maritime_patrol_airframe
		}

		equipment_bonus = { air_bombing = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_widebay_housing
		name = GENERIC_societe_europeenne_daerostructures_trait_widebay_housing
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_modular_jig }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = 2 y = 3 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_strategic_lift_qa
		name = GENERIC_societe_europeenne_daerostructures_trait_strategic_lift_qa
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_load_efficiency }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = -1 y = 4 }

		limit_to_equipment_type = {
			cv_medium_plane_air_transport_airframe
			large_plane_air_transport_airframe
		}

		equipment_bonus = { reliability = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_extended_loiter
		name = GENERIC_societe_europeenne_daerostructures_trait_extended_loiter
		icon = GFX_generic_mio_trait_icon_air_range

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_asw_pylon }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = 1 y = 4 }

		limit_to_equipment_type = {
			small_plane_naval_bomber_airframe
			cv_small_plane_naval_bomber_airframe
			medium_plane_maritime_patrol_airframe
			cv_medium_plane_maritime_patrol_airframe
			large_plane_maritime_patrol_airframe
		}

		equipment_bonus = { air_range = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_rigorous_qa
		name = GENERIC_societe_europeenne_daerostructures_trait_rigorous_qa
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_strategic_lift_qa }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = 0 y = 5 }

		mutually_exclusive = { GENERIC_societe_europeenne_daerostructures_trait_rapid_output }

		equipment_bonus = { reliability = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_rapid_output
		name = GENERIC_societe_europeenne_daerostructures_trait_rapid_output
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_extended_loiter }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_assembly_root
		position = { x = 1 y = 5 }

		mutually_exclusive = { GENERIC_societe_europeenne_daerostructures_trait_rigorous_qa }

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_systems_root
		name = GENERIC_societe_europeenne_daerostructures_systems_root
		icon = GFX_generic_mio_trait_icon_air_agility

		position = { x = 5 y = 0 }

		equipment_bonus = { air_agility = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_turbofan
		name = GENERIC_societe_europeenne_daerostructures_trait_turbofan
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_societe_europeenne_daerostructures_systems_root }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = -1 y = 1 }

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_surveillance_radar
		name = GENERIC_societe_europeenne_daerostructures_trait_surveillance_radar
		icon = GFX_generic_mio_trait_icon_air_attack

		all_parents = { GENERIC_societe_europeenne_daerostructures_systems_root }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = 1 y = 1 }

		limit_to_equipment_type = {
			small_plane_naval_bomber_airframe
			cv_small_plane_naval_bomber_airframe
			medium_plane_maritime_patrol_airframe
			cv_medium_plane_maritime_patrol_airframe
			large_plane_maritime_patrol_airframe
		}

		equipment_bonus = { air_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_glass_cockpit
		name = GENERIC_societe_europeenne_daerostructures_trait_glass_cockpit
		icon = GFX_generic_mio_trait_icon_air_agility

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_turbofan }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = -1 y = 2 }

		equipment_bonus = { air_agility = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_fms
		name = GENERIC_societe_europeenne_daerostructures_trait_fms
		icon = GFX_generic_mio_trait_icon_air_agility

		all_parents = { GENERIC_societe_europeenne_daerostructures_systems_root }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = 0 y = 2 }

		equipment_bonus = { air_agility = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_eo_ir_turret
		name = GENERIC_societe_europeenne_daerostructures_trait_eo_ir_turret
		icon = GFX_generic_mio_trait_icon_air_attack

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_surveillance_radar }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = 1 y = 2 }

		limit_to_equipment_type = {
			small_plane_naval_bomber_airframe
			cv_small_plane_naval_bomber_airframe
			medium_plane_maritime_patrol_airframe
			cv_medium_plane_maritime_patrol_airframe
			large_plane_maritime_patrol_airframe
		}

		equipment_bonus = { air_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_digital_fc
		name = GENERIC_societe_europeenne_daerostructures_trait_digital_fc
		icon = GFX_generic_mio_trait_icon_air_range

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_glass_cockpit }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = -1 y = 3 }

		equipment_bonus = { air_range = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_sonobuoy
		name = GENERIC_societe_europeenne_daerostructures_trait_sonobuoy
		icon = GFX_generic_mio_trait_icon_strategic_attack

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_fms }

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

		limit_to_equipment_type = {
			small_plane_naval_bomber_airframe
			cv_small_plane_naval_bomber_airframe
			medium_plane_maritime_patrol_airframe
			cv_medium_plane_maritime_patrol_airframe
			large_plane_maritime_patrol_airframe
		}

		equipment_bonus = { air_bombing = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_sensor_fusion
		name = GENERIC_societe_europeenne_daerostructures_trait_sensor_fusion
		icon = GFX_generic_mio_trait_icon_air_attack

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_eo_ir_turret }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = 1 y = 3 }

		limit_to_equipment_type = {
			small_plane_naval_bomber_airframe
			cv_small_plane_naval_bomber_airframe
			medium_plane_maritime_patrol_airframe
			cv_medium_plane_maritime_patrol_airframe
			large_plane_maritime_patrol_airframe
		}

		equipment_bonus = { air_attack = 0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "By Blood Alone" }
					add_tech_bonus = {
						name = GENERIC_societe_europeenne_daerostructures_trait_sensor_fusion
						bonus = 0.10
						uses = 1
						category = CAT_avionics
					} hidden_effect = { rq_eb_f9cc8494fa = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_societe_europeenne_daerostructures_trait_sensor_fusion
						bonus = 0.10
						uses = 1
						category = CAT_aircraft
					} hidden_effect = { rq_eb_ce6880c1df = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_selfdef_suite
		name = GENERIC_societe_europeenne_daerostructures_trait_selfdef_suite
		icon = GFX_generic_mio_trait_icon_air_defence

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_digital_fc }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = -1 y = 4 }

		equipment_bonus = { air_defence = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_datalink
		name = GENERIC_societe_europeenne_daerostructures_trait_datalink
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_sensor_fusion }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = 1 y = 4 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "By Blood Alone" }
					add_tech_bonus = {
						name = GENERIC_societe_europeenne_daerostructures_trait_datalink
						bonus = 0.10
						uses = 1
						category = CAT_avionics
					} hidden_effect = { rq_eb_f9cc8494fa = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_societe_europeenne_daerostructures_trait_datalink
						bonus = 0.10
						uses = 1
						category = CAT_aircraft
					} hidden_effect = { rq_eb_ce6880c1df = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_commercial_avionics
		name = GENERIC_societe_europeenne_daerostructures_trait_commercial_avionics
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_selfdef_suite }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = 0 y = 5 }

		mutually_exclusive = { GENERIC_societe_europeenne_daerostructures_trait_milspec_hardening }

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_milspec_hardening
		name = GENERIC_societe_europeenne_daerostructures_trait_milspec_hardening
		icon = GFX_generic_mio_trait_icon_air_defence

		any_parent = {
			GENERIC_societe_europeenne_daerostructures_trait_datalink
			GENERIC_societe_europeenne_daerostructures_trait_airbus_governance
		}

		relative_position_id = GENERIC_societe_europeenne_daerostructures_systems_root
		position = { x = 1 y = 5 }

		mutually_exclusive = { GENERIC_societe_europeenne_daerostructures_trait_commercial_avionics }

		equipment_bonus = { air_defence = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_mgmt_root
		name = GENERIC_societe_europeenne_daerostructures_mgmt_root
		icon = GFX_generic_mio_trait_icon_task

		position = { x = 8 y = 0 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_workshare_treaty
		name = GENERIC_societe_europeenne_daerostructures_trait_workshare_treaty
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_societe_europeenne_daerostructures_mgmt_root }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = -1 y = 1 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_joint_research_board
		name = GENERIC_societe_europeenne_daerostructures_trait_joint_research_board
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_societe_europeenne_daerostructures_mgmt_root }

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

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_eurofund_subsidy
		name = GENERIC_societe_europeenne_daerostructures_trait_eurofund_subsidy
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_societe_europeenne_daerostructures_mgmt_root }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = 1 y = 1 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_political_workshare
		name = GENERIC_societe_europeenne_daerostructures_trait_political_workshare
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_workshare_treaty }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = -1 y = 2 }

		mutually_exclusive = { GENERIC_societe_europeenne_daerostructures_trait_merit_workshare }

		organization_modifier = { military_industrial_organization_funds_gain = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_merit_workshare
		name = GENERIC_societe_europeenne_daerostructures_trait_merit_workshare
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_workshare_treaty }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = 0 y = 2 }

		mutually_exclusive = { GENERIC_societe_europeenne_daerostructures_trait_political_workshare }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_procurement_pool
		name = GENERIC_societe_europeenne_daerostructures_trait_procurement_pool
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_eurofund_subsidy }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = 1 y = 2 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_slip_recovery
		name = GENERIC_societe_europeenne_daerostructures_trait_slip_recovery
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_political_workshare }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = -1 y = 3 }

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_risk_sharing
		name = GENERIC_societe_europeenne_daerostructures_trait_risk_sharing
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_merit_workshare }

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

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_lead_rotation
		name = GENERIC_societe_europeenne_daerostructures_trait_lead_rotation
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_procurement_pool }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = 1 y = 3 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_cert_shortcut
		name = GENERIC_societe_europeenne_daerostructures_trait_cert_shortcut
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_slip_recovery }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = -1 y = 4 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_societe_europeenne_daerostructures_trait_cert_shortcut
					bonus = 0.10
					uses = 1
					category = CAT_heavy_aircraft
				} hidden_effect = { rq_eb_855cbf9236 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_airbus_governance
		name = GENERIC_societe_europeenne_daerostructures_trait_airbus_governance
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_risk_sharing }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = 0 y = 4 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_societe_europeenne_daerostructures_trait_solid_delivery
		name = GENERIC_societe_europeenne_daerostructures_trait_solid_delivery
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_societe_europeenne_daerostructures_trait_lead_rotation }

		relative_position_id = GENERIC_societe_europeenne_daerostructures_mgmt_root
		position = { x = 1 y = 4 }

		equipment_bonus = { build_cost_ic = -0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_brunn_heavy_engineering_werke = {
	allowed = { always = yes }
	name = GENERIC_brunn_heavy_engineering_werke
	icon = GFX_idea_company_bruhn_heavy

	task_capacity = 10

	visible = {
		FROM = {
			OR = {
				has_country_flag = brunn_heavy_engineering_werke_unlocked
				GENERIC_brunn_heavy_engineering_werke_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = brunn_heavy_engineering_werke_unlocked } }
			}
			FROM = { has_country_flag = brunn_heavy_engineering_werke_unlocked }
		}
	}

	equipment_type = {
		medium_tank_destroyer_chassis
		artillery_equipment
		mio_cat_all_utils
	}

	research_categories = {
		CAT_towed_artillery
		CAT_utility_vehicles
		CAT_tank_engines
		CAT_tank_armor
		CAT_artillery_ammunition
		CAT_construction
	}

	tree_header_text = {
		text = GENERIC_brunn_heavy_engineering_werke_hetzer_header
		x = 1
	}

	tree_header_text = {
		text = GENERIC_brunn_heavy_engineering_werke_iron_hail_header
		x = 4
	}

	tree_header_text = {
		text = GENERIC_brunn_heavy_engineering_werke_tatra_header
		x = 7
	}

	initial_trait = {
		name = GENERIC_brunn_heavy_engineering_werke_trait

		equipment_bonus = { reliability = 0.03 }

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.045
			military_industrial_organization_size_up_requirement = -0.10
		}
	}

	trait = {
		token = GENERIC_brunn_hetzer_doctrine
		name = GENERIC_brunn_hetzer_doctrine
		icon = GFX_generic_mio_trait_icon_reliability

		position = { x = 1 y = 0 }

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = {
			reliability = 0.03
			armor_value = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_silent_ambush
		name = GENERIC_brunn_silent_ambush
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_brunn_hetzer_doctrine }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		mutually_exclusive = { GENERIC_brunn_hull_down_gunner }

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { soft_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_hull_down_gunner
		name = GENERIC_brunn_hull_down_gunner
		icon = GFX_generic_mio_trait_icon_hard_attack

		all_parents = { GENERIC_brunn_hetzer_doctrine }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		mutually_exclusive = { GENERIC_brunn_silent_ambush }

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { hard_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_pilsen_steel
		name = GENERIC_brunn_pilsen_steel
		icon = GFX_generic_mio_trait_icon_armor_value

		any_parent = {
			GENERIC_brunn_silent_ambush
			GENERIC_brunn_hull_down_gunner
		}

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { armor_value = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_skoda_torsion
		name = GENERIC_brunn_skoda_torsion
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = {
			GENERIC_brunn_silent_ambush
			GENERIC_brunn_hull_down_gunner
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_low_profile
		name = GENERIC_brunn_low_profile
		icon = GFX_generic_mio_trait_icon_defense

		any_parent = {
			GENERIC_brunn_silent_ambush
			GENERIC_brunn_hull_down_gunner
		}

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { defense = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_kladruby_forge
		name = GENERIC_brunn_kladruby_forge
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_brunn_pilsen_steel }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_bvp_lineage
		name = GENERIC_brunn_bvp_lineage
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_brunn_skoda_torsion }

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

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { breakthrough = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_gun_sights_vz84
		name = GENERIC_brunn_gun_sights_vz84
		icon = GFX_generic_mio_trait_icon_hard_attack

		all_parents = { GENERIC_brunn_low_profile }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { hard_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_strv103_inspiration
		name = GENERIC_brunn_strv103_inspiration
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_brunn_kladruby_forge }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_welding_halls
		name = GENERIC_brunn_welding_halls
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		all_parents = { GENERIC_brunn_bvp_lineage }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		production_bonus = { production_efficiency_cap_factor = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_td_export_masters
		name = GENERIC_brunn_td_export_masters
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_brunn_gun_sights_vz84 }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_design_team_assign_cost = -0.15
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_vz88_program
		name = GENERIC_brunn_vz88_program
		icon = GFX_generic_mio_trait_icon_ap_attack

		all_parents = { GENERIC_brunn_welding_halls }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_brunn_hetzer_doctrine

		limit_to_equipment_type = { medium_tank_destroyer_chassis }

		equipment_bonus = { ap_attack = 0.08 }

		production_bonus = { production_cost_factor = -0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_iron_hail_doctrine
		name = GENERIC_brunn_iron_hail_doctrine
		icon = GFX_generic_mio_trait_icon_artillery_soft_attack

		position = { x = 4 y = 0 }

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = {
			soft_attack = 0.03
			reliability = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_konstrukta_ballistics
		name = GENERIC_brunn_konstrukta_ballistics
		icon = GFX_generic_mio_trait_icon_artillery_hard_attack

		all_parents = { GENERIC_brunn_iron_hail_doctrine }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = { hard_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_skoda_lineage_arty
		name = GENERIC_brunn_skoda_lineage_arty
		icon = GFX_generic_mio_trait_icon_artillery_reliability

		all_parents = { GENERIC_brunn_iron_hail_doctrine }

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

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_barrel_harmonics
		name = GENERIC_brunn_barrel_harmonics
		icon = GFX_generic_mio_trait_icon_artillery_soft_attack

		all_parents = { GENERIC_brunn_iron_hail_doctrine }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = { soft_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_zuzana_programs
		name = GENERIC_brunn_zuzana_programs
		icon = GFX_generic_mio_trait_icon_artillery_soft_attack

		all_parents = { GENERIC_brunn_konstrukta_ballistics }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = { soft_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_dana_gunnery
		name = GENERIC_brunn_dana_gunnery
		icon = GFX_generic_mio_trait_icon_artillery_hard_attack

		all_parents = { GENERIC_brunn_skoda_lineage_arty }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = { hard_attack = 0.06 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_shkh_lineage
		name = GENERIC_brunn_shkh_lineage
		icon = GFX_generic_mio_trait_icon_artillery_defence

		all_parents = { GENERIC_brunn_barrel_harmonics }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = { defense = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_propellant_chemistry
		name = GENERIC_brunn_propellant_chemistry
		icon = GFX_generic_mio_trait_icon_artillery

		all_parents = { GENERIC_brunn_zuzana_programs }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = { ap_attack = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_brunn_propellant_chemistry
					bonus = 0.10
					uses = 1
					category = CAT_artillery_ammunition
				} hidden_effect = { rq_eb_5f86468e38 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_brno_foundries
		name = GENERIC_brunn_brno_foundries
		icon = GFX_generic_mio_trait_icon_artillery_buildcost

		all_parents = { GENERIC_brunn_dana_gunnery }

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

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_ammo_standardisation
		name = GENERIC_brunn_ammo_standardisation
		icon = GFX_generic_mio_trait_icon_artillery

		all_parents = { GENERIC_brunn_shkh_lineage }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		limit_to_equipment_type = { artillery_equipment }

		production_bonus = { production_cost_factor = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_fire_direction_vz95
		name = GENERIC_brunn_fire_direction_vz95
		icon = GFX_generic_mio_trait_icon_artillery_breaktrough

		any_parent = {
			GENERIC_brunn_propellant_chemistry
			GENERIC_brunn_brno_foundries
		}

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		mutually_exclusive = { GENERIC_brunn_counter_battery_radar }

		limit_to_equipment_type = { artillery_equipment }

		equipment_bonus = { breakthrough = 0.06 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_counter_battery_radar
		name = GENERIC_brunn_counter_battery_radar
		icon = GFX_generic_mio_trait_icon_artillery_efficiency_cap

		any_parent = {
			GENERIC_brunn_brno_foundries
			GENERIC_brunn_ammo_standardisation
		}

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		mutually_exclusive = { GENERIC_brunn_fire_direction_vz95 }

		limit_to_equipment_type = { artillery_equipment }

		production_bonus = { production_efficiency_cap_factor = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_artillery_export_cartel
		name = GENERIC_brunn_artillery_export_cartel
		icon = GFX_generic_mio_trait_icon_funds

		any_parent = {
			GENERIC_brunn_fire_direction_vz95
			GENERIC_brunn_counter_battery_radar
		}

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_brunn_iron_hail_doctrine

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.06
			military_industrial_organization_design_team_change_cost = -0.15
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_koprivnice_workshops
		name = GENERIC_brunn_koprivnice_workshops
		icon = GFX_generic_mio_trait_icon_util_reliability

		position = { x = 7 y = 0 }

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = {
			reliability = 0.03
			maximum_speed = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_tatra815_heritage
		name = GENERIC_brunn_tatra815_heritage
		icon = GFX_generic_mio_trait_icon_util_reliability

		all_parents = { GENERIC_brunn_koprivnice_workshops }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_brunn_koprivnice_workshops

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_t810_frames
		name = GENERIC_brunn_t810_frames
		icon = GFX_generic_mio_trait_icon_util_speed

		all_parents = { GENERIC_brunn_koprivnice_workshops }

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

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_iveco_partnership
		name = GENERIC_brunn_iveco_partnership
		icon = GFX_generic_mio_trait_icon_util_buildcost

		all_parents = { GENERIC_brunn_koprivnice_workshops }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_brunn_koprivnice_workshops

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = { build_cost_ic = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_central_tube_chassis
		name = GENERIC_brunn_central_tube_chassis
		icon = GFX_generic_mio_trait_icon_util_defense

		all_parents = { GENERIC_brunn_tatra815_heritage }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_brunn_koprivnice_workshops

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = {
			hardness = 0.04
			defense = 0.03
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "No Step Back" }
					add_tech_bonus = {
						name = GENERIC_brunn_central_tube_chassis
						bonus = 0.10
						uses = 1
						category = CAT_tank_armor
					} hidden_effect = { rq_eb_3da4c9801f = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_brunn_central_tube_chassis
						bonus = 0.10
						uses = 1
						category = CAT_armor
					} hidden_effect = { rq_eb_795def258a = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_air_cooled_diesels
		name = GENERIC_brunn_air_cooled_diesels
		icon = GFX_generic_mio_trait_icon_util_resources

		all_parents = { GENERIC_brunn_t810_frames }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_brunn_koprivnice_workshops

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = { fuel_consumption = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_shovel_ready_lines
		name = GENERIC_brunn_shovel_ready_lines
		icon = GFX_generic_mio_trait_icon_util

		all_parents = { GENERIC_brunn_iveco_partnership }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_brunn_koprivnice_workshops

		limit_to_equipment_type = { mio_cat_all_utils }

		production_bonus = { production_capacity_factor = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_desert_export
		name = GENERIC_brunn_desert_export
		icon = GFX_generic_mio_trait_icon_util_reliability

		all_parents = { GENERIC_brunn_central_tube_chassis }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_brunn_koprivnice_workshops

		mutually_exclusive = { GENERIC_brunn_subarctic_export }

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_martin_workshops
		name = GENERIC_brunn_martin_workshops
		icon = GFX_generic_mio_trait_icon_util

		all_parents = { GENERIC_brunn_air_cooled_diesels }

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

		limit_to_equipment_type = { mio_cat_all_utils }

		production_bonus = { production_efficiency_cap_factor = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_subarctic_export
		name = GENERIC_brunn_subarctic_export
		icon = GFX_generic_mio_trait_icon_util_speed

		all_parents = { GENERIC_brunn_shovel_ready_lines }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_brunn_koprivnice_workshops

		mutually_exclusive = { GENERIC_brunn_desert_export }

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_export_logistics_hub
		name = GENERIC_brunn_export_logistics_hub
		icon = GFX_generic_mio_trait_icon_design

		any_parent = {
			GENERIC_brunn_desert_export
			GENERIC_brunn_martin_workshops
			GENERIC_brunn_subarctic_export
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_brunn_koprivnice_workshops

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.06
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.20
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_brunn_small_but_clever
		name = GENERIC_brunn_small_but_clever
		icon = GFX_generic_mio_trait_icon_util_resources

		all_parents = { GENERIC_brunn_export_logistics_hub }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_brunn_koprivnice_workshops

		limit_to_equipment_type = { mio_cat_all_utils }

		production_bonus = { production_resource_need_factor = -0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_brunn_small_but_clever
					bonus = 0.10
					uses = 1
					category = CAT_construction
				} hidden_effect = { rq_eb_ee5c00f4a7 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_whitehall_strategic_solutions = {
	allowed = { always = yes }
	name = GENERIC_whitehall_strategic_solutions
	icon = GFX_idea_company_whitehall_strategic_solutions

	visible = {
		FROM = {
			OR = {
				has_country_flag = whitehall_strategic_solutions_unlocked
				GENERIC_whitehall_strategic_solutions_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = whitehall_strategic_solutions_unlocked } }
			}
			FROM = { has_country_flag = whitehall_strategic_solutions_unlocked }
		}
	}

	equipment_type = {
		mio_cat_only_small_ships
		helicopter_operator
		carrier
	}

	research_categories = {
		CAT_corvettes
		CAT_patrol_boats
		CAT_helicopter_operators
		CAT_naval_electronics
		CAT_aircraft_carriers
	}

	tree_header_text = {
		text = mio_whitehall_escort_header
		x = 1
	}

	tree_header_text = {
		text = mio_whitehall_heritage_header
		x = 5
	}

	tree_header_text = {
		text = mio_whitehall_amphibious_header
		x = 8
	}

	initial_trait = {
		name = GENERIC_whitehall_strategic_solutions_trait

		production_bonus = { production_cost_factor = -0.04 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.05 }
	}

	trait = {
		token = whitehall_ae_albion_yards
		name = whitehall_ae_albion_yards
		icon = GFX_generic_mio_trait_icon_small_ship_lg_attack

		position = { x = 1 y = 0 }

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = {
			lg_attack = 0.08
			reliability = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_coastal_sentry
		name = whitehall_ae_coastal_sentry
		icon = GFX_generic_mio_trait_icon_small_ship_reliability

		all_parents = { whitehall_ae_albion_yards }

		position = { x = -1 y = 1 }
		relative_position_id = whitehall_ae_albion_yards

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = { reliability = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_offshore_cutter
		name = whitehall_ae_offshore_cutter
		icon = GFX_generic_mio_trait_icon_small_ship_speed

		all_parents = { whitehall_ae_albion_yards }

		position = { x = 1 y = 1 }
		relative_position_id = whitehall_ae_albion_yards

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = { naval_speed = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_modular_super
		name = whitehall_ae_modular_super
		icon = GFX_generic_mio_trait_icon_small_ship

		all_parents = {
			whitehall_ae_coastal_sentry
			whitehall_ae_offshore_cutter
		}

		position = { x = 0 y = 2 }
		relative_position_id = whitehall_ae_albion_yards

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = { max_strength = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_export_fitout
		name = whitehall_ae_export_fitout
		icon = GFX_generic_mio_trait_icon_small_ship_buildcost

		all_parents = { whitehall_ae_modular_super }

		position = { x = -1 y = 3 }
		relative_position_id = whitehall_ae_albion_yards

		mutually_exclusive = { whitehall_ae_flotilla_staking }

		limit_to_equipment_type = { mio_cat_only_small_ships }

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_flotilla_staking
		name = whitehall_ae_flotilla_staking
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { whitehall_ae_modular_super }

		position = { x = 1 y = 3 }
		relative_position_id = whitehall_ae_albion_yards

		mutually_exclusive = { whitehall_ae_export_fitout }

		limit_to_equipment_type = { mio_cat_only_small_ships }

		production_bonus = { production_capacity_factor = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_coastal = yes
						free_building_slots = { building = dockyard size > 0 include_locked = no }
					}
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_regal_gunnery
		name = whitehall_ae_regal_gunnery
		icon = GFX_generic_mio_trait_icon_small_ship_lg_attack

		any_parent = {
			whitehall_ae_export_fitout
			whitehall_ae_flotilla_staking
		}

		position = { x = 0 y = 4 }
		relative_position_id = whitehall_ae_albion_yards

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = { lg_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_depth_racks
		name = whitehall_ae_depth_racks
		icon = GFX_generic_mio_trait_icon_small_ship_sub_attack

		all_parents = { whitehall_ae_regal_gunnery }

		position = { x = -1 y = 5 }
		relative_position_id = whitehall_ae_albion_yards

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = {
			sub_detection = 0.10
			torpedo_attack = 0.06
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_bow_mount
		name = whitehall_ae_bow_mount
		icon = GFX_generic_mio_trait_icon_small_ship_hg_attack

		all_parents = { whitehall_ae_regal_gunnery }

		position = { x = 1 y = 5 }
		relative_position_id = whitehall_ae_albion_yards

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = { hg_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_stealth_freeboard
		name = whitehall_ae_stealth_freeboard
		icon = GFX_generic_mio_trait_icon_small_ship

		all_parents = {
			whitehall_ae_depth_racks
			whitehall_ae_bow_mount
		}

		position = { x = 0 y = 6 }
		relative_position_id = whitehall_ae_albion_yards

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = { surface_visibility = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_ciws_pack
		name = whitehall_ae_ciws_pack
		icon = GFX_generic_mio_trait_icon_small_ship_anti_air

		all_parents = { whitehall_ae_stealth_freeboard }

		position = { x = -1 y = 7 }
		relative_position_id = whitehall_ae_albion_yards

		mutually_exclusive = { whitehall_ae_gunline_refit }

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = { anti_air_attack = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_gunline_refit
		name = whitehall_ae_gunline_refit
		icon = GFX_generic_mio_trait_icon_small_ship_lg_attack

		all_parents = { whitehall_ae_stealth_freeboard }

		position = { x = 1 y = 7 }
		relative_position_id = whitehall_ae_albion_yards

		mutually_exclusive = { whitehall_ae_ciws_pack }

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = {
			hg_armor_piercing = 0.08
			lg_attack = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_long_bunker
		name = whitehall_ae_long_bunker
		icon = GFX_generic_mio_trait_icon_small_ship_range

		any_parent = {
			whitehall_ae_ciws_pack
			whitehall_ae_gunline_refit
		}

		position = { x = 0 y = 8 }
		relative_position_id = whitehall_ae_albion_yards

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = { naval_range = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = whitehall_ae_long_bunker
					bonus = 0.10
					uses = 1
					category = CAT_corvettes
				} hidden_effect = { rq_eb_e9df45ca5b = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_ae_sail_cycle
		name = whitehall_ae_sail_cycle
		icon = GFX_generic_mio_trait_icon_small_ship

		all_parents = { whitehall_ae_long_bunker }

		position = { x = 0 y = 9 }
		relative_position_id = whitehall_ae_albion_yards

		limit_to_equipment_type = { mio_cat_only_small_ships }

		equipment_bonus = { max_organisation = 0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_seaguard_cmd
		name = whitehall_sa_seaguard_cmd
		icon = GFX_generic_mio_trait_icon_carrier_upgrade

		position = { x = 8 y = 0 }

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = {
			carrier_size = 1
			max_organisation = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_marine_dock
		name = whitehall_sa_marine_dock
		icon = GFX_generic_mio_trait_icon_max_strength

		all_parents = { whitehall_sa_seaguard_cmd }

		position = { x = -1 y = 1 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = { max_strength = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_twin_helidecks
		name = whitehall_sa_twin_helidecks
		icon = GFX_generic_mio_trait_icon_carrier_upgrade

		all_parents = { whitehall_sa_seaguard_cmd }

		position = { x = 1 y = 1 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = { carrier_size = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_well_deck
		name = whitehall_sa_well_deck
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = {
			whitehall_sa_marine_dock
			whitehall_sa_twin_helidecks
		}

		position = { x = 0 y = 2 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_ocean_hull
		name = whitehall_sa_ocean_hull
		icon = GFX_generic_mio_trait_icon_naval_range

		all_parents = { whitehall_sa_marine_dock }

		position = { x = -2 y = 2 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = { naval_range = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_deep_draught
		name = whitehall_sa_deep_draught
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { whitehall_sa_well_deck }

		position = { x = -1 y = 3 }
		relative_position_id = whitehall_sa_seaguard_cmd

		mutually_exclusive = { whitehall_sa_expedition_cradle }

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = { reliability = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_expedition_cradle
		name = whitehall_sa_expedition_cradle
		icon = GFX_generic_mio_trait_icon_max_strength

		all_parents = { whitehall_sa_well_deck }

		position = { x = 1 y = 3 }
		relative_position_id = whitehall_sa_seaguard_cmd

		mutually_exclusive = { whitehall_sa_deep_draught }

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = { max_organisation = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_beach_sweeper
		name = whitehall_sa_beach_sweeper
		icon = GFX_generic_mio_trait_icon_mines

		any_parent = { whitehall_sa_ocean_hull }

		position = { x = -2 y = 3 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = { mines_sweeping = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_close_ring_ad
		name = whitehall_sa_close_ring_ad
		icon = GFX_generic_mio_trait_icon_naval_anti_air_attack

		any_parent = {
			whitehall_sa_deep_draught
			whitehall_sa_expedition_cradle
			whitehall_sa_beach_sweeper
		}

		position = { x = 0 y = 4 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = { anti_air_attack = 0.12 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = whitehall_sa_close_ring_ad
					bonus = 0.10
					uses = 1
					category = CAT_aircraft_carriers
				} hidden_effect = { rq_eb_6c17a40d4f = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_heavy_mount
		name = whitehall_sa_heavy_mount
		icon = GFX_generic_mio_trait_icon_hg_attack

		any_parent = { whitehall_sa_close_ring_ad }

		position = { x = -1 y = 5 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = {
			hg_attack = 0.06
			hg_armor_piercing = 0.06
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_forward_sonar
		name = whitehall_sa_forward_sonar
		icon = GFX_generic_mio_trait_icon_sub_detection

		any_parent = {
			whitehall_sa_close_ring_ad
			whitehall_wh_sensor_suite
		}

		position = { x = 1 y = 5 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = {
			sub_detection = 0.10
			torpedo_attack = 0.06
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_wave_piercer
		name = whitehall_sa_wave_piercer
		icon = GFX_generic_mio_trait_icon_naval_speed

		any_parent = {
			whitehall_sa_heavy_mount
			whitehall_sa_forward_sonar
		}

		position = { x = 0 y = 6 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = { naval_speed = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_flagship_kit
		name = whitehall_sa_flagship_kit
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = {
			whitehall_sa_wave_piercer
			whitehall_wh_continuity
		}

		position = { x = -1 y = 7 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = { armor_value = 0.08 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_sa_aux_cycle
		name = whitehall_sa_aux_cycle
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { whitehall_sa_wave_piercer }

		position = { x = 1 y = 7 }
		relative_position_id = whitehall_sa_seaguard_cmd

		limit_to_equipment_type = {
			helicopter_operator
			carrier
		}

		equipment_bonus = {
			build_cost_ic = -0.06
			reliability = 0.05
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_heritage_bureau
		name = whitehall_wh_heritage_bureau
		icon = GFX_generic_mio_trait_icon_research

		position = { x = 5 y = 0 }

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.04
			military_industrial_organization_task_capacity = 1
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_shipwright
		name = whitehall_wh_shipwright
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { whitehall_wh_heritage_bureau }

		position = { x = -1 y = 1 }
		relative_position_id = whitehall_wh_heritage_bureau

		equipment_bonus = {
			reliability = 0.06
			max_organisation = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_premium_fitting
		name = whitehall_wh_premium_fitting
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { whitehall_wh_heritage_bureau }

		position = { x = 1 y = 1 }
		relative_position_id = whitehall_wh_heritage_bureau

		production_bonus = {
			production_cost_factor = -0.06
			production_resource_need_factor = -0.08
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_design_desk
		name = whitehall_wh_design_desk
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { whitehall_wh_shipwright }

		position = { x = -2 y = 2 }
		relative_position_id = whitehall_wh_heritage_bureau

		organization_modifier = {
			military_industrial_organization_design_team_assign_cost = -0.20
			military_industrial_organization_design_team_change_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_electronics_lab
		name = whitehall_wh_electronics_lab
		icon = GFX_generic_mio_trait_icon_surface_detection

		all_parents = {
			whitehall_wh_shipwright
			whitehall_wh_premium_fitting
		}

		position = { x = 0 y = 2 }
		relative_position_id = whitehall_wh_heritage_bureau

		equipment_bonus = { surface_detection = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_boutique_proc
		name = whitehall_wh_boutique_proc
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = {
			whitehall_wh_design_desk
			whitehall_wh_electronics_lab
		}

		position = { x = -2 y = 3 }
		relative_position_id = whitehall_wh_heritage_bureau

		mutually_exclusive = { whitehall_wh_crown_contract }

		organization_modifier = { military_industrial_organization_funds_gain = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_crown_contract
		name = whitehall_wh_crown_contract
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { whitehall_wh_electronics_lab }

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

		mutually_exclusive = { whitehall_wh_boutique_proc }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.25 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_sensor_suite
		name = whitehall_wh_sensor_suite
		icon = GFX_generic_mio_trait_icon_surface_detection

		any_parent = {
			whitehall_wh_boutique_proc
			whitehall_wh_crown_contract
		}

		position = { x = -2 y = 4 }
		relative_position_id = whitehall_wh_heritage_bureau

		equipment_bonus = {
			surface_detection = 0.06
			sub_detection = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_combat_system
		name = whitehall_wh_combat_system
		icon = GFX_generic_mio_trait_icon_naval_anti_air_attack

		any_parent = {
			whitehall_wh_boutique_proc
			whitehall_wh_crown_contract
		}

		position = { x = 0 y = 4 }
		relative_position_id = whitehall_wh_heritage_bureau

		equipment_bonus = {
			anti_air_attack = 0.06
			hg_attack = 0.06
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_lean_yard
		name = whitehall_wh_lean_yard
		icon = GFX_generic_mio_trait_icon_resources

		any_parent = {
			whitehall_wh_sensor_suite
			whitehall_wh_combat_system
		}

		position = { x = -1 y = 5 }
		relative_position_id = whitehall_wh_heritage_bureau

		production_bonus = { production_resource_penalty_factor = -0.10 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_export_rep
		name = whitehall_wh_export_rep
		icon = GFX_generic_mio_trait_icon_research

		any_parent = { whitehall_wh_combat_system }

		position = { x = 1 y = 5 }
		relative_position_id = whitehall_wh_heritage_bureau

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.06
			military_industrial_organization_research_bonus = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = whitehall_wh_continuity
		name = whitehall_wh_continuity
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			whitehall_wh_lean_yard
			whitehall_wh_export_rep
		}

		position = { x = 0 y = 6 }
		relative_position_id = whitehall_wh_heritage_bureau

		equipment_bonus = { build_cost_ic = -0.06 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = whitehall_wh_continuity
					bonus = 0.10
					uses = 1
					category = CAT_naval_electronics
				} hidden_effect = { rq_eb_a6a3f79acc = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_north_plains_heavy_industries = {
	allowed = { always = yes }
	name = GENERIC_north_plains_heavy_industries_name
	icon = GFX_idea_company_north_plains_heavy_industrie

	visible = {
		FROM = {
			OR = {
				has_country_flag = north_plains_heavy_industries_unlocked
				GENERIC_north_plains_heavy_industries_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = north_plains_heavy_industries_unlocked } }
			}
			FROM = { has_country_flag = north_plains_heavy_industries_unlocked }
		}
	}

	equipment_type = {
		infantry_weapons_type
		H_AT_Equipment
		land_drone_equipment_type
	}

	research_categories = {
		CAT_infantry_weapons
		CAT_heavy_anti_tank
		CAT_land_drones
		CAT_special_forces_equipment
	}

	tree_header_text = {
		text = GENERIC_north_plains_heavy_industries_state_production_directorate_header
		x = 1
	}

	tree_header_text = {
		text = GENERIC_north_plains_heavy_industries_foreign_sales_office_header
		x = 4
	}

	tree_header_text = {
		text = GENERIC_north_plains_heavy_industries_polygon_test_bureau_header
		x = 7
	}

	initial_trait = {
		name = GENERIC_north_plains_heavy_industries_trait

		production_bonus = { production_efficiency_cap_factor = 0.25 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.05 }
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_state_production_directorate
		name = GENERIC_north_plains_heavy_industries_state_production_directorate
		icon = GFX_generic_mio_trait_icon_production_capacity

		position = { x = 1 y = 0 }

		production_bonus = { production_capacity_factor = 0.10 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_round_the_clock_foundry
		name = GENERIC_north_plains_heavy_industries_round_the_clock_foundry
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_north_plains_heavy_industries_state_production_directorate }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		production_bonus = { production_efficiency_gain_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_subsidized_tooling
		name = GENERIC_north_plains_heavy_industries_subsidized_tooling
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_north_plains_heavy_industries_state_production_directorate }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_pilot_line_conversion
		name = GENERIC_north_plains_heavy_industries_pilot_line_conversion
		icon = GFX_generic_mio_trait_icon_conversion_speed

		all_parents = {
			GENERIC_north_plains_heavy_industries_round_the_clock_foundry
			GENERIC_north_plains_heavy_industries_subsidized_tooling
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		production_bonus = { production_conversion_speed_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_conscript_assembly_halls
		name = GENERIC_north_plains_heavy_industries_conscript_assembly_halls
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_north_plains_heavy_industries_pilot_line_conversion }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		mutually_exclusive = { GENERIC_north_plains_heavy_industries_cadre_workforce_reserve }

		production_bonus = { production_resource_need_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_cadre_workforce_reserve
		name = GENERIC_north_plains_heavy_industries_cadre_workforce_reserve
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = { GENERIC_north_plains_heavy_industries_pilot_line_conversion }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		mutually_exclusive = { GENERIC_north_plains_heavy_industries_conscript_assembly_halls }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_five_year_output_quota
		name = GENERIC_north_plains_heavy_industries_five_year_output_quota
		icon = GFX_generic_mio_trait_icon_production_capacity

		any_parent = {
			GENERIC_north_plains_heavy_industries_conscript_assembly_halls
			GENERIC_north_plains_heavy_industries_cadre_workforce_reserve
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_state_inspector_brigade
		name = GENERIC_north_plains_heavy_industries_state_inspector_brigade
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_north_plains_heavy_industries_five_year_output_quota }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_bulk_cartridge_plant
		name = GENERIC_north_plains_heavy_industries_bulk_cartridge_plant
		icon = GFX_generic_mio_trait_icon_smallarms_efficiency_gain

		all_parents = { GENERIC_north_plains_heavy_industries_five_year_output_quota }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		limit_to_equipment_type = { infantry_weapons_type }

		production_bonus = { production_efficiency_gain_factor = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_tube_foundry_lines
		name = GENERIC_north_plains_heavy_industries_tube_foundry_lines
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = {
			GENERIC_north_plains_heavy_industries_state_inspector_brigade
			GENERIC_north_plains_heavy_industries_bulk_cartridge_plant
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		limit_to_equipment_type = { H_AT_Equipment }

		production_bonus = {
			production_capacity_factor = 0.08
			production_efficiency_cap_factor = 0.08
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_drone_conveyor_bay
		name = GENERIC_north_plains_heavy_industries_drone_conveyor_bay
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_north_plains_heavy_industries_tube_foundry_lines }

		position = { x = -1 y = 7 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		limit_to_equipment_type = { land_drone_equipment_type }

		production_bonus = { production_efficiency_gain_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_material_reserve_stockpile
		name = GENERIC_north_plains_heavy_industries_material_reserve_stockpile
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_north_plains_heavy_industries_tube_foundry_lines }

		position = { x = 1 y = 7 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		production_bonus = { production_resource_penalty_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_cadre_bonus_programme
		name = GENERIC_north_plains_heavy_industries_cadre_bonus_programme
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = {
			GENERIC_north_plains_heavy_industries_drone_conveyor_bay
			GENERIC_north_plains_heavy_industries_material_reserve_stockpile
		}

		position = { x = 0 y = 8 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_mass_catalogue_volume
		name = GENERIC_north_plains_heavy_industries_mass_catalogue_volume
		icon = GFX_generic_mio_trait_icon_task

		all_parents = {
			GENERIC_north_plains_heavy_industries_cadre_bonus_programme
			GENERIC_north_plains_heavy_industries_hard_currency_inflow
		}

		position = { x = 0 y = 9 }
		relative_position_id = GENERIC_north_plains_heavy_industries_state_production_directorate

		production_bonus = { production_efficiency_cap_factor = 0.10 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_foreign_sales_office
		name = GENERIC_north_plains_heavy_industries_foreign_sales_office
		icon = GFX_generic_mio_trait_icon_design

		position = { x = 4 y = 0 }

		production_bonus = { production_cost_factor = -0.06 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_tropical_climate_tolerance
		name = GENERIC_north_plains_heavy_industries_tropical_climate_tolerance
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_north_plains_heavy_industries_foreign_sales_office }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_stamped_receiver_variant
		name = GENERIC_north_plains_heavy_industries_stamped_receiver_variant
		icon = GFX_generic_mio_trait_icon_smallarms_buildcost

		all_parents = { GENERIC_north_plains_heavy_industries_foreign_sales_office }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		limit_to_equipment_type = { infantry_weapons_type }

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_foreign_service_manuals
		name = GENERIC_north_plains_heavy_industries_foreign_service_manuals
		icon = GFX_generic_mio_trait_icon_design

		all_parents = {
			GENERIC_north_plains_heavy_industries_tropical_climate_tolerance
			GENERIC_north_plains_heavy_industries_stamped_receiver_variant
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_continental_distribution_channel
		name = GENERIC_north_plains_heavy_industries_continental_distribution_channel
		icon = GFX_generic_mio_trait_icon_conversion_speed

		all_parents = { GENERIC_north_plains_heavy_industries_foreign_service_manuals }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		mutually_exclusive = { GENERIC_north_plains_heavy_industries_grey_market_procurement }

		production_bonus = {
			production_conversion_speed_factor = 0.10
			production_resource_need_factor = -0.08
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_grey_market_procurement
		name = GENERIC_north_plains_heavy_industries_grey_market_procurement
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_north_plains_heavy_industries_foreign_service_manuals }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		mutually_exclusive = { GENERIC_north_plains_heavy_industries_continental_distribution_channel }

		production_bonus = { production_cost_factor = -0.08 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_export_spec_reliability
		name = GENERIC_north_plains_heavy_industries_export_spec_reliability
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = {
			GENERIC_north_plains_heavy_industries_continental_distribution_channel
			GENERIC_north_plains_heavy_industries_grey_market_procurement
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		equipment_bonus = { reliability = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_volume_discount_program
		name = GENERIC_north_plains_heavy_industries_volume_discount_program
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_north_plains_heavy_industries_export_spec_reliability }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		equipment_bonus = {
			build_cost_ic = -0.06
			soft_attack = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_bilateral_service_mission
		name = GENERIC_north_plains_heavy_industries_bilateral_service_mission
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_north_plains_heavy_industries_export_spec_reliability }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		equipment_bonus = {
			soft_attack = 0.04
			maximum_speed = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_strategic_partnership_tier
		name = GENERIC_north_plains_heavy_industries_strategic_partnership_tier
		icon = GFX_generic_mio_trait_icon_research

		all_parents = {
			GENERIC_north_plains_heavy_industries_volume_discount_program
			GENERIC_north_plains_heavy_industries_bilateral_service_mission
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		organization_modifier = {
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.12
			military_industrial_organization_research_bonus = 0.04
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_north_plains_heavy_industries_strategic_partnership_tier
					bonus = 0.10
					uses = 1
					category = CAT_heavy_anti_tank
				} hidden_effect = { rq_eb_38718d38b4 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_heavy_atgm_export_pack
		name = GENERIC_north_plains_heavy_industries_heavy_atgm_export_pack
		icon = GFX_generic_mio_trait_icon_ap_attack

		all_parents = { GENERIC_north_plains_heavy_industries_strategic_partnership_tier }

		position = { x = -1 y = 7 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		limit_to_equipment_type = { H_AT_Equipment }

		equipment_bonus = {
			hard_attack = 0.05
			ap_attack = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_drone_marketing_catalogue
		name = GENERIC_north_plains_heavy_industries_drone_marketing_catalogue
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_north_plains_heavy_industries_strategic_partnership_tier }

		position = { x = 1 y = 7 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = {
			breakthrough = 0.05
			defense = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_hard_currency_inflow
		name = GENERIC_north_plains_heavy_industries_hard_currency_inflow
		icon = GFX_generic_mio_trait_icon_task

		all_parents = {
			GENERIC_north_plains_heavy_industries_heavy_atgm_export_pack
			GENERIC_north_plains_heavy_industries_drone_marketing_catalogue
		}

		position = { x = 0 y = 8 }
		relative_position_id = GENERIC_north_plains_heavy_industries_foreign_sales_office

		production_bonus = { production_conversion_speed_factor = 0.08 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_polygon_test_bureau
		name = GENERIC_north_plains_heavy_industries_polygon_test_bureau
		icon = GFX_generic_mio_trait_icon_ap_attack

		position = { x = 7 y = 0 }

		limit_to_equipment_type = { H_AT_Equipment }

		equipment_bonus = { ap_attack = 0.05 }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_open_range_trials
		name = GENERIC_north_plains_heavy_industries_open_range_trials
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_north_plains_heavy_industries_polygon_test_bureau }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		equipment_bonus = { soft_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_cold_weather_hardening
		name = GENERIC_north_plains_heavy_industries_cold_weather_hardening
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_north_plains_heavy_industries_polygon_test_bureau }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		equipment_bonus = {
			defense = 0.05
			maximum_speed = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_tandem_warhead_lab
		name = GENERIC_north_plains_heavy_industries_tandem_warhead_lab
		icon = GFX_generic_mio_trait_icon_ap_attack

		all_parents = {
			GENERIC_north_plains_heavy_industries_open_range_trials
			GENERIC_north_plains_heavy_industries_cold_weather_hardening
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		limit_to_equipment_type = { H_AT_Equipment }

		equipment_bonus = { ap_attack = 0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_north_plains_heavy_industries_tandem_warhead_lab
					bonus = 0.10
					uses = 1
					category = CAT_heavy_anti_tank
				} hidden_effect = { rq_eb_38718d38b4 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_long_reach_tube_variant
		name = GENERIC_north_plains_heavy_industries_long_reach_tube_variant
		icon = GFX_generic_mio_trait_icon_hard_attack

		all_parents = { GENERIC_north_plains_heavy_industries_tandem_warhead_lab }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		mutually_exclusive = { GENERIC_north_plains_heavy_industries_salvo_doctrine_trial }

		limit_to_equipment_type = { H_AT_Equipment }

		equipment_bonus = { hard_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_salvo_doctrine_trial
		name = GENERIC_north_plains_heavy_industries_salvo_doctrine_trial
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_north_plains_heavy_industries_tandem_warhead_lab }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		mutually_exclusive = { GENERIC_north_plains_heavy_industries_long_reach_tube_variant }

		limit_to_equipment_type = { H_AT_Equipment }

		equipment_bonus = {
			hard_attack = 0.05
			soft_attack = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_modular_optics_bay
		name = GENERIC_north_plains_heavy_industries_modular_optics_bay
		icon = GFX_generic_mio_trait_icon_breakthrough

		any_parent = {
			GENERIC_north_plains_heavy_industries_long_reach_tube_variant
			GENERIC_north_plains_heavy_industries_salvo_doctrine_trial
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		limit_to_equipment_type = {
			infantry_weapons_type
			land_drone_equipment_type
		}

		equipment_bonus = { breakthrough = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_composite_armor_insert
		name = GENERIC_north_plains_heavy_industries_composite_armor_insert
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_north_plains_heavy_industries_modular_optics_bay }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		equipment_bonus = {
			hard_attack = 0.05
			defense = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_diesel_mobility_unit
		name = GENERIC_north_plains_heavy_industries_diesel_mobility_unit
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_north_plains_heavy_industries_modular_optics_bay }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		limit_to_equipment_type = { land_drone_equipment_type }

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_test_polygon_expansion
		name = GENERIC_north_plains_heavy_industries_test_polygon_expansion
		icon = GFX_generic_mio_trait_icon_task

		all_parents = {
			GENERIC_north_plains_heavy_industries_composite_armor_insert
			GENERIC_north_plains_heavy_industries_diesel_mobility_unit
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_drone_network_trial
		name = GENERIC_north_plains_heavy_industries_drone_network_trial
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		all_parents = {
			GENERIC_north_plains_heavy_industries_test_polygon_expansion
			GENERIC_north_plains_heavy_industries_strategic_partnership_tier
		}

		position = { x = -1 y = 7 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		limit_to_equipment_type = { land_drone_equipment_type }

		production_bonus = { production_efficiency_cap_factor = 0.08 }

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_north_plains_heavy_industries_drone_network_trial
					bonus = 0.10
					uses = 1
					category = CAT_land_drones
				} hidden_effect = { rq_eb_e0cae8f58d = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_cadre_engineer_programme
		name = GENERIC_north_plains_heavy_industries_cadre_engineer_programme
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_north_plains_heavy_industries_test_polygon_expansion }

		position = { x = 1 y = 7 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_north_plains_heavy_industries_polygon_doctrine_capstone
		name = GENERIC_north_plains_heavy_industries_polygon_doctrine_capstone
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = {
			GENERIC_north_plains_heavy_industries_drone_network_trial
			GENERIC_north_plains_heavy_industries_cadre_engineer_programme
		}

		position = { x = 0 y = 8 }
		relative_position_id = GENERIC_north_plains_heavy_industries_polygon_test_bureau

		equipment_bonus = { defense = 0.05 }

		production_bonus = { production_resource_penalty_factor = -0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { army_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_southwestern_aerospace_dynamics_bureau = {
	allowed = { always = yes }
	name = GENERIC_southwestern_aerospace_dynamics_bureau
	icon = GFX_idea_company_southwestern_aerospace

	visible = {
		FROM = {
			OR = {
				has_country_flag = southwestern_aerospace_dynamics_bureau_unlocked
				GENERIC_southwestern_aerospace_dynamics_bureau_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = southwestern_aerospace_dynamics_bureau_unlocked } }
			}
			FROM = { has_country_flag = southwestern_aerospace_dynamics_bureau_unlocked }
		}
	}

	equipment_type = {
		mio_cat_eq_only_light_aircraft
		cv_medium_plane_scout_airframe
		mio_cat_eq_only_large_aircraft
	}

	research_categories = {
		CAT_light_aircraft
		CAT_airborne_early_warning
		CAT_heavy_aircraft
		CAT_air_engines
	}

	tree_header_text = {
		text = GENERIC_southwestern_aerospace_dynamics_bureau_frontline_header
		x = 2
	}

	tree_header_text = {
		text = GENERIC_southwestern_aerospace_dynamics_bureau_surveillance_header
		x = 5
	}

	tree_header_text = {
		text = GENERIC_southwestern_aerospace_dynamics_bureau_deterrent_header
		x = 8
	}

	initial_trait = {
		name = GENERIC_southwestern_aerospace_dynamics_bureau_trait

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_task_capacity = 1
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage
		name = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage
		icon = GFX_generic_mio_trait_icon_light_aircraft_anti_air

		position = { x = 2 y = 0 }

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { air_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_fc1_coproduction
		name = GENERIC_southwestern_aerospace_dynamics_bureau_fc1_coproduction
		icon = GFX_generic_mio_trait_icon_light_aircraft_reliability

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { reliability = 0.07 }

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_delta_refinement
		name = GENERIC_southwestern_aerospace_dynamics_bureau_delta_refinement
		icon = GFX_generic_mio_trait_icon_light_aircraft_agility

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { air_agility = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_composite_skin
		name = GENERIC_southwestern_aerospace_dynamics_bureau_composite_skin
		icon = GFX_generic_mio_trait_icon_light_aircraft_buildcost

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_fc1_coproduction }

		position = { x = -2 y = 2 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_ws_turbofan
		name = GENERIC_southwestern_aerospace_dynamics_bureau_ws_turbofan
		icon = GFX_generic_mio_trait_icon_light_aircraft_speed

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_fc1_coproduction
			GENERIC_southwestern_aerospace_dynamics_bureau_delta_refinement
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { maximum_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_thrust_vector
		name = GENERIC_southwestern_aerospace_dynamics_bureau_thrust_vector
		icon = GFX_generic_mio_trait_icon_light_aircraft_agility

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_delta_refinement }

		position = { x = 2 y = 2 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { air_agility = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_native_aesa
		name = GENERIC_southwestern_aerospace_dynamics_bureau_native_aesa
		icon = GFX_generic_mio_trait_icon_light_aircraft_anti_air

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_composite_skin
			GENERIC_southwestern_aerospace_dynamics_bureau_ws_turbofan
		}

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		mutually_exclusive = { GENERIC_southwestern_aerospace_dynamics_bureau_imported_aesa }

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { air_attack = 0.06 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_southwestern_aerospace_dynamics_bureau_native_aesa
					bonus = 0.10
					uses = 1
					category = CAT_light_aircraft
				} hidden_effect = { rq_eb_a3c9255e27 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_imported_aesa
		name = GENERIC_southwestern_aerospace_dynamics_bureau_imported_aesa
		icon = GFX_generic_mio_trait_icon_light_aircraft_defense

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_ws_turbofan
			GENERIC_southwestern_aerospace_dynamics_bureau_thrust_vector
		}

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		mutually_exclusive = { GENERIC_southwestern_aerospace_dynamics_bureau_native_aesa }

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { air_defence = 0.06 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.18 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_helmet_cue
		name = GENERIC_southwestern_aerospace_dynamics_bureau_helmet_cue
		icon = GFX_generic_mio_trait_icon_light_aircraft_agility

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_native_aesa }

		position = { x = -2 y = 4 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { air_agility = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_datalink_pod
		name = GENERIC_southwestern_aerospace_dynamics_bureau_datalink_pod
		icon = GFX_generic_mio_trait_icon_light_aircraft_range

		any_parent = {
			GENERIC_southwestern_aerospace_dynamics_bureau_native_aesa
			GENERIC_southwestern_aerospace_dynamics_bureau_imported_aesa
			GENERIC_southwestern_aerospace_dynamics_bureau_datalink_relay_grid
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { air_range = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_pl15_missile
		name = GENERIC_southwestern_aerospace_dynamics_bureau_pl15_missile
		icon = GFX_generic_mio_trait_icon_light_aircraft_speed

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_imported_aesa }

		position = { x = 2 y = 4 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_pakistan_line
		name = GENERIC_southwestern_aerospace_dynamics_bureau_pakistan_line
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_helmet_cue
			GENERIC_southwestern_aerospace_dynamics_bureau_datalink_pod
		}

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		production_bonus = { production_capacity_factor = 0.12 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_egypt_assembly
		name = GENERIC_southwestern_aerospace_dynamics_bureau_egypt_assembly
		icon = GFX_generic_mio_trait_icon_light_aircraft_buildcost

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_datalink_pod
			GENERIC_southwestern_aerospace_dynamics_bureau_pl15_missile
		}

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		limit_to_equipment_type = { mio_cat_eq_only_light_aircraft }

		production_bonus = { production_cost_factor = -0.09 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_tropical_maintenance
		name = GENERIC_southwestern_aerospace_dynamics_bureau_tropical_maintenance
		icon = GFX_generic_mio_trait_icon_funds

		any_parent = {
			GENERIC_southwestern_aerospace_dynamics_bureau_pakistan_line
			GENERIC_southwestern_aerospace_dynamics_bureau_egypt_assembly
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_chengdu_heritage

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage
		name = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage
		icon = GFX_generic_mio_trait_icon_medium_aircraft_reliability

		position = { x = 5 y = 0 }

		limit_to_equipment_type = { cv_medium_plane_scout_airframe }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_dorsal_rotodome
		name = GENERIC_southwestern_aerospace_dynamics_bureau_dorsal_rotodome
		icon = GFX_generic_mio_trait_icon_medium_aircraft_defense

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		limit_to_equipment_type = { cv_medium_plane_scout_airframe }

		equipment_bonus = { air_defence = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_balance_beam_array
		name = GENERIC_southwestern_aerospace_dynamics_bureau_balance_beam_array
		icon = GFX_generic_mio_trait_icon_medium_aircraft_reliability

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		limit_to_equipment_type = { cv_medium_plane_scout_airframe }

		equipment_bonus = { reliability = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_phased_array_upgrade
		name = GENERIC_southwestern_aerospace_dynamics_bureau_phased_array_upgrade
		icon = GFX_generic_mio_trait_icon_medium_aircraft_range

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_dorsal_rotodome
			GENERIC_southwestern_aerospace_dynamics_bureau_balance_beam_array
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		limit_to_equipment_type = { cv_medium_plane_scout_airframe }

		equipment_bonus = { air_range = 0.05 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_southwestern_aerospace_dynamics_bureau_phased_array_upgrade
					bonus = 0.10
					uses = 1
					category = CAT_airborne_early_warning
				} hidden_effect = { rq_eb_81702431a4 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_battle_management_suite
		name = GENERIC_southwestern_aerospace_dynamics_bureau_battle_management_suite
		icon = GFX_generic_mio_trait_icon_medium_aircraft_defense

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_phased_array_upgrade }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		limit_to_equipment_type = { cv_medium_plane_scout_airframe }

		equipment_bonus = { air_defence = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_datalink_relay_grid
		name = GENERIC_southwestern_aerospace_dynamics_bureau_datalink_relay_grid
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_phased_array_upgrade }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_endurance_tankage
		name = GENERIC_southwestern_aerospace_dynamics_bureau_endurance_tankage
		icon = GFX_generic_mio_trait_icon_medium_aircraft_range

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_battle_management_suite
			GENERIC_southwestern_aerospace_dynamics_bureau_datalink_relay_grid
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		limit_to_equipment_type = { cv_medium_plane_scout_airframe }

		equipment_bonus = { air_range = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_carrier_scout_variant
		name = GENERIC_southwestern_aerospace_dynamics_bureau_carrier_scout_variant
		icon = GFX_generic_mio_trait_icon_medium_aircraft_speed

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_endurance_tankage }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		mutually_exclusive = { GENERIC_southwestern_aerospace_dynamics_bureau_land_orbit_doctrine }

		limit_to_equipment_type = { cv_medium_plane_scout_airframe }

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_land_orbit_doctrine
		name = GENERIC_southwestern_aerospace_dynamics_bureau_land_orbit_doctrine
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_endurance_tankage }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		mutually_exclusive = { GENERIC_southwestern_aerospace_dynamics_bureau_carrier_scout_variant }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_egypt_eye
		name = GENERIC_southwestern_aerospace_dynamics_bureau_egypt_eye
		icon = GFX_generic_mio_trait_icon_medium_aircraft_buildcost

		any_parent = {
			GENERIC_southwestern_aerospace_dynamics_bureau_carrier_scout_variant
			GENERIC_southwestern_aerospace_dynamics_bureau_land_orbit_doctrine
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		limit_to_equipment_type = { cv_medium_plane_scout_airframe }

		production_bonus = { production_cost_factor = -0.09 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_bangladesh_asw
		name = GENERIC_southwestern_aerospace_dynamics_bureau_bangladesh_asw
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_egypt_eye }

		position = { x = 0 y = 7 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_panda_eye_lineage

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.13 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage
		name = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage
		icon = GFX_generic_mio_trait_icon_large_aircraft_strategic_attack

		position = { x = 8 y = 0 }

		limit_to_equipment_type = { mio_cat_eq_only_large_aircraft }

		equipment_bonus = { air_bombing = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_h6_revival
		name = GENERIC_southwestern_aerospace_dynamics_bureau_h6_revival
		icon = GFX_generic_mio_trait_icon_large_aircraft_strategic_attack

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		limit_to_equipment_type = { mio_cat_eq_only_large_aircraft }

		equipment_bonus = { air_bombing = 0.09 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_flying_wing_study
		name = GENERIC_southwestern_aerospace_dynamics_bureau_flying_wing_study
		icon = GFX_generic_mio_trait_icon_large_aircraft_strategic_attack

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		limit_to_equipment_type = { mio_cat_eq_only_large_aircraft }

		equipment_bonus = { air_bombing = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_southwestern_aerospace_dynamics_bureau_flying_wing_study
					bonus = 0.10
					uses = 1
					category = CAT_heavy_aircraft
				} hidden_effect = { rq_eb_855cbf9236 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_low_observable_skin
		name = GENERIC_southwestern_aerospace_dynamics_bureau_low_observable_skin
		icon = GFX_generic_mio_trait_icon_large_aircraft_anti_air

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_h6_revival
			GENERIC_southwestern_aerospace_dynamics_bureau_flying_wing_study
		}

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		limit_to_equipment_type = { mio_cat_eq_only_large_aircraft }

		equipment_bonus = { air_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_asm_integration
		name = GENERIC_southwestern_aerospace_dynamics_bureau_asm_integration
		icon = GFX_generic_mio_trait_icon_large_aircraft_buildcost

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_low_observable_skin }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		limit_to_equipment_type = { mio_cat_eq_only_large_aircraft }

		equipment_bonus = { build_cost_ic = -0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_cruise_missile_bay
		name = GENERIC_southwestern_aerospace_dynamics_bureau_cruise_missile_bay
		icon = GFX_generic_mio_trait_icon_large_aircraft_buildcost

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_low_observable_skin }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		limit_to_equipment_type = { mio_cat_eq_only_large_aircraft }

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_inflight_refuel_probe
		name = GENERIC_southwestern_aerospace_dynamics_bureau_inflight_refuel_probe
		icon = GFX_generic_mio_trait_icon_task

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_asm_integration
			GENERIC_southwestern_aerospace_dynamics_bureau_cruise_missile_bay
			GENERIC_southwestern_aerospace_dynamics_bureau_ws_turbofan
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_stealth_vector
		name = GENERIC_southwestern_aerospace_dynamics_bureau_stealth_vector
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_inflight_refuel_probe }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		mutually_exclusive = { GENERIC_southwestern_aerospace_dynamics_bureau_saturation_doctrine }

		limit_to_equipment_type = { mio_cat_eq_only_large_aircraft }

		production_bonus = { production_capacity_factor = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_saturation_doctrine
		name = GENERIC_southwestern_aerospace_dynamics_bureau_saturation_doctrine
		icon = GFX_generic_mio_trait_icon_large_aircraft

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_inflight_refuel_probe }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		mutually_exclusive = { GENERIC_southwestern_aerospace_dynamics_bureau_stealth_vector }

		limit_to_equipment_type = { mio_cat_eq_only_large_aircraft }

		production_bonus = { production_capacity_factor = 0.14 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_nav_inertial
		name = GENERIC_southwestern_aerospace_dynamics_bureau_nav_inertial
		icon = GFX_generic_mio_trait_icon_design

		any_parent = {
			GENERIC_southwestern_aerospace_dynamics_bureau_stealth_vector
			GENERIC_southwestern_aerospace_dynamics_bureau_saturation_doctrine
		}

		position = { x = -2 y = 6 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.18 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_defensive_ew_pod
		name = GENERIC_southwestern_aerospace_dynamics_bureau_defensive_ew_pod
		icon = GFX_generic_mio_trait_icon_design

		any_parent = {
			GENERIC_southwestern_aerospace_dynamics_bureau_stealth_vector
			GENERIC_southwestern_aerospace_dynamics_bureau_saturation_doctrine
			GENERIC_southwestern_aerospace_dynamics_bureau_battle_management_suite
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_pacific_doctrine
		name = GENERIC_southwestern_aerospace_dynamics_bureau_pacific_doctrine
		icon = GFX_generic_mio_trait_icon_design

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_nav_inertial
			GENERIC_southwestern_aerospace_dynamics_bureau_defensive_ew_pod
		}

		position = { x = -1 y = 7 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_bangladesh_maritime
		name = GENERIC_southwestern_aerospace_dynamics_bureau_bangladesh_maritime
		icon = GFX_generic_mio_trait_icon_design

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_nav_inertial
			GENERIC_southwestern_aerospace_dynamics_bureau_defensive_ew_pod
		}

		position = { x = 1 y = 7 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_composite_fuselage
		name = GENERIC_southwestern_aerospace_dynamics_bureau_composite_fuselage
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = {
			GENERIC_southwestern_aerospace_dynamics_bureau_pacific_doctrine
			GENERIC_southwestern_aerospace_dynamics_bureau_bangladesh_maritime
		}

		position = { x = 0 y = 8 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_southwestern_aerospace_dynamics_bureau_reliability_program
		name = GENERIC_southwestern_aerospace_dynamics_bureau_reliability_program
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_southwestern_aerospace_dynamics_bureau_composite_fuselage }

		position = { x = 0 y = 9 }
		relative_position_id = GENERIC_southwestern_aerospace_dynamics_bureau_xian_heritage

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_eastern_maritime_shipbuilding_group = {
	allowed = { always = yes }
	name = GENERIC_eastern_maritime_shipbuilding_group_name
	icon = GFX_idea_company_eastern_maritime

	visible = {
		FROM = {
			OR = {
				has_country_flag = eastern_maritime_shipbuilding_group_unlocked
				GENERIC_eastern_maritime_shipbuilding_group_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = eastern_maritime_shipbuilding_group_unlocked } }
			}
			FROM = { has_country_flag = eastern_maritime_shipbuilding_group_unlocked }
		}
	}

	equipment_type = {
		cruiser
		battle_cruiser
		battleship
		mio_cat_frigates
		carrier
	}

	research_categories = {
		CAT_cruisers
		CAT_frigates
		CAT_aircraft_carriers
		CAT_naval_armament
	}

	initial_trait = {
		name = GENERIC_eastern_maritime_shipbuilding_group_trait

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
			military_industrial_organization_task_capacity = 1
		}
	}

	trait = {
		token = emsg_dragon_keel
		name = emsg_dragon_keel
		icon = GFX_generic_mio_trait_icon_task

		position = { x = 2 y = 0 }

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_research_bonus = 0.04
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = emsg_dragon_keel
					bonus = 0.10
					uses = 1
					category = CAT_cruisers
				} hidden_effect = { rq_eb_e3e0ded492 = yes }
			}
		}
	}

	trait = {
		token = emsg_azure_horizon
		name = emsg_azure_horizon
		icon = GFX_generic_mio_trait_icon_task

		position = { x = 7 y = 0 }

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_funds_gain = 0.04
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = emsg_azure_horizon
					bonus = 0.10
					uses = 1
					category = CAT_aircraft_carriers
				} hidden_effect = { rq_eb_6c17a40d4f = yes }
			}
		}
	}

	trait = {
		token = emsg_yangtze_slipways
		name = emsg_yangtze_slipways
		icon = GFX_generic_mio_trait_icon_production_capacity

		any_parent = { emsg_dragon_keel }

		position = { x = -1 y = 1 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		production_bonus = { production_capacity_factor = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_coastal = yes
						free_building_slots = { building = dockyard size > 0 include_locked = no }
					}
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	trait = {
		token = emsg_triple_shift_labor
		name = emsg_triple_shift_labor
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = { emsg_dragon_keel }

		position = { x = 1 y = 1 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		production_bonus = { production_cost_factor = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_flight_deck_geometry
		name = emsg_flight_deck_geometry
		icon = GFX_generic_mio_trait_icon_carrier_upgrade

		any_parent = { emsg_azure_horizon }

		position = { x = -1 y = 1 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { carrier_size = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_hull_quench_foundry
		name = emsg_hull_quench_foundry
		icon = GFX_generic_mio_trait_icon_carrier

		any_parent = { emsg_azure_horizon }

		position = { x = 1 y = 1 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		production_bonus = { production_capacity_factor = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_coastal = yes
						free_building_slots = { building = dockyard size > 0 include_locked = no }
					}
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	trait = {
		token = emsg_modular_bow_casting
		name = emsg_modular_bow_casting
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = { emsg_yangtze_slipways }

		position = { x = -2 y = 2 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_citadel_plate_rolling
		name = emsg_citadel_plate_rolling
		icon = GFX_generic_mio_trait_icon_armor_value

		any_parent = {
			emsg_yangtze_slipways
			emsg_triple_shift_labor
		}

		position = { x = 0 y = 2 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { armor_value = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_helical_turbine_works
		name = emsg_helical_turbine_works
		icon = GFX_generic_mio_trait_icon_naval_speed

		any_parent = { emsg_triple_shift_labor }

		position = { x = 2 y = 2 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { naval_speed = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_angled_landing_strip
		name = emsg_angled_landing_strip
		icon = GFX_generic_mio_trait_icon_max_strength

		any_parent = { emsg_flight_deck_geometry }

		position = { x = -2 y = 2 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { max_strength = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_steam_catapult_works
		name = emsg_steam_catapult_works
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = {
			emsg_flight_deck_geometry
			emsg_hull_quench_foundry
		}

		position = { x = 0 y = 2 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { reliability = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_island_bridge_redesign
		name = emsg_island_bridge_redesign
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = { emsg_hull_quench_foundry }

		position = { x = 2 y = 2 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { max_organisation = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_frigate_torpedo_bay
		name = emsg_frigate_torpedo_bay
		icon = GFX_generic_mio_trait_icon_torpedo_attack

		any_parent = { emsg_modular_bow_casting }

		position = { x = -2 y = 3 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = { mio_cat_frigates }

		equipment_bonus = { torpedo_attack = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = emsg_frigate_torpedo_bay
					bonus = 0.10
					uses = 1
					category = CAT_frigates
				} hidden_effect = { rq_eb_d1329335d1 = yes }
			}
		}
	}

	trait = {
		token = emsg_heavy_barbette
		name = emsg_heavy_barbette
		icon = GFX_generic_mio_trait_icon_hg_attack

		any_parent = { emsg_citadel_plate_rolling }

		position = { x = -1 y = 3 }
		relative_position_id = emsg_dragon_keel

		mutually_exclusive = { emsg_rail_launched_salvo }

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
		}

		equipment_bonus = { hg_attack = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = emsg_heavy_barbette
					bonus = 0.10
					uses = 1
					category = CAT_naval_armament
				} hidden_effect = { rq_eb_61b631292b = yes }
			}
		}
	}

	trait = {
		token = emsg_rail_launched_salvo
		name = emsg_rail_launched_salvo
		icon = GFX_generic_mio_trait_icon_hg_attack

		any_parent = { emsg_citadel_plate_rolling }

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

		mutually_exclusive = { emsg_heavy_barbette }

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
		}

		equipment_bonus = { hg_armor_piercing = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_autocannon_doctrine
		name = emsg_autocannon_doctrine
		icon = GFX_generic_mio_trait_icon_lg_attack

		any_parent = {
			emsg_citadel_plate_rolling
			emsg_helical_turbine_works
		}

		position = { x = 1 y = 3 }
		relative_position_id = emsg_dragon_keel

		mutually_exclusive = { emsg_smart_round_arsenal }

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { lg_attack = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_smart_round_arsenal
		name = emsg_smart_round_arsenal
		icon = GFX_generic_mio_trait_icon_lg_attack

		any_parent = { emsg_helical_turbine_works }

		position = { x = 2 y = 3 }
		relative_position_id = emsg_dragon_keel

		mutually_exclusive = { emsg_autocannon_doctrine }

		limit_to_equipment_type = {
			battle_cruiser
			battleship
			cruiser
		}

		equipment_bonus = { lg_armor_piercing = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = emsg_smart_round_arsenal
					bonus = 0.10
					uses = 1
					category = CAT_naval_armament
				} hidden_effect = { rq_eb_61b631292b = yes }
			}
		}
	}

	trait = {
		token = emsg_stol_expansion_deck
		name = emsg_stol_expansion_deck
		icon = GFX_generic_mio_trait_icon_max_strength

		any_parent = { emsg_angled_landing_strip }

		position = { x = -2 y = 3 }
		relative_position_id = emsg_azure_horizon

		mutually_exclusive = { emsg_fixed_wing_focus }

		limit_to_equipment_type = { carrier }

		equipment_bonus = { carrier_size = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_fixed_wing_focus
		name = emsg_fixed_wing_focus
		icon = GFX_generic_mio_trait_icon_surface_detection

		any_parent = {
			emsg_angled_landing_strip
			emsg_steam_catapult_works
		}

		position = { x = -1 y = 3 }
		relative_position_id = emsg_azure_horizon

		mutually_exclusive = { emsg_stol_expansion_deck }

		limit_to_equipment_type = { carrier }

		equipment_bonus = { max_organisation = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_close_in_weapons_station
		name = emsg_close_in_weapons_station
		icon = GFX_generic_mio_trait_icon_naval_anti_air_attack

		any_parent = {
			emsg_steam_catapult_works
			emsg_island_bridge_redesign
		}

		position = { x = 1 y = 3 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { anti_air_attack = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_carrier_damage_control
		name = emsg_carrier_damage_control
		icon = GFX_generic_mio_trait_icon_naval_torpedo_damage_reduction_factor

		any_parent = { emsg_island_bridge_redesign }

		position = { x = 2 y = 3 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { armor_value = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_kilo_frigate_line
		name = emsg_kilo_frigate_line
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = { emsg_frigate_torpedo_bay }

		position = { x = -2 y = 4 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = { mio_cat_frigates }

		equipment_bonus = { reliability = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_salvage_metalwork
		name = emsg_salvage_metalwork
		icon = GFX_generic_mio_trait_icon_max_strength

		any_parent = {
			emsg_heavy_barbette
			emsg_rail_launched_salvo
		}

		position = { x = -1 y = 4 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { max_strength = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_hit_analytics_suite
		name = emsg_hit_analytics_suite
		icon = GFX_generic_mio_trait_icon_hg_attack

		any_parent = {
			emsg_heavy_barbette
			emsg_rail_launched_salvo
		}

		position = { x = 0 y = 4 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
		}

		equipment_bonus = { hg_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_fire_control_updates
		name = emsg_fire_control_updates
		icon = GFX_generic_mio_trait_icon_lg_attack

		any_parent = {
			emsg_autocannon_doctrine
			emsg_smart_round_arsenal
		}

		position = { x = 1 y = 4 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { lg_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_composite_radar_array
		name = emsg_composite_radar_array
		icon = GFX_generic_mio_trait_icon_surface_detection

		any_parent = { emsg_smart_round_arsenal }

		position = { x = 2 y = 4 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { surface_detection = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_rotary_wing_complement
		name = emsg_rotary_wing_complement
		icon = GFX_generic_mio_trait_icon_detection

		any_parent = { emsg_stol_expansion_deck }

		position = { x = -2 y = 4 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { sub_detection = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_carrier_propulsion
		name = emsg_carrier_propulsion
		icon = GFX_generic_mio_trait_icon_naval_speed

		any_parent = {
			emsg_fixed_wing_focus
			emsg_helical_turbine_works
		}

		position = { x = -1 y = 4 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { naval_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_missile_defense_grid
		name = emsg_missile_defense_grid
		icon = GFX_generic_mio_trait_icon_naval_anti_air_attack

		any_parent = { emsg_close_in_weapons_station }

		position = { x = 1 y = 4 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { anti_air_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_deck_crew_training
		name = emsg_deck_crew_training
		icon = GFX_generic_mio_trait_icon_carrier_buildcost

		any_parent = { emsg_carrier_damage_control }

		position = { x = 2 y = 4 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		production_bonus = { production_cost_factor = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_frigate_command_net
		name = emsg_frigate_command_net
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = { emsg_kilo_frigate_line }

		position = { x = -2 y = 5 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = { mio_cat_frigates }

		equipment_bonus = { max_organisation = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_hull_quieting_works
		name = emsg_hull_quieting_works
		icon = GFX_generic_mio_trait_icon_surface_visibility

		any_parent = { emsg_salvage_metalwork }

		position = { x = -1 y = 5 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { surface_visibility = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_armor_parity_drive
		name = emsg_armor_parity_drive
		icon = GFX_generic_mio_trait_icon_armor_value

		any_parent = {
			emsg_salvage_metalwork
			emsg_hit_analytics_suite
		}

		position = { x = 0 y = 5 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { armor_value = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_long_march_turbines
		name = emsg_long_march_turbines
		icon = GFX_generic_mio_trait_icon_naval_range

		any_parent = {
			emsg_hit_analytics_suite
			emsg_fire_control_updates
		}

		position = { x = 1 y = 5 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { naval_range = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_hydrophone_array
		name = emsg_hydrophone_array
		icon = GFX_generic_mio_trait_icon_detection

		any_parent = {
			emsg_composite_radar_array
			emsg_rotary_wing_complement
		}

		position = { x = 2 y = 5 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { sub_detection = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_long_leg_escort_range
		name = emsg_long_leg_escort_range
		icon = GFX_generic_mio_trait_icon_naval_range

		any_parent = { emsg_carrier_propulsion }

		position = { x = -1 y = 5 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { naval_range = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_fleet_carrier_integration
		name = emsg_fleet_carrier_integration
		icon = GFX_generic_mio_trait_icon_surface_detection

		any_parent = {
			emsg_carrier_propulsion
			emsg_missile_defense_grid
		}

		position = { x = 0 y = 5 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { max_organisation = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_carrier_electronics_suite
		name = emsg_carrier_electronics_suite
		icon = GFX_generic_mio_trait_icon_surface_detection

		any_parent = {
			emsg_missile_defense_grid
			emsg_composite_radar_array
		}

		position = { x = 1 y = 5 }
		relative_position_id = emsg_azure_horizon

		limit_to_equipment_type = { carrier }

		equipment_bonus = { surface_detection = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_frigate_standardization
		name = emsg_frigate_standardization
		icon = GFX_generic_mio_trait_icon_frigate_resources

		any_parent = { emsg_frigate_command_net }

		position = { x = -2 y = 6 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = { mio_cat_frigates }

		production_bonus = {
			production_capacity_factor = 0.05
			production_resource_need_factor = -0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_midlife_refit_cycle
		name = emsg_midlife_refit_cycle
		icon = GFX_generic_mio_trait_icon_task

		any_parent = { emsg_hull_quieting_works }

		position = { x = -1 y = 6 }
		relative_position_id = emsg_dragon_keel

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_cruise_endurance_program
		name = emsg_cruise_endurance_program
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = { emsg_armor_parity_drive }

		position = { x = 0 y = 6 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { reliability = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_damage_control_doctrine
		name = emsg_damage_control_doctrine
		icon = GFX_generic_mio_trait_icon_naval_torpedo_damage_reduction_factor

		any_parent = {
			emsg_armor_parity_drive
			emsg_long_march_turbines
		}

		position = { x = 1 y = 6 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { armor_value = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_sensor_fusion
		name = emsg_sensor_fusion
		icon = GFX_generic_mio_trait_icon_surface_detection

		any_parent = {
			emsg_long_march_turbines
			emsg_hydrophone_array
		}

		position = { x = 2 y = 6 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { max_organisation = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_carrier_design_bureau
		name = emsg_carrier_design_bureau
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			emsg_long_leg_escort_range
			emsg_fleet_carrier_integration
		}

		position = { x = -1 y = 6 }
		relative_position_id = emsg_azure_horizon

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}
	}

	trait = {
		token = emsg_blue_water_integration
		name = emsg_blue_water_integration
		icon = GFX_generic_mio_trait_icon_task

		any_parent = { emsg_carrier_electronics_suite }

		position = { x = 1 y = 6 }
		relative_position_id = emsg_azure_horizon

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_multi_program_funding
		name = emsg_multi_program_funding
		icon = GFX_generic_mio_trait_icon_task

		any_parent = { emsg_midlife_refit_cycle }

		position = { x = -1 y = 7 }
		relative_position_id = emsg_dragon_keel

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_bluewater_readiness
		name = emsg_bluewater_readiness
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = {
			emsg_cruise_endurance_program
			emsg_damage_control_doctrine
		}

		position = { x = 0 y = 7 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { max_organisation = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_tactical_data_link
		name = emsg_tactical_data_link
		icon = GFX_generic_mio_trait_icon_naval_anti_air_attack

		any_parent = {
			emsg_damage_control_doctrine
			emsg_sensor_fusion
		}

		position = { x = 1 y = 7 }
		relative_position_id = emsg_dragon_keel

		limit_to_equipment_type = {
			cruiser
			battle_cruiser
			battleship
			mio_cat_frigates
		}

		equipment_bonus = { anti_air_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }
	}

	trait = {
		token = emsg_azure_horizon_doctrine
		name = emsg_azure_horizon_doctrine
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			emsg_carrier_design_bureau
			emsg_blue_water_integration
			emsg_sensor_fusion
		}

		position = { x = 0 y = 7 }
		relative_position_id = emsg_azure_horizon

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.03
			military_industrial_organization_funds_gain = 0.04
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}
	}

	trait = {
		token = emsg_dragon_keel_doctrine
		name = emsg_dragon_keel_doctrine
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			emsg_multi_program_funding
			emsg_bluewater_readiness
			emsg_tactical_data_link
			emsg_blue_water_integration
		}

		position = { x = 0 y = 8 }
		relative_position_id = emsg_dragon_keel

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}
	}
}
GENERIC_second_academy_missile_bureau = {
	allowed = { always = yes }
	name = GENERIC_second_academy_missile_bureau
	icon = GFX_idea_company_second_academy_bureau

	task_capacity = 10

	visible = {
		FROM = {
			OR = {
				has_country_flag = second_academy_missile_bureau_unlocked
				GENERIC_second_academy_missile_bureau_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = second_academy_missile_bureau_unlocked } }
			}
			FROM = { has_country_flag = second_academy_missile_bureau_unlocked }
		}
	}

	ai_will_do = {
		base = 10
		modifier = {
			factor = 0.2
			FROM = {
				num_of_military_factories > 20
			}
		}
	}

	equipment_type = {
		guided_missile_equipment
		ballistic_missile_equipment
		nuclear_missile_equipment
		hypersonic_missile_equipment
		mothership_equipment
		mothership_strike_airframe
		mothership_naval_bomber_airframe
	}

	research_categories = {
		CAT_cruise_missiles
		CAT_ground_launched_cruise_missiles
		CAT_intermediate_range_ballistic_missiles
		CAT_intercontinental_ballistic_missiles
		CAT_hypersonic_cruise_missiles
	}

	tree_header_text = {
		text = mio_header_second_academy_tactical
		x = 1
	}

	tree_header_text = {
		text = mio_header_second_academy_strategic
		x = 5
	}

	tree_header_text = {
		text = mio_header_second_academy_black
		x = 8
	}

	initial_trait = {
		name = GENERIC_second_academy_missile_bureau_trait

		production_bonus = { production_efficiency_cap_factor = 0.03 }

		organization_modifier = {
			military_industrial_organization_task_capacity = 2
			military_industrial_organization_research_bonus = 0.05
			military_industrial_organization_size_up_requirement = -0.10
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_foundry
		name = GENERIC_second_academy_missile_bureau_tso_foundry
		icon = GFX_generic_mio_trait_icon_guided_missile_efficiency_cap

		position = { x = 1 y = 0 }

		limit_to_equipment_type = { guided_missile_equipment }

		production_bonus = { production_efficiency_cap_factor = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_second_academy_missile_bureau_tso_foundry
					bonus = 0.10
					uses = 1
					category = CAT_cruise_missiles
				} hidden_effect = { rq_eb_c4a112cc93 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_tercom
		name = GENERIC_second_academy_missile_bureau_tso_tercom
		icon = GFX_generic_mio_trait_icon_guided_missile_agility

		all_parents = { GENERIC_second_academy_missile_bureau_tso_foundry }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = -1 y = 1 }

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { air_agility = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_turbofan
		name = GENERIC_second_academy_missile_bureau_tso_turbofan
		icon = GFX_generic_mio_trait_icon_guided_missile_range

		all_parents = { GENERIC_second_academy_missile_bureau_tso_foundry }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = 1 y = 1 }

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { air_range = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_stealth
		name = GENERIC_second_academy_missile_bureau_tso_stealth
		icon = GFX_generic_mio_trait_icon_guided_missile_defense

		all_parents = { GENERIC_second_academy_missile_bureau_tso_tercom }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = -1 y = 2 }

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { air_agility = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_penetrator
		name = GENERIC_second_academy_missile_bureau_tso_penetrator
		icon = GFX_generic_mio_trait_icon_guided_missile_reliability

		all_parents = { GENERIC_second_academy_missile_bureau_tso_foundry }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = 0 y = 2 }

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { reliability = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_seeker
		name = GENERIC_second_academy_missile_bureau_tso_seeker
		icon = GFX_generic_mio_trait_icon_guided_missile

		all_parents = { GENERIC_second_academy_missile_bureau_tso_turbofan }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = 1 y = 2 }

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { naval_strike_attack = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_optics
		name = GENERIC_second_academy_missile_bureau_tso_optics
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_second_academy_missile_bureau_tso_stealth }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = -1 y = 3 }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_swarm
		name = GENERIC_second_academy_missile_bureau_tso_swarm
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_second_academy_missile_bureau_tso_penetrator }

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

		limit_to_equipment_type = { guided_missile_equipment }

		production_bonus = { production_capacity_factor = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_export
		name = GENERIC_second_academy_missile_bureau_tso_export
		icon = GFX_generic_mio_trait_icon_guided_missile_buildcost

		all_parents = { GENERIC_second_academy_missile_bureau_tso_optics }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = -1 y = 4 }

		mutually_exclusive = { GENERIC_second_academy_missile_bureau_tso_premium }

		limit_to_equipment_type = { guided_missile_equipment }

		production_bonus = { production_cost_factor = -0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_premium
		name = GENERIC_second_academy_missile_bureau_tso_premium
		icon = GFX_generic_mio_trait_icon_guided_missile

		all_parents = { GENERIC_second_academy_missile_bureau_tso_swarm }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = 1 y = 4 }

		mutually_exclusive = { GENERIC_second_academy_missile_bureau_tso_export }

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { air_ground_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_reload
		name = GENERIC_second_academy_missile_bureau_tso_reload
		icon = GFX_generic_mio_trait_icon_guided_missile_efficiency_gain

		all_parents = { GENERIC_second_academy_missile_bureau_tso_swarm }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = 0 y = 5 }

		limit_to_equipment_type = { guided_missile_equipment }

		production_bonus = { production_efficiency_gain_factor = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_tso_deployment
		name = GENERIC_second_academy_missile_bureau_tso_deployment
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_second_academy_missile_bureau_tso_reload }

		relative_position_id = GENERIC_second_academy_missile_bureau_tso_foundry
		position = { x = 0 y = 6 }

		organization_modifier = {
			military_industrial_organization_design_team_change_cost = -0.20
			military_industrial_organization_funds_gain = 0.04
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		name = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		position = { x = 4 y = 0 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		production_bonus = { production_efficiency_cap_factor = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "Gotterdammerung" }
					add_tech_bonus = {
						name = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
						bonus = 0.15
						uses = 1
						category = CAT_intermediate_range_ballistic_missiles
					} hidden_effect = { rq_eb_6c68a1de3a = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_solid_fuel
		name = GENERIC_second_academy_missile_bureau_sfo_solid_fuel
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_rocket_forces }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = -1 y = 1 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		equipment_bonus = { reliability = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_cryogenics
		name = GENERIC_second_academy_missile_bureau_sfo_cryogenics
		icon = GFX_generic_mio_trait_icon_air_range

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_rocket_forces }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = 1 y = 1 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		equipment_bonus = { air_range = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_tel
		name = GENERIC_second_academy_missile_bureau_sfo_tel
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_rocket_forces }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = 2 y = 1 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		production_bonus = { production_efficiency_gain_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_mirv
		name = GENERIC_second_academy_missile_bureau_sfo_mirv
		icon = GFX_generic_mio_trait_icon_anti_air_attack

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_solid_fuel }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = -1 y = 2 }

		mutually_exclusive = { GENERIC_second_academy_missile_bureau_sfo_megaton }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		equipment_bonus = { air_bombing = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_megaton
		name = GENERIC_second_academy_missile_bureau_sfo_megaton
		icon = GFX_generic_mio_trait_icon_air_ground_attack

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_solid_fuel }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = 0 y = 2 }

		mutually_exclusive = { GENERIC_second_academy_missile_bureau_sfo_mirv }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		equipment_bonus = { air_bombing = 0.12 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "Gotterdammerung" }
					add_tech_bonus = {
						name = GENERIC_second_academy_missile_bureau_sfo_megaton
						bonus = 0.15
						uses = 1
						category = CAT_intercontinental_ballistic_missiles
					} hidden_effect = { rq_eb_6f4070295a = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_penetration
		name = GENERIC_second_academy_missile_bureau_sfo_penetration
		icon = GFX_generic_mio_trait_icon_air_defence

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_cryogenics }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = 1 y = 2 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		equipment_bonus = { air_agility = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_silos
		name = GENERIC_second_academy_missile_bureau_sfo_silos
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_tel }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = 2 y = 2 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		production_bonus = { production_cost_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_nav
		name = GENERIC_second_academy_missile_bureau_sfo_nav
		icon = GFX_generic_mio_trait_icon_air_agility

		any_parent = {
			GENERIC_second_academy_missile_bureau_sfo_mirv
			GENERIC_second_academy_missile_bureau_sfo_megaton
		}

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = -1 y = 3 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		equipment_bonus = { air_agility = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_reentry
		name = GENERIC_second_academy_missile_bureau_sfo_reentry
		icon = GFX_generic_mio_trait_icon_maximum_speed

		any_parent = {
			GENERIC_second_academy_missile_bureau_sfo_mirv
			GENERIC_second_academy_missile_bureau_sfo_megaton
		}

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

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		equipment_bonus = { maximum_speed = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_assembly
		name = GENERIC_second_academy_missile_bureau_sfo_assembly
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_penetration }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = 1 y = 3 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		production_bonus = { production_capacity_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_construction
		name = GENERIC_second_academy_missile_bureau_sfo_construction
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_silos }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = 2 y = 3 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		production_bonus = { production_resource_need_factor = -0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_command
		name = GENERIC_second_academy_missile_bureau_sfo_command
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_reentry }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = 0 y = 4 }

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_design_team_assign_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_sfo_triad
		name = GENERIC_second_academy_missile_bureau_sfo_triad
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_second_academy_missile_bureau_sfo_command }

		relative_position_id = GENERIC_second_academy_missile_bureau_sfo_rocket_forces
		position = { x = 0 y = 5 }

		limit_to_equipment_type = {
			ballistic_missile_equipment
			nuclear_missile_equipment
		}

		equipment_bonus = { build_cost_ic = -0.06 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_research_wing
		name = GENERIC_second_academy_missile_bureau_bpo_research_wing
		icon = GFX_generic_mio_trait_icon_maximum_speed

		position = { x = 8 y = 0 }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		equipment_bonus = { maximum_speed = 0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_second_academy_missile_bureau_bpo_research_wing
					bonus = 0.15
					uses = 1
					category = CAT_hypersonic_cruise_missiles
				} hidden_effect = { rq_eb_5f7703d105 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_scramjet
		name = GENERIC_second_academy_missile_bureau_bpo_scramjet
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_research_wing }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = -1 y = 1 }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		equipment_bonus = { maximum_speed = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_waverider
		name = GENERIC_second_academy_missile_bureau_bpo_waverider
		icon = GFX_generic_mio_trait_icon_air_agility

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_research_wing }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = 1 y = 1 }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		equipment_bonus = { air_agility = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_boost_phase
		name = GENERIC_second_academy_missile_bureau_bpo_boost_phase
		icon = GFX_generic_mio_trait_icon_air_range

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_research_wing }

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

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		equipment_bonus = { air_range = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_thermal
		name = GENERIC_second_academy_missile_bureau_bpo_thermal
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_scramjet }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = -1 y = 2 }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		equipment_bonus = { reliability = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_plasma
		name = GENERIC_second_academy_missile_bureau_bpo_plasma
		icon = GFX_generic_mio_trait_icon_air_defence

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_waverider }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = 1 y = 2 }

		limit_to_equipment_type = {
			mothership_equipment
			mothership_naval_bomber_airframe
			mothership_strike_airframe
		}

		equipment_bonus = { air_defence = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_fab
		name = GENERIC_second_academy_missile_bureau_bpo_fab
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_boost_phase }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = 0 y = 2 }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		production_bonus = {
			production_cost_factor = -0.10
			production_resource_penalty_factor = -0.10
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_mothership
		name = GENERIC_second_academy_missile_bureau_bpo_mothership
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_thermal }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = -1 y = 3 }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		equipment_bonus = { air_range = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_test_range
		name = GENERIC_second_academy_missile_bureau_bpo_test_range
		icon = GFX_generic_mio_trait_icon_anti_air_attack

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_plasma }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = 1 y = 3 }

		limit_to_equipment_type = {
			mothership_equipment
			mothership_naval_bomber_airframe
			mothership_strike_airframe
		}

		equipment_bonus = { air_attack = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_tungsten
		name = GENERIC_second_academy_missile_bureau_bpo_tungsten
		icon = GFX_generic_mio_trait_icon_air_ground_attack

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_mothership }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = -1 y = 4 }

		mutually_exclusive = { GENERIC_second_academy_missile_bureau_bpo_dual_use }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		equipment_bonus = { air_ground_attack = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_dual_use
		name = GENERIC_second_academy_missile_bureau_bpo_dual_use
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_test_range }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = 1 y = 4 }

		mutually_exclusive = { GENERIC_second_academy_missile_bureau_bpo_tungsten }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_quick_reaction
		name = GENERIC_second_academy_missile_bureau_bpo_quick_reaction
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_fab }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = 0 y = 5 }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		production_bonus = { production_capacity_factor = 0.10 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_compartmented
		name = GENERIC_second_academy_missile_bureau_bpo_compartmented
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_quick_reaction }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = 0 y = 6 }

		organization_modifier = {
			military_industrial_organization_size_up_requirement = -0.10
			military_industrial_organization_research_bonus = 0.04
			military_industrial_organization_funds_gain = 0.06
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_second_academy_missile_bureau_bpo_surprise
		name = GENERIC_second_academy_missile_bureau_bpo_surprise
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_second_academy_missile_bureau_bpo_compartmented }

		relative_position_id = GENERIC_second_academy_missile_bureau_bpo_research_wing
		position = { x = 0 y = 7 }

		limit_to_equipment_type = {
			hypersonic_missile_equipment
			mothership_equipment
			mothership_strike_airframe
			mothership_naval_bomber_airframe
		}

		equipment_bonus = { build_cost_ic = -0.06 }

		production_bonus = { production_efficiency_gain_factor = 0.10 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_halland_civic_engineering_group = {
	allowed = { always = yes }
	name = GENERIC_halland_civic_engineering_group_name
	icon = GFX_idea_company_halland

	task_capacity = 15

	visible = {
		FROM = {
			OR = {
				has_country_flag = halland_civic_engineering_group_unlocked
				GENERIC_halland_civic_engineering_group_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = halland_civic_engineering_group_unlocked } }
			}
			FROM = { has_country_flag = halland_civic_engineering_group_unlocked }
		}
	}

	equipment_type = {
		convoy
		support_ship_hull
		repair_ship_hull
		train_equipment
		mio_cat_all_utils
	}

	research_categories = {
		CAT_construction
		CAT_infrastructure
		CAT_fortifications
		CAT_nanofibers
	}

	initial_trait = {
		name = GENERIC_halland_civic_engineering_group_trait

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_design_team_assign_cost = -0.10
		}
	}

	trait = {
		token = GENERIC_halland_logistics_charter
		name = GENERIC_halland_logistics_charter
		icon = GFX_generic_mio_trait_icon_funds

		position = { x = 1 y = 0 }

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.04
			military_industrial_organization_research_bonus = 0.03
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_halland_logistics_charter
					bonus = 0.10
					uses = 1
					category = CAT_infrastructure
				} hidden_effect = { rq_eb_08441ce52a = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_valmor_rail
		name = GENERIC_halland_valmor_rail
		icon = GFX_generic_mio_trait_icon_efficiency_cap

		all_parents = { GENERIC_halland_logistics_charter }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_halland_logistics_charter

		mutually_exclusive = { GENERIC_halland_skolderhaven_line }

		limit_to_equipment_type = { train_equipment }

		equipment_bonus = { build_cost_ic = -0.05 }

		production_bonus = { production_efficiency_cap_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_rail_sea_interchange
		name = GENERIC_halland_rail_sea_interchange
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_halland_logistics_charter }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_halland_logistics_charter

		limit_to_equipment_type = {
			train_equipment
			convoy
		}

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_skolderhaven_line
		name = GENERIC_halland_skolderhaven_line
		icon = GFX_generic_mio_trait_icon_convoy_reliability

		all_parents = { GENERIC_halland_logistics_charter }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_halland_logistics_charter

		mutually_exclusive = { GENERIC_halland_valmor_rail }

		limit_to_equipment_type = { convoy }

		equipment_bonus = {
			reliability = 0.08
			naval_speed = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_vretner_locomotive
		name = GENERIC_halland_vretner_locomotive
		icon = GFX_generic_mio_trait_icon_efficiency_gain

		all_parents = { GENERIC_halland_valmor_rail }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_halland_logistics_charter

		limit_to_equipment_type = { train_equipment }

		production_bonus = { production_efficiency_gain_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_intermodal_doctrine
		name = GENERIC_halland_intermodal_doctrine
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_halland_valmor_rail
			GENERIC_halland_rail_sea_interchange
			GENERIC_halland_skolderhaven_line
		}

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

		limit_to_equipment_type = {
			train_equipment
			convoy
		}

		production_bonus = { production_cost_factor = -0.05 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_kranmeer_route
		name = GENERIC_halland_kranmeer_route
		icon = GFX_generic_mio_trait_icon_convoy_buildcost

		all_parents = { GENERIC_halland_skolderhaven_line }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_halland_logistics_charter

		limit_to_equipment_type = { convoy }

		equipment_bonus = {
			build_cost_ic = -0.06
			max_organisation = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_karlundbro_network
		name = GENERIC_halland_karlundbro_network
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_halland_vretner_locomotive }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_halland_logistics_charter

		limit_to_equipment_type = { train_equipment }

		production_bonus = { production_capacity_factor = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_dual_logistics_hub
		name = GENERIC_halland_dual_logistics_hub
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_halland_intermodal_doctrine }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_halland_logistics_charter

		organization_modifier = {
			military_industrial_organization_size_up_requirement = -0.10
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_nemfurn_corridor
		name = GENERIC_halland_nemfurn_corridor
		icon = GFX_generic_mio_trait_icon_convoy_resources

		all_parents = { GENERIC_halland_kranmeer_route }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_halland_logistics_charter

		limit_to_equipment_type = { convoy }

		production_bonus = { production_resource_need_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_solbrand_ferry
		name = GENERIC_halland_solbrand_ferry
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_halland_karlundbro_network }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_halland_logistics_charter

		mutually_exclusive = { GENERIC_halland_houtmeer_freight }

		limit_to_equipment_type = { train_equipment }

		equipment_bonus = { build_cost_ic = -0.05 }

		production_bonus = { production_capacity_factor = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_houtmeer_freight
		name = GENERIC_halland_houtmeer_freight
		icon = GFX_generic_mio_trait_icon_convoy_reliability

		all_parents = { GENERIC_halland_nemfurn_corridor }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_halland_logistics_charter

		mutually_exclusive = { GENERIC_halland_solbrand_ferry }

		limit_to_equipment_type = { convoy }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_north_sea_chain
		name = GENERIC_halland_north_sea_chain
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_halland_solbrand_ferry
			GENERIC_halland_houtmeer_freight
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_halland_logistics_charter

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_supply_backbone
		name = GENERIC_halland_supply_backbone
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_halland_north_sea_chain }

		position = { x = 0 y = 7 }
		relative_position_id = GENERIC_halland_logistics_charter

		limit_to_equipment_type = {
			train_equipment
			convoy
		}

		production_bonus = { production_capacity_factor = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				random_owned_controlled_state = {
					limit = {
						is_capital = no
						free_building_slots = { building = arms_factory size > 0 include_locked = no }
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_veerzijp_yard
		name = GENERIC_halland_veerzijp_yard
		icon = GFX_generic_mio_trait_icon_design

		position = { x = 5 y = 0 }

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_halland_veerzijp_yard
					bonus = 0.10
					uses = 1
					category = CAT_construction
				} hidden_effect = { rq_eb_ee5c00f4a7 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_brinkmet_tender
		name = GENERIC_halland_brinkmet_tender
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_halland_veerzijp_yard }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		mutually_exclusive = { GENERIC_halland_krommerdijk_drydock }

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		equipment_bonus = {
			reliability = 0.07
			build_cost_ic = -0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_dockland_reform
		name = GENERIC_halland_dockland_reform
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_halland_veerzijp_yard }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_krommerdijk_drydock
		name = GENERIC_halland_krommerdijk_drydock
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = { GENERIC_halland_veerzijp_yard }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		mutually_exclusive = { GENERIC_halland_brinkmet_tender }

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		equipment_bonus = {
			build_cost_ic = -0.08
			max_strength = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_stoffel_platform
		name = GENERIC_halland_stoffel_platform
		icon = GFX_generic_mio_trait_icon_naval_speed

		all_parents = { GENERIC_halland_brinkmet_tender }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		equipment_bonus = { naval_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_rykendal_vessel
		name = GENERIC_halland_rykendal_vessel
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = {
			GENERIC_halland_brinkmet_tender
			GENERIC_halland_dockland_reform
			GENERIC_halland_krommerdijk_drydock
		}

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

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		production_bonus = { production_cost_factor = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_glenshop_repair
		name = GENERIC_halland_glenshop_repair
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_halland_krommerdijk_drydock }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		equipment_bonus = { reliability = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_valhammar_tender
		name = GENERIC_halland_valhammar_tender
		icon = GFX_generic_mio_trait_icon_surface_detection

		all_parents = { GENERIC_halland_stoffel_platform }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		equipment_bonus = { surface_detection = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_norderhof_yard
		name = GENERIC_halland_norderhof_yard
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_halland_rykendal_vessel }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_rietpolder_dock
		name = GENERIC_halland_rietpolder_dock
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_halland_glenshop_repair }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		production_bonus = { production_resource_need_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_bergreet_reform
		name = GENERIC_halland_bergreet_reform
		icon = GFX_generic_mio_trait_icon_unique

		any_parent = {
			GENERIC_halland_valhammar_tender
			GENERIC_halland_nemfurn_corridor
		}

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		mutually_exclusive = { GENERIC_halland_fjorbrook_works }

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		equipment_bonus = { max_strength = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_fjorbrook_works
		name = GENERIC_halland_fjorbrook_works
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_halland_rietpolder_dock }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		mutually_exclusive = { GENERIC_halland_bergreet_reform }

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		equipment_bonus = { build_cost_ic = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_maritime_heritage
		name = GENERIC_halland_maritime_heritage
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = {
			GENERIC_halland_bergreet_reform
			GENERIC_halland_fjorbrook_works
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_halland_veerzijp_yard

		limit_to_equipment_type = {
			support_ship_hull
			repair_ship_hull
		}

		equipment_bonus = { reliability = 0.05 }

		production_bonus = { production_capacity_factor = 0.04 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_civic_works_charter
		name = GENERIC_halland_civic_works_charter
		icon = GFX_generic_mio_trait_icon_design

		position = { x = 8 y = 0 }

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_halland_civic_works_charter
					bonus = 0.10
					uses = 1
					category = CAT_fortifications
				} hidden_effect = { rq_eb_603489c651 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_thorenburg_engineer
		name = GENERIC_halland_thorenburg_engineer
		icon = GFX_generic_mio_trait_icon_util_reliability

		all_parents = { GENERIC_halland_civic_works_charter }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_halland_civic_works_charter

		mutually_exclusive = { GENERIC_halland_hellersburg_platform }

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = {
			reliability = 0.07
			build_cost_ic = -0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_dual_use_doctrine
		name = GENERIC_halland_dual_use_doctrine
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_halland_civic_works_charter }

		position = { x = 0 y = 2 }
		relative_position_id = GENERIC_halland_civic_works_charter

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.03
			military_industrial_organization_size_up_requirement = -0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_hellersburg_platform
		name = GENERIC_halland_hellersburg_platform
		icon = GFX_generic_mio_trait_icon_util_defense

		all_parents = { GENERIC_halland_civic_works_charter }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_halland_civic_works_charter

		mutually_exclusive = { GENERIC_halland_thorenburg_engineer }

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = {
			hardness = 0.06
			defense = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_hopsveld_recovery
		name = GENERIC_halland_hopsveld_recovery
		icon = GFX_generic_mio_trait_icon_util_speed

		all_parents = { GENERIC_halland_thorenburg_engineer }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_halland_civic_works_charter

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = { maximum_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_civic_alliance
		name = GENERIC_halland_civic_alliance
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_halland_thorenburg_engineer
			GENERIC_halland_dual_use_doctrine
			GENERIC_halland_hellersburg_platform
		}

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

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_waaldepot_works
		name = GENERIC_halland_waaldepot_works
		icon = GFX_generic_mio_trait_icon_util_breakthrough

		all_parents = { GENERIC_halland_hellersburg_platform }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_halland_civic_works_charter

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = { breakthrough = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_snebjork_forge
		name = GENERIC_halland_snebjork_forge
		icon = GFX_generic_mio_trait_icon_util_efficiency_gain

		all_parents = { GENERIC_halland_hopsveld_recovery }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_halland_civic_works_charter

		limit_to_equipment_type = { mio_cat_all_utils }

		production_bonus = { production_efficiency_gain_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_infrastructure_grants
		name = GENERIC_halland_infrastructure_grants
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_halland_civic_alliance }

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_halland_civic_works_charter

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.15 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_vlaanbrugge_armorworks
		name = GENERIC_halland_vlaanbrugge_armorworks
		icon = GFX_generic_mio_trait_icon_util

		all_parents = { GENERIC_halland_waaldepot_works }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_halland_civic_works_charter

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = {
			hard_attack = 0.05
			hardness = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_roermeer_bureau
		name = GENERIC_halland_roermeer_bureau
		icon = GFX_generic_mio_trait_icon_util

		any_parent = {
			GENERIC_halland_snebjork_forge
			GENERIC_halland_rietpolder_dock
		}

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_halland_civic_works_charter

		mutually_exclusive = { GENERIC_halland_dunninge_bureau }

		limit_to_equipment_type = { mio_cat_all_utils }

		production_bonus = { production_capacity_factor = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_dunninge_bureau
		name = GENERIC_halland_dunninge_bureau
		icon = GFX_generic_mio_trait_icon_util_buildcost

		all_parents = { GENERIC_halland_vlaanbrugge_armorworks }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_halland_civic_works_charter

		mutually_exclusive = { GENERIC_halland_roermeer_bureau }

		limit_to_equipment_type = { mio_cat_all_utils }

		production_bonus = { production_cost_factor = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_halland_civil_military_pact
		name = GENERIC_halland_civil_military_pact
		icon = GFX_generic_mio_trait_icon_util_reliability

		any_parent = {
			GENERIC_halland_roermeer_bureau
			GENERIC_halland_dunninge_bureau
		}

		position = { x = 0 y = 6 }
		relative_position_id = GENERIC_halland_civic_works_charter

		limit_to_equipment_type = { mio_cat_all_utils }

		equipment_bonus = { reliability = 0.05 }

		production_bonus = { production_efficiency_cap_factor = 0.08 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_halland_civil_military_pact
					bonus = 0.10
					uses = 1
					category = CAT_nanofibers
				} hidden_effect = { rq_eb_43f5ecaad8 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_compagnie_aeronatique_darmement = {
	allowed = { always = yes }
	name = GENERIC_compagnie_aeronatique_darmement_name
	icon = GFX_idea_Company_atlantique

	visible = {
		FROM = {
			OR = {
				has_country_flag = compagnie_aeronatique_darmement_unlocked
				GENERIC_compagnie_aeronatique_darmement_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = compagnie_aeronatique_darmement_unlocked } }
			}
			FROM = { has_country_flag = compagnie_aeronatique_darmement_unlocked }
		}
	}

	equipment_type = { guided_missile_equipment }

	research_categories = {
		CAT_air_weapons
		CAT_air_to_air_weapons
		CAT_air_to_ground_weapons
		CAT_air_to_naval_weapons
		CAT_air_countermeasures
		CAT_targeting_pods
		CAT_air_stealth
		CAT_cruise_missiles
	}

	initial_trait = {
		name = GENERIC_compagnie_aeronatique_darmement_trait

		equipment_bonus = { reliability = 0.04 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_strike_heritage
		name = GENERIC_compagnie_aeronatique_darmement_strike_heritage
		icon = GFX_generic_mio_trait_icon_air_ground_attack

		position = { x = 1 y = 0 }

		equipment_bonus = { air_ground_attack = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "By Blood Alone" }
					add_tech_bonus = {
						name = GENERIC_compagnie_aeronatique_darmement_strike_heritage
						bonus = 0.10
						uses = 1
						category = CAT_air_to_ground_weapons
					} hidden_effect = { rq_eb_21f26077da = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_compagnie_aeronatique_darmement_strike_heritage
						bonus = 0.10
						uses = 1
						category = CAT_aircraft
					} hidden_effect = { rq_eb_ce6880c1df = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_scalp_eg_foundation
		name = GENERIC_compagnie_aeronatique_darmement_scalp_eg_foundation
		icon = GFX_generic_mio_trait_icon_air_range

		all_parents = { GENERIC_compagnie_aeronatique_darmement_strike_heritage }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_strike_heritage
		position = { x = -1 y = 1 }

		mutually_exclusive = { GENERIC_compagnie_aeronatique_darmement_apache_antirunway }

		equipment_bonus = { air_range = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_apache_antirunway
		name = GENERIC_compagnie_aeronatique_darmement_apache_antirunway
		icon = GFX_generic_mio_trait_icon_air_ground_attack

		all_parents = { GENERIC_compagnie_aeronatique_darmement_strike_heritage }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_strike_heritage
		position = { x = 1 y = 1 }

		mutually_exclusive = { GENERIC_compagnie_aeronatique_darmement_scalp_eg_foundation }

		equipment_bonus = {
			air_ground_attack = 0.08
			reliability = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_exocet_lineage
		name = GENERIC_compagnie_aeronatique_darmement_exocet_lineage
		icon = GFX_generic_mio_trait_icon_naval_strike_targetting

		all_parents = { GENERIC_compagnie_aeronatique_darmement_scalp_eg_foundation }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_strike_heritage
		position = { x = -1 y = 2 }

		equipment_bonus = { naval_strike_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_storm_shadow_blueprint
		name = GENERIC_compagnie_aeronatique_darmement_storm_shadow_blueprint
		icon = GFX_generic_mio_trait_icon_air_range

		any_parent = {
			GENERIC_compagnie_aeronatique_darmement_scalp_eg_foundation
			GENERIC_compagnie_aeronatique_darmement_apache_antirunway
		}

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_strike_heritage
		position = { x = 0 y = 2 }

		equipment_bonus = { air_range = 0.06 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_marte_partnership
		name = GENERIC_compagnie_aeronatique_darmement_marte_partnership
		icon = GFX_generic_mio_trait_icon_naval_strike_attack

		all_parents = { GENERIC_compagnie_aeronatique_darmement_apache_antirunway }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_strike_heritage
		position = { x = 1 y = 2 }

		equipment_bonus = {
			naval_strike_attack = 0.06
			reliability = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_mdcn_standoff
		name = GENERIC_compagnie_aeronatique_darmement_mdcn_standoff
		icon = GFX_generic_mio_trait_icon_strategic_attack

		all_parents = { GENERIC_compagnie_aeronatique_darmement_exocet_lineage }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_strike_heritage
		position = { x = -1 y = 3 }

		equipment_bonus = {
			air_bombing = 0.08
			air_range = 0.04
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_compagnie_aeronatique_darmement_mdcn_standoff
					bonus = 0.10
					uses = 1
					category = CAT_cruise_missiles
				} hidden_effect = { rq_eb_c4a112cc93 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_otomat_evolution
		name = GENERIC_compagnie_aeronatique_darmement_otomat_evolution
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = {
			GENERIC_compagnie_aeronatique_darmement_storm_shadow_blueprint
			GENERIC_compagnie_aeronatique_darmement_damocles_tgp
		}

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

		equipment_bonus = { naval_strike_attack = 0.06 }

		production_bonus = { production_capacity_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_meteor_derivative
		name = GENERIC_compagnie_aeronatique_darmement_meteor_derivative
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_compagnie_aeronatique_darmement_marte_partnership }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_strike_heritage
		position = { x = 1 y = 3 }

		equipment_bonus = {
			air_ground_attack = 0.08
			maximum_speed = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
		name = GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
		icon = GFX_generic_mio_trait_icon_air_defence

		position = { x = 4 y = 0 }

		equipment_bonus = { air_agility = 0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "By Blood Alone" }
					add_tech_bonus = {
						name = GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
						bonus = 0.10
						uses = 1
						category = CAT_air_countermeasures
					} hidden_effect = { rq_eb_8753dba0a1 = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
						bonus = 0.10
						uses = 1
						category = CAT_aircraft
					} hidden_effect = { rq_eb_ce6880c1df = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_damocles_tgp
		name = GENERIC_compagnie_aeronatique_darmement_damocles_tgp
		icon = GFX_generic_mio_trait_icon_air_ground_attack

		all_parents = { GENERIC_compagnie_aeronatique_darmement_pod_consortium_root }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
		position = { x = -1 y = 1 }

		mutually_exclusive = { GENERIC_compagnie_aeronatique_darmement_litening_coop }

		equipment_bonus = {
			naval_strike_targetting = 0.06
			air_ground_attack = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_litening_coop
		name = GENERIC_compagnie_aeronatique_darmement_litening_coop
		icon = GFX_generic_mio_trait_icon_naval_strike_targetting

		all_parents = { GENERIC_compagnie_aeronatique_darmement_pod_consortium_root }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
		position = { x = 1 y = 1 }

		mutually_exclusive = { GENERIC_compagnie_aeronatique_darmement_damocles_tgp }

		equipment_bonus = { naval_strike_targetting = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_talios_evolution
		name = GENERIC_compagnie_aeronatique_darmement_talios_evolution
		icon = GFX_generic_mio_trait_icon_naval_strike_targetting

		all_parents = { GENERIC_compagnie_aeronatique_darmement_pod_consortium_root }

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

		equipment_bonus = { naval_strike_targetting = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_spectra_suite
		name = GENERIC_compagnie_aeronatique_darmement_spectra_suite
		icon = GFX_generic_mio_trait_icon_air_defence

		all_parents = { GENERIC_compagnie_aeronatique_darmement_damocles_tgp }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
		position = { x = -1 y = 2 }

		equipment_bonus = { air_agility = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_elettronica_ew
		name = GENERIC_compagnie_aeronatique_darmement_elettronica_ew
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_compagnie_aeronatique_darmement_litening_coop }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
		position = { x = 1 y = 2 }

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.04
			military_industrial_organization_task_capacity = 1
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_active_jamming
		name = GENERIC_compagnie_aeronatique_darmement_active_jamming
		icon = GFX_generic_mio_trait_icon_air_defence

		all_parents = { GENERIC_compagnie_aeronatique_darmement_talios_evolution }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
		position = { x = 0 y = 2 }

		equipment_bonus = { air_agility = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_pod_production_line
		name = GENERIC_compagnie_aeronatique_darmement_pod_production_line
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = {
			GENERIC_compagnie_aeronatique_darmement_spectra_suite
			GENERIC_compagnie_aeronatique_darmement_elettronica_ew
			GENERIC_compagnie_aeronatique_darmement_active_jamming
		}

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

		equipment_bonus = { build_cost_ic = -0.05 }

		production_bonus = { production_efficiency_gain_factor = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_lowobservable_core
		name = GENERIC_compagnie_aeronatique_darmement_lowobservable_core
		icon = GFX_generic_mio_trait_icon_weight

		position = { x = 8 y = 0 }

		equipment_bonus = { maximum_speed = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "By Blood Alone" }
					add_tech_bonus = {
						name = GENERIC_compagnie_aeronatique_darmement_lowobservable_core
						bonus = 0.10
						uses = 1
						category = CAT_air_stealth
					} hidden_effect = { rq_eb_82aeed8e34 = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_compagnie_aeronatique_darmement_lowobservable_core
						bonus = 0.10
						uses = 1
						category = CAT_aircraft
					} hidden_effect = { rq_eb_ce6880c1df = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_ceramic_coating
		name = GENERIC_compagnie_aeronatique_darmement_ceramic_coating
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_compagnie_aeronatique_darmement_lowobservable_core }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_lowobservable_core
		position = { x = -1 y = 1 }

		mutually_exclusive = { GENERIC_compagnie_aeronatique_darmement_metamaterial_panels }

		equipment_bonus = { maximum_speed = 0.05 }

		production_bonus = { production_resource_need_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_metamaterial_panels
		name = GENERIC_compagnie_aeronatique_darmement_metamaterial_panels
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_compagnie_aeronatique_darmement_lowobservable_core }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_lowobservable_core
		position = { x = 1 y = 1 }

		mutually_exclusive = { GENERIC_compagnie_aeronatique_darmement_ceramic_coating }

		equipment_bonus = { maximum_speed = 0.04 }

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_crossplatform_adapter
		name = GENERIC_compagnie_aeronatique_darmement_crossplatform_adapter
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = {
			GENERIC_compagnie_aeronatique_darmement_lowobservable_core
			GENERIC_compagnie_aeronatique_darmement_pod_consortium_root
		}

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

		equipment_bonus = { build_cost_ic = -0.04 }

		production_bonus = { production_cost_factor = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_american_jet_fitment
		name = GENERIC_compagnie_aeronatique_darmement_american_jet_fitment
		icon = GFX_generic_mio_trait_icon_design

		all_parents = {
			GENERIC_compagnie_aeronatique_darmement_crossplatform_adapter
			GENERIC_compagnie_aeronatique_darmement_scalp_eg_foundation
		}

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_lowobservable_core
		position = { x = -1 y = 2 }

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.20 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_european_certification
		name = GENERIC_compagnie_aeronatique_darmement_european_certification
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_compagnie_aeronatique_darmement_crossplatform_adapter }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_lowobservable_core
		position = { x = 1 y = 2 }

		organization_modifier = {
			military_industrial_organization_design_team_assign_cost = -0.20
			military_industrial_organization_design_team_change_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_modular_interface
		name = GENERIC_compagnie_aeronatique_darmement_modular_interface
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_compagnie_aeronatique_darmement_crossplatform_adapter }

		relative_position_id = GENERIC_compagnie_aeronatique_darmement_lowobservable_core
		position = { x = 0 y = 2 }

		equipment_bonus = { air_range = 0.05 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_compagnie_aeronatique_darmement_global_supply_chain
		name = GENERIC_compagnie_aeronatique_darmement_global_supply_chain
		icon = GFX_generic_mio_trait_icon_production_capacity

		any_parent = {
			GENERIC_compagnie_aeronatique_darmement_american_jet_fitment
			GENERIC_compagnie_aeronatique_darmement_european_certification
			GENERIC_compagnie_aeronatique_darmement_modular_interface
		}

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

		production_bonus = {
			production_capacity_factor = 0.10
			production_resource_penalty_factor = -0.10
		}

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_helitech_avionique = {
	allowed = { always = yes }
	name = GENERIC_helitech_avionique_name
	icon = GFX_idea_company_helitech_avionique

	visible = {
		FROM = {
			OR = {
				has_country_flag = helitech_avionique_unlocked
				GENERIC_helitech_avionique_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = helitech_avionique_unlocked } }
			}
			FROM = { has_country_flag = helitech_avionique_unlocked }
		}
	}

	equipment_type = {
		heavy_tank_chassis
		heavy_tank_amphibious_chassis
	}

	research_categories = {
		CAT_helicopters
		CAT_wing_designs
	}

	tree_header_text = {
		text = GENERIC_helitech_avionique_tree_header_rotor
		x = 1
	}

	tree_header_text = {
		text = GENERIC_helitech_avionique_tree_header_armament
		x = 4
	}

	tree_header_text = {
		text = GENERIC_helitech_avionique_tree_header_avionics
		x = 8
	}

	initial_trait = {
		name = GENERIC_helitech_avionique_trait

		organization_modifier = {
			military_industrial_organization_design_team_assign_cost = -0.15
			military_industrial_organization_funds_gain = 0.05
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_rotor_composite_blades
		name = GENERIC_helitech_avionique_rotor_composite_blades
		icon = GFX_generic_mio_trait_icon_reliability

		position = { x = 1 y = 0 }

		equipment_bonus = { reliability = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_helitech_avionique_rotor_composite_blades
					bonus = 0.10
					uses = 1
					category = CAT_helicopters
				} hidden_effect = { rq_eb_699b159743 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_bearingless_hub
		name = GENERIC_helitech_avionique_bearingless_hub
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_helitech_avionique_rotor_composite_blades }

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = -1 y = 1 }

		equipment_bonus = { reliability = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_active_rotor_control
		name = GENERIC_helitech_avionique_active_rotor_control
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_helitech_avionique_rotor_composite_blades }

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = 1 y = 1 }

		equipment_bonus = { maximum_speed = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_rotor_damping_suite
		name = GENERIC_helitech_avionique_rotor_damping_suite
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = {
			GENERIC_helitech_avionique_bearingless_hub
			GENERIC_helitech_avionique_active_rotor_control
		}

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = 0 y = 2 }

		equipment_bonus = { defense = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_tilt_tip_blade
		name = GENERIC_helitech_avionique_tilt_tip_blade
		icon = GFX_generic_mio_trait_icon_attackheli_speed

		all_parents = { GENERIC_helitech_avionique_rotor_damping_suite }

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = -1 y = 3 }

		mutually_exclusive = { GENERIC_helitech_avionique_wide_chord_blade }

		limit_to_equipment_type = { heavy_tank_chassis }

		equipment_bonus = { maximum_speed = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_wide_chord_blade
		name = GENERIC_helitech_avionique_wide_chord_blade
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_helitech_avionique_rotor_damping_suite }

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = 1 y = 3 }

		mutually_exclusive = { GENERIC_helitech_avionique_tilt_tip_blade }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { breakthrough = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_twin_engine_upgrade
		name = GENERIC_helitech_avionique_twin_engine_upgrade
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = {
			GENERIC_helitech_avionique_tilt_tip_blade
			GENERIC_helitech_avionique_wide_chord_blade
		}

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = 0 y = 4 }

		equipment_bonus = { reliability = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_titanium_gearbox
		name = GENERIC_helitech_avionique_titanium_gearbox
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_helitech_avionique_twin_engine_upgrade }

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = -1 y = 5 }

		equipment_bonus = { build_cost_ic = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_modular_drivetrain
		name = GENERIC_helitech_avionique_modular_drivetrain
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_helitech_avionique_twin_engine_upgrade }

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = 1 y = 5 }

		production_bonus = { production_capacity_factor = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_crashworthy_structure
		name = GENERIC_helitech_avionique_crashworthy_structure
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = {
			GENERIC_helitech_avionique_titanium_gearbox
			GENERIC_helitech_avionique_modular_drivetrain
		}

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = 0 y = 6 }

		equipment_bonus = { hardness = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_snap_in_transmission
		name = GENERIC_helitech_avionique_snap_in_transmission
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_helitech_avionique_crashworthy_structure }

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = -1 y = 7 }

		equipment_bonus = { build_cost_ic = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_long_life_bearings
		name = GENERIC_helitech_avionique_long_life_bearings
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_helitech_avionique_crashworthy_structure }

		relative_position_id = GENERIC_helitech_avionique_rotor_composite_blades
		position = { x = 1 y = 7 }

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.04
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_modular_weapons_bus
		name = GENERIC_helitech_avionique_modular_weapons_bus
		icon = GFX_generic_mio_trait_icon_transport_heli

		position = { x = 4 y = 0 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { hard_attack = 0.10 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_helitech_avionique_modular_weapons_bus
					bonus = 0.10
					uses = 1
					category = CAT_helicopters
				} hidden_effect = { rq_eb_699b159743 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_chin_gun_turret
		name = GENERIC_helitech_avionique_chin_gun_turret
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_helitech_avionique_modular_weapons_bus }

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = -1 y = 1 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { soft_attack = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_chain_gun_mount
		name = GENERIC_helitech_avionique_chain_gun_mount
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_helitech_avionique_modular_weapons_bus }

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = 1 y = 1 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { hard_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_hydra_rocket_pod
		name = GENERIC_helitech_avionique_hydra_rocket_pod
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = {
			GENERIC_helitech_avionique_chin_gun_turret
			GENERIC_helitech_avionique_chain_gun_mount
		}

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = 0 y = 2 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { soft_attack = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_tow_atgm_mount
		name = GENERIC_helitech_avionique_tow_atgm_mount
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_helitech_avionique_hydra_rocket_pod }

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = -1 y = 3 }

		mutually_exclusive = { GENERIC_helitech_avionique_hellfire_atgm_rack }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { hard_attack = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_hellfire_atgm_rack
		name = GENERIC_helitech_avionique_hellfire_atgm_rack
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_helitech_avionique_hydra_rocket_pod }

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = 1 y = 3 }

		mutually_exclusive = { GENERIC_helitech_avionique_tow_atgm_mount }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { breakthrough = 0.12 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_smart_pylon_bus
		name = GENERIC_helitech_avionique_smart_pylon_bus
		icon = GFX_generic_mio_trait_icon_transport_heli_buildcost

		any_parent = {
			GENERIC_helitech_avionique_tow_atgm_mount
			GENERIC_helitech_avionique_hellfire_atgm_rack
		}

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = 0 y = 4 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { build_cost_ic = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_fcs_integration
		name = GENERIC_helitech_avionique_fcs_integration
		icon = GFX_generic_mio_trait_icon_task

		all_parents = {
			GENERIC_helitech_avionique_smart_pylon_bus
			GENERIC_helitech_avionique_glass_cockpit_suite
		}

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = -1 y = 5 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { breakthrough = 0.08 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_gatling_upgrade
		name = GENERIC_helitech_avionique_gatling_upgrade
		icon = GFX_generic_mio_trait_icon_transport_heli_defense

		all_parents = { GENERIC_helitech_avionique_smart_pylon_bus }

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = 1 y = 5 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { defense = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_laser_designator
		name = GENERIC_helitech_avionique_laser_designator
		icon = GFX_generic_mio_trait_icon_transport_heli_armor

		all_parents = {
			GENERIC_helitech_avionique_fcs_integration
			GENERIC_helitech_avionique_gatling_upgrade
		}

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = 0 y = 6 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { hardness = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_export_turret_pack
		name = GENERIC_helitech_avionique_export_turret_pack
		icon = GFX_generic_mio_trait_icon_transport_heli_buildcost

		all_parents = { GENERIC_helitech_avionique_laser_designator }

		relative_position_id = GENERIC_helitech_avionique_modular_weapons_bus
		position = { x = 0 y = 7 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_glass_cockpit_suite
		name = GENERIC_helitech_avionique_glass_cockpit_suite
		icon = GFX_generic_mio_trait_icon_research

		position = { x = 8 y = 0 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				if = {
					limit = { has_dlc = "By Blood Alone" }
					add_tech_bonus = {
						name = GENERIC_helitech_avionique_glass_cockpit_suite
						bonus = 0.10
						uses = 1
						category = CAT_wing_designs
					} hidden_effect = { rq_eb_4fd3d38b68 = yes }
				}
				else = {
					add_tech_bonus = {
						name = GENERIC_helitech_avionique_glass_cockpit_suite
						bonus = 0.10
						uses = 1
						category = CAT_aircraft
					} hidden_effect = { rq_eb_ce6880c1df = yes }
				}
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_helmet_mounted_sight
		name = GENERIC_helitech_avionique_helmet_mounted_sight
		icon = GFX_generic_mio_trait_icon_transport_heli

		all_parents = { GENERIC_helitech_avionique_glass_cockpit_suite }

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = -1 y = 1 }

		limit_to_equipment_type = { heavy_tank_amphibious_chassis }

		equipment_bonus = { soft_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_grifo_radar_pod
		name = GENERIC_helitech_avionique_grifo_radar_pod
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_helitech_avionique_glass_cockpit_suite }

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = 1 y = 1 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_night_vision_suite
		name = GENERIC_helitech_avionique_night_vision_suite
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = {
			GENERIC_helitech_avionique_helmet_mounted_sight
			GENERIC_helitech_avionique_grifo_radar_pod
		}

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = 0 y = 2 }

		equipment_bonus = { defense = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_dircm_countermeasures
		name = GENERIC_helitech_avionique_dircm_countermeasures
		icon = GFX_generic_mio_trait_icon_armor_value

		all_parents = { GENERIC_helitech_avionique_night_vision_suite }

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = -1 y = 3 }

		mutually_exclusive = { GENERIC_helitech_avionique_mwe_chaff_flares }

		equipment_bonus = { hardness = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_mwe_chaff_flares
		name = GENERIC_helitech_avionique_mwe_chaff_flares
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_helitech_avionique_night_vision_suite }

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = 1 y = 3 }

		mutually_exclusive = { GENERIC_helitech_avionique_dircm_countermeasures }

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_data_link_suite
		name = GENERIC_helitech_avionique_data_link_suite
		icon = GFX_generic_mio_trait_icon_task

		any_parent = {
			GENERIC_helitech_avionique_dircm_countermeasures
			GENERIC_helitech_avionique_mwe_chaff_flares
		}

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = 0 y = 4 }

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_command_power = 10 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_falco_uav_interface
		name = GENERIC_helitech_avionique_falco_uav_interface
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_helitech_avionique_data_link_suite }

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = -1 y = 5 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_ew_jammer_pod
		name = GENERIC_helitech_avionique_ew_jammer_pod
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		all_parents = { GENERIC_helitech_avionique_data_link_suite }

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = 1 y = 5 }

		production_bonus = { production_cost_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_autonomous_mode
		name = GENERIC_helitech_avionique_autonomous_mode
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = {
			GENERIC_helitech_avionique_falco_uav_interface
			GENERIC_helitech_avionique_ew_jammer_pod
		}

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = 0 y = 6 }

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_networked_targeting
		name = GENERIC_helitech_avionique_networked_targeting
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_helitech_avionique_autonomous_mode }

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = -1 y = 7 }

		equipment_bonus = { maximum_speed = 0.08 }

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_helitech_avionique_avionics_heritage
		name = GENERIC_helitech_avionique_avionics_heritage
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_helitech_avionique_autonomous_mode }

		relative_position_id = GENERIC_helitech_avionique_glass_cockpit_suite
		position = { x = 1 y = 7 }

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_size_up_requirement = -0.10
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_western_orbital_systems_bureau = {
	allowed = { always = yes }
	name = GENERIC_western_orbital_systems_bureau_name
	icon = GFX_idea_company_orbital_systems

	task_capacity = 10

	visible = {
		FROM = {
			OR = {
				has_country_flag = western_orbital_systems_bureau_unlocked
				GENERIC_western_orbital_systems_bureau_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = western_orbital_systems_bureau_unlocked } }
			}
			FROM = { has_country_flag = western_orbital_systems_bureau_unlocked }
		}
	}

	equipment_type = {
		nuclear_ballistic_missile_equipment
		space_artillery_equipment_type
	}

	research_categories = {
		CAT_satellites
		CAT_space
		CAT_navigation_satellites
		CAT_internet
	}

	initial_trait = {
		name = GENERIC_western_orbital_systems_bureau_trait

		equipment_bonus = { reliability = 0.05 }

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_longhua_rocket
		name = GENERIC_western_orbital_systems_bureau_longhua_rocket
		icon = GFX_generic_mio_trait_icon_icbm_reliability

		position = { x = 2 y = 0 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = {
			reliability = 0.03
			air_range = 0.03
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_western_orbital_systems_bureau_longhua_rocket
					bonus = 0.15
					uses = 1
					category = CAT_space
				} hidden_effect = { rq_eb_e5e8bfdab7 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_tiegang_frame_foundry
		name = GENERIC_western_orbital_systems_bureau_tiegang_frame_foundry
		icon = GFX_generic_mio_trait_icon_icbm_buildcost

		all_parents = { GENERIC_western_orbital_systems_bureau_longhua_rocket }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = -2 y = 1 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = { build_cost_ic = -0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_inertial_gyro_reform
		name = GENERIC_western_orbital_systems_bureau_inertial_gyro_reform
		icon = GFX_generic_mio_trait_icon_icbm_agility

		all_parents = { GENERIC_western_orbital_systems_bureau_longhua_rocket }

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

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = { air_agility = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_hardened_silo_network
		name = GENERIC_western_orbital_systems_bureau_hardened_silo_network
		icon = GFX_generic_mio_trait_icon_icbm_defense

		all_parents = { GENERIC_western_orbital_systems_bureau_longhua_rocket }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = 1 y = 1 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = { air_agility = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_mobile_tel_pool
		name = GENERIC_western_orbital_systems_bureau_mobile_tel_pool
		icon = GFX_generic_mio_trait_icon_icbm

		all_parents = { GENERIC_western_orbital_systems_bureau_tiegang_frame_foundry }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = -2 y = 2 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = { maximum_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_strategic_rocket_academy
		name = GENERIC_western_orbital_systems_bureau_strategic_rocket_academy
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_western_orbital_systems_bureau_inertial_gyro_reform }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = 0 y = 2 }

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.04
			military_industrial_organization_design_team_assign_cost = -0.20
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 75 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_silo_dispersal_matrix
		name = GENERIC_western_orbital_systems_bureau_silo_dispersal_matrix
		icon = GFX_generic_mio_trait_icon_icbm_buildcost

		all_parents = { GENERIC_western_orbital_systems_bureau_hardened_silo_network }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = 1 y = 2 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		production_bonus = { production_cost_factor = -0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_solid_rocket_assembly
		name = GENERIC_western_orbital_systems_bureau_solid_rocket_assembly
		icon = GFX_generic_mio_trait_icon_production_capacity

		all_parents = { GENERIC_western_orbital_systems_bureau_mobile_tel_pool }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = -2 y = 3 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_caiying_solid_mirv
		name = GENERIC_western_orbital_systems_bureau_caiying_solid_mirv
		icon = GFX_generic_mio_trait_icon_icbm

		all_parents = { GENERIC_western_orbital_systems_bureau_strategic_rocket_academy }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = -1 y = 3 }

		mutually_exclusive = { GENERIC_western_orbital_systems_bureau_zhuanlong_liquid_heavy }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = { air_bombing = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_zhuanlong_liquid_heavy
		name = GENERIC_western_orbital_systems_bureau_zhuanlong_liquid_heavy
		icon = GFX_generic_mio_trait_icon_icbm

		all_parents = { GENERIC_western_orbital_systems_bureau_strategic_rocket_academy }

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

		mutually_exclusive = { GENERIC_western_orbital_systems_bureau_caiying_solid_mirv }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = { air_range = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_warhead_foundry_expansion
		name = GENERIC_western_orbital_systems_bureau_warhead_foundry_expansion
		icon = GFX_generic_mio_trait_icon_icbm_resources

		all_parents = { GENERIC_western_orbital_systems_bureau_silo_dispersal_matrix }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = 1 y = 3 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		production_bonus = {
			production_capacity_factor = 0.08
			production_resource_need_factor = -0.08
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_mass_production_cadre
		name = GENERIC_western_orbital_systems_bureau_mass_production_cadre
		icon = GFX_generic_mio_trait_icon_icbm_efficiency_gain

		all_parents = { GENERIC_western_orbital_systems_bureau_solid_rocket_assembly }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = -2 y = 4 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		production_bonus = {
			production_efficiency_gain_factor = 0.12
			production_efficiency_cap_factor = 0.08
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_decoy_penetration_package
		name = GENERIC_western_orbital_systems_bureau_decoy_penetration_package
		icon = GFX_generic_mio_trait_icon_icbm

		any_parent = {
			GENERIC_western_orbital_systems_bureau_caiying_solid_mirv
			GENERIC_western_orbital_systems_bureau_zhuanlong_liquid_heavy
		}

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = -1 y = 4 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = { maximum_speed = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_stockpile_disposition_plan
		name = GENERIC_western_orbital_systems_bureau_stockpile_disposition_plan
		icon = GFX_generic_mio_trait_icon_icbm_resources

		all_parents = { GENERIC_western_orbital_systems_bureau_warhead_foundry_expansion }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = 1 y = 4 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		production_bonus = { production_resource_penalty_factor = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_beigang_refit_pipeline
		name = GENERIC_western_orbital_systems_bureau_beigang_refit_pipeline
		icon = GFX_generic_mio_trait_icon_conversion_speed

		all_parents = { GENERIC_western_orbital_systems_bureau_mass_production_cadre }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = -2 y = 5 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		production_bonus = { production_conversion_speed_factor = 0.30 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_slbm_integration_programme
		name = GENERIC_western_orbital_systems_bureau_slbm_integration_programme
		icon = GFX_generic_mio_trait_icon_icbm

		all_parents = { GENERIC_western_orbital_systems_bureau_decoy_penetration_package }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = 0 y = 5 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = {
			air_range = 0.08
			naval_strike_attack = 0.06
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_mobile_command_relocation
		name = GENERIC_western_orbital_systems_bureau_mobile_command_relocation
		icon = GFX_generic_mio_trait_icon_design

		all_parents = { GENERIC_western_orbital_systems_bureau_stockpile_disposition_plan }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = 1 y = 5 }

		organization_modifier = {
			military_industrial_organization_industrial_manufacturer_assign_cost = -0.15
			military_industrial_organization_design_team_change_cost = -0.15
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_huolong_slbm_capstone
		name = GENERIC_western_orbital_systems_bureau_huolong_slbm_capstone
		icon = GFX_generic_mio_trait_icon_icbm_reliability

		all_parents = { GENERIC_western_orbital_systems_bureau_beigang_refit_pipeline }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = -2 y = 6 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = {
			air_bombing = 0.08
			reliability = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_fractional_orbit_bombardment
		name = GENERIC_western_orbital_systems_bureau_fractional_orbit_bombardment
		icon = GFX_generic_mio_trait_icon_icbm

		all_parents = { GENERIC_western_orbital_systems_bureau_slbm_integration_programme }

		relative_position_id = GENERIC_western_orbital_systems_bureau_longhua_rocket
		position = { x = 0 y = 6 }

		limit_to_equipment_type = { nuclear_ballistic_missile_equipment }

		equipment_bonus = {
			air_bombing = 0.10
			maximum_speed = 0.06
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		name = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		icon = GFX_generic_mio_trait_icon_reliability

		position = { x = 5 y = 0 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { reliability = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_western_orbital_systems_bureau_yuheng_orbital
					bonus = 0.10
					uses = 1
					category = CAT_satellites
				} hidden_effect = { rq_eb_b0fbd004d3 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_long_baseline_tracking
		name = GENERIC_western_orbital_systems_bureau_long_baseline_tracking
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_western_orbital_systems_bureau_yuheng_orbital }

		relative_position_id = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		position = { x = -1 y = 1 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { breakthrough = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_space_control_center
		name = GENERIC_western_orbital_systems_bureau_space_control_center
		icon = GFX_generic_mio_trait_icon_task

		all_parents = { GENERIC_western_orbital_systems_bureau_yuheng_orbital }

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

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_funds_gain = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_launch_telemetry_net
		name = GENERIC_western_orbital_systems_bureau_launch_telemetry_net
		icon = GFX_generic_mio_trait_icon_reliability

		all_parents = { GENERIC_western_orbital_systems_bureau_yuheng_orbital }

		relative_position_id = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		position = { x = 1 y = 1 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { reliability = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_anwei_imaging_satellite
		name = GENERIC_western_orbital_systems_bureau_anwei_imaging_satellite
		icon = GFX_generic_mio_trait_icon_soft_attack

		all_parents = { GENERIC_western_orbital_systems_bureau_long_baseline_tracking }

		relative_position_id = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		position = { x = -1 y = 2 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { soft_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_constellation_operations
		name = GENERIC_western_orbital_systems_bureau_constellation_operations
		icon = GFX_generic_mio_trait_icon_research

		all_parents = { GENERIC_western_orbital_systems_bureau_space_control_center }

		relative_position_id = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		position = { x = 0 y = 2 }

		organization_modifier = {
			military_industrial_organization_design_team_change_cost = -0.15
			military_industrial_organization_research_bonus = 0.03
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_daojin_nav_constellation
		name = GENERIC_western_orbital_systems_bureau_daojin_nav_constellation
		icon = GFX_generic_mio_trait_icon_unique

		all_parents = { GENERIC_western_orbital_systems_bureau_launch_telemetry_net }

		relative_position_id = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		position = { x = 1 y = 2 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { hard_attack = 0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_western_orbital_systems_bureau_daojin_nav_constellation
					bonus = 0.10
					uses = 1
					category = CAT_navigation_satellites
				} hidden_effect = { rq_eb_b69aa5a8d2 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_active_electro_optical_bus
		name = GENERIC_western_orbital_systems_bureau_active_electro_optical_bus
		icon = GFX_generic_mio_trait_icon_hard_attack

		all_parents = { GENERIC_western_orbital_systems_bureau_anwei_imaging_satellite }

		relative_position_id = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		position = { x = -1 y = 3 }

		mutually_exclusive = { GENERIC_western_orbital_systems_bureau_sar_imaging_bus }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { hard_attack = 0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_sar_imaging_bus
		name = GENERIC_western_orbital_systems_bureau_sar_imaging_bus
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_western_orbital_systems_bureau_constellation_operations }

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

		mutually_exclusive = { GENERIC_western_orbital_systems_bureau_active_electro_optical_bus }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { breakthrough = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_precision_timing_augmentation
		name = GENERIC_western_orbital_systems_bureau_precision_timing_augmentation
		icon = GFX_generic_mio_trait_icon_maximum_speed

		all_parents = { GENERIC_western_orbital_systems_bureau_daojin_nav_constellation }

		relative_position_id = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		position = { x = 1 y = 3 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { maximum_speed = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_geosynchronous_relay_capstone
		name = GENERIC_western_orbital_systems_bureau_geosynchronous_relay_capstone
		icon = GFX_generic_mio_trait_icon_soft_attack

		any_parent = {
			GENERIC_western_orbital_systems_bureau_active_electro_optical_bus
			GENERIC_western_orbital_systems_bureau_sar_imaging_bus
		}

		relative_position_id = GENERIC_western_orbital_systems_bureau_yuheng_orbital
		position = { x = 0 y = 4 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = {
			soft_attack = 0.08
			hard_attack = 0.05
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_western_orbital_systems_bureau_geosynchronous_relay_capstone
					bonus = 0.10
					uses = 1
					category = CAT_internet
				} hidden_effect = { rq_eb_39db5d2592 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_pokong_counterspace
		name = GENERIC_western_orbital_systems_bureau_pokong_counterspace
		icon = GFX_generic_mio_trait_icon_reliability

		position = { x = 8 y = 0 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { reliability = 0.05 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_western_orbital_systems_bureau_pokong_counterspace
					bonus = 0.10
					uses = 1
					category = CAT_satellites
				} hidden_effect = { rq_eb_b0fbd004d3 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_kinetic_interceptor_doctrine
		name = GENERIC_western_orbital_systems_bureau_kinetic_interceptor_doctrine
		icon = GFX_generic_mio_trait_icon_breakthrough

		all_parents = { GENERIC_western_orbital_systems_bureau_pokong_counterspace }

		relative_position_id = GENERIC_western_orbital_systems_bureau_pokong_counterspace
		position = { x = -1 y = 1 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { breakthrough = 0.07 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_counter_space_command
		name = GENERIC_western_orbital_systems_bureau_counter_space_command
		icon = GFX_generic_mio_trait_icon_funds

		all_parents = { GENERIC_western_orbital_systems_bureau_pokong_counterspace }

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

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_size_up_requirement = -0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_ground_asat_vehicle
		name = GENERIC_western_orbital_systems_bureau_ground_asat_vehicle
		icon = GFX_generic_mio_trait_icon_entrenchment

		all_parents = { GENERIC_western_orbital_systems_bureau_pokong_counterspace }

		relative_position_id = GENERIC_western_orbital_systems_bureau_pokong_counterspace
		position = { x = 1 y = 1 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { breakthrough = 0.075 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_kouling_hit_to_kill
		name = GENERIC_western_orbital_systems_bureau_kouling_hit_to_kill
		icon = GFX_generic_mio_trait_icon_ap_attack

		all_parents = { GENERIC_western_orbital_systems_bureau_kinetic_interceptor_doctrine }

		relative_position_id = GENERIC_western_orbital_systems_bureau_pokong_counterspace
		position = { x = -1 y = 2 }

		mutually_exclusive = { GENERIC_western_orbital_systems_bureau_dazzler_electronic_jam }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { ap_attack = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_dazzler_electronic_jam
		name = GENERIC_western_orbital_systems_bureau_dazzler_electronic_jam
		icon = GFX_generic_mio_trait_icon_defense

		all_parents = { GENERIC_western_orbital_systems_bureau_counter_space_command }

		relative_position_id = GENERIC_western_orbital_systems_bureau_pokong_counterspace
		position = { x = 0 y = 2 }

		mutually_exclusive = { GENERIC_western_orbital_systems_bureau_kouling_hit_to_kill }

		limit_to_equipment_type = { space_artillery_equipment_type }

		equipment_bonus = { breakthrough = 0.0125 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_orbital_denial_rehearsal
		name = GENERIC_western_orbital_systems_bureau_orbital_denial_rehearsal
		icon = GFX_generic_mio_trait_icon_production_capacity

		any_parent = {
			GENERIC_western_orbital_systems_bureau_kouling_hit_to_kill
			GENERIC_western_orbital_systems_bureau_dazzler_electronic_jam
		}

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

		limit_to_equipment_type = { space_artillery_equipment_type }

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_western_orbital_systems_bureau_co_orbital_assault_mission
		name = GENERIC_western_orbital_systems_bureau_co_orbital_assault_mission
		icon = GFX_generic_mio_trait_icon_resources

		all_parents = { GENERIC_western_orbital_systems_bureau_orbital_denial_rehearsal }

		relative_position_id = GENERIC_western_orbital_systems_bureau_pokong_counterspace
		position = { x = 0 y = 4 }

		limit_to_equipment_type = { space_artillery_equipment_type }

		production_bonus = {
			production_resource_need_factor = -0.15
			production_efficiency_cap_factor = 0.10
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { air_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
GENERIC_central_heavy_atomics_power = {
	allowed = { always = yes }
	name = GENERIC_central_heavy_atomics_power_name
	icon = GFX_idea_company_central_heavy

	task_capacity = 10

	visible = {
		FROM = {
			OR = {
				has_country_flag = central_heavy_atomics_power_unlocked
				GENERIC_central_heavy_atomics_power_allowed = yes
			}
		}
	}

	available = {
		if = {
			limit = {
				NOT = { FROM = { has_country_flag = central_heavy_atomics_power_unlocked } }
			}
			FROM = { has_country_flag = central_heavy_atomics_power_unlocked }
		}
	}

	equipment_type = {
		attack_submarine
		missile_submarine
		nuclear_missile_equipment
		guided_missile_equipment
	}

	research_categories = {
		CAT_nuclear_reactors
		CAT_naval_reactors
		CAT_nuclear_weapons
		CAT_renewable_energy
		CAT_energy
		CAT_excavation
		CAT_attack_submarines
		CAT_missile_submarines
		CAT_submarines
		CAT_cruise_missiles
	}

	tree_header_text = {
		text = GENERIC_central_heavy_atomics_power_tree_header_reactor_core
		x = 2
	}

	tree_header_text = {
		text = GENERIC_central_heavy_atomics_power_tree_header_strategic_arsenal
		x = 7
	}

	initial_trait = {
		name = GENERIC_central_heavy_atomics_power_trait

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_research_bonus = 0.15
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_pressurised_core_programme
		name = GENERIC_central_heavy_atomics_power_pressurised_core_programme
		icon = GFX_generic_mio_trait_icon_research

		position = { x = 2 y = 0 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.04 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_central_heavy_atomics_power_pressurised_core_programme
					bonus = 0.15
					uses = 1
					category = CAT_nuclear_reactors
				} hidden_effect = { rq_eb_de4522c681 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_civil_baseload_grid
		name = GENERIC_central_heavy_atomics_power_civil_baseload_grid
		icon = GFX_generic_mio_trait_icon_funds

		any_parent = { GENERIC_central_heavy_atomics_power_pressurised_core_programme }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		organization_modifier = { military_industrial_organization_funds_gain = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_naval_thermal_core
		name = GENERIC_central_heavy_atomics_power_naval_thermal_core
		icon = GFX_generic_mio_trait_icon_reliability

		any_parent = { GENERIC_central_heavy_atomics_power_pressurised_core_programme }

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

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		equipment_bonus = { reliability = 0.06 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_central_heavy_atomics_power_naval_thermal_core
					bonus = 0.15
					uses = 1
					category = CAT_naval_reactors
				} hidden_effect = { rq_eb_0f47e070fa = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_enrichment_cascade
		name = GENERIC_central_heavy_atomics_power_enrichment_cascade
		icon = GFX_generic_mio_trait_icon_resources

		any_parent = { GENERIC_central_heavy_atomics_power_pressurised_core_programme }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		production_bonus = { production_resource_need_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_twin_core_lattice
		name = GENERIC_central_heavy_atomics_power_twin_core_lattice
		icon = GFX_generic_mio_trait_icon_task

		any_parent = { GENERIC_central_heavy_atomics_power_civil_baseload_grid }

		position = { x = -2 y = 2 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		organization_modifier = { military_industrial_organization_size_up_requirement = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_smart_grid_programme
		name = GENERIC_central_heavy_atomics_power_smart_grid_programme
		icon = GFX_generic_mio_trait_icon_design

		any_parent = { GENERIC_central_heavy_atomics_power_civil_baseload_grid }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_fuel_fabrication
		name = GENERIC_central_heavy_atomics_power_fuel_fabrication
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = { GENERIC_central_heavy_atomics_power_enrichment_cascade }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		production_bonus = { production_cost_factor = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_uranium_cascade
		name = GENERIC_central_heavy_atomics_power_uranium_cascade
		icon = GFX_generic_mio_trait_icon_unique

		any_parent = { GENERIC_central_heavy_atomics_power_enrichment_cascade }

		position = { x = 2 y = 2 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		equipment_bonus = {
			build_cost_ic = -0.05
			max_organisation = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_renewable_facade
		name = GENERIC_central_heavy_atomics_power_renewable_facade
		icon = GFX_generic_mio_trait_icon_design

		any_parent = { GENERIC_central_heavy_atomics_power_twin_core_lattice }

		position = { x = -2 y = 3 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		organization_modifier = {
			military_industrial_organization_design_team_change_cost = -0.15
			military_industrial_organization_funds_gain = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_centrifuge_hall
		name = GENERIC_central_heavy_atomics_power_centrifuge_hall
		icon = GFX_generic_mio_trait_icon_production_capacity

		any_parent = { GENERIC_central_heavy_atomics_power_smart_grid_programme }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_pressurised_water_core
		name = GENERIC_central_heavy_atomics_power_pressurised_water_core
		icon = GFX_generic_mio_trait_icon_naval_speed

		any_parent = { GENERIC_central_heavy_atomics_power_naval_thermal_core }

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

		mutually_exclusive = { GENERIC_central_heavy_atomics_power_heavy_water_lattice }

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		equipment_bonus = {
			naval_speed = 0.06
			reliability = 0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_heavy_water_lattice
		name = GENERIC_central_heavy_atomics_power_heavy_water_lattice
		icon = GFX_generic_mio_trait_icon_sub_detection

		any_parent = { GENERIC_central_heavy_atomics_power_naval_thermal_core }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		mutually_exclusive = { GENERIC_central_heavy_atomics_power_pressurised_water_core }

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		equipment_bonus = {
			max_strength = 0.07
			sub_detection = 0.05
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_reprocessing_plant
		name = GENERIC_central_heavy_atomics_power_reprocessing_plant
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = { GENERIC_central_heavy_atomics_power_uranium_cascade }

		position = { x = 2 y = 3 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_grid_modernisation
		name = GENERIC_central_heavy_atomics_power_grid_modernisation
		icon = GFX_generic_mio_trait_icon_task

		any_parent = { GENERIC_central_heavy_atomics_power_renewable_facade }

		position = { x = -2 y = 4 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		organization_modifier = { military_industrial_organization_task_capacity = 1 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_reactor_hardening
		name = GENERIC_central_heavy_atomics_power_reactor_hardening
		icon = GFX_generic_mio_trait_icon_sub_attack

		any_parent = { GENERIC_central_heavy_atomics_power_centrifuge_hall }

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		equipment_bonus = { sub_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_plutonium_pipeline
		name = GENERIC_central_heavy_atomics_power_plutonium_pipeline
		icon = GFX_generic_mio_trait_icon_resources

		any_parent = { GENERIC_central_heavy_atomics_power_heavy_water_lattice }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		production_bonus = { production_resource_penalty_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_core_redundancy
		name = GENERIC_central_heavy_atomics_power_core_redundancy
		icon = GFX_generic_mio_trait_icon_unique

		any_parent = { GENERIC_central_heavy_atomics_power_reprocessing_plant }

		position = { x = 2 y = 4 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		equipment_bonus = { max_organisation = 0.05 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_solar_curtain
		name = GENERIC_central_heavy_atomics_power_solar_curtain
		icon = GFX_generic_mio_trait_icon_design

		any_parent = { GENERIC_central_heavy_atomics_power_reactor_hardening }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_integral_reactor_design
		name = GENERIC_central_heavy_atomics_power_integral_reactor_design
		icon = GFX_generic_mio_trait_icon_sub_visibility

		any_parent = {
			GENERIC_central_heavy_atomics_power_pressurised_water_core
			GENERIC_central_heavy_atomics_power_heavy_water_lattice
		}

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		equipment_bonus = {
			sub_visibility = -0.06
			naval_range = 0.08
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { navy_experience = 15 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_dry_cask_storage
		name = GENERIC_central_heavy_atomics_power_dry_cask_storage
		icon = GFX_generic_mio_trait_icon_resources

		any_parent = { GENERIC_central_heavy_atomics_power_plutonium_pipeline }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		production_bonus = { production_resource_need_factor = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_reactor_heritage
		name = GENERIC_central_heavy_atomics_power_reactor_heritage
		icon = GFX_generic_mio_trait_icon_design

		any_parent = { GENERIC_central_heavy_atomics_power_solar_curtain }

		position = { x = -1 y = 6 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		organization_modifier = { military_industrial_organization_design_team_change_cost = -0.10 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_closed_fuel_cycle
		name = GENERIC_central_heavy_atomics_power_closed_fuel_cycle
		icon = GFX_generic_mio_trait_icon_torpedo_attack

		any_parent = { GENERIC_central_heavy_atomics_power_dry_cask_storage }

		position = { x = 1 y = 6 }
		relative_position_id = GENERIC_central_heavy_atomics_power_pressurised_core_programme

		limit_to_equipment_type = {
			attack_submarine
			missile_submarine
		}

		equipment_bonus = { torpedo_attack = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_central_heavy_atomics_power_closed_fuel_cycle
					bonus = 0.15
					uses = 1
					category = CAT_submarines
				} hidden_effect = { rq_eb_d3911a9da1 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_strategic_stockpile
		name = GENERIC_central_heavy_atomics_power_strategic_stockpile
		icon = GFX_generic_mio_trait_icon_research

		position = { x = 7 y = 0 }

		organization_modifier = { military_industrial_organization_research_bonus = 0.03 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_central_heavy_atomics_power_strategic_stockpile
					bonus = 0.15
					uses = 1
					category = CAT_nuclear_weapons
				} hidden_effect = { rq_eb_83c308ce28 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_fissile_programme
		name = GENERIC_central_heavy_atomics_power_fissile_programme
		icon = GFX_generic_mio_trait_icon_nucleair_missile_reliability

		any_parent = { GENERIC_central_heavy_atomics_power_strategic_stockpile }

		position = { x = -1 y = 1 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { nuclear_missile_equipment }

		equipment_bonus = {
			reliability = 0.05
			build_cost_ic = -0.04
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_icbm_arsenal
		name = GENERIC_central_heavy_atomics_power_icbm_arsenal
		icon = GFX_generic_mio_trait_icon_nucleair_missile

		any_parent = { GENERIC_central_heavy_atomics_power_strategic_stockpile }

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

		limit_to_equipment_type = { nuclear_missile_equipment }

		equipment_bonus = { air_range = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_tactical_missile_line
		name = GENERIC_central_heavy_atomics_power_tactical_missile_line
		icon = GFX_generic_mio_trait_icon_guided_missile

		any_parent = { GENERIC_central_heavy_atomics_power_strategic_stockpile }

		position = { x = 1 y = 1 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { air_ground_attack = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_plutonium_foundry
		name = GENERIC_central_heavy_atomics_power_plutonium_foundry
		icon = GFX_generic_mio_trait_icon_nucleair_missile

		any_parent = { GENERIC_central_heavy_atomics_power_fissile_programme }

		position = { x = -2 y = 2 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { nuclear_missile_equipment }

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_weapons_laboratory
		name = GENERIC_central_heavy_atomics_power_weapons_laboratory
		icon = GFX_generic_mio_trait_icon_design

		any_parent = { GENERIC_central_heavy_atomics_power_fissile_programme }

		position = { x = -1 y = 2 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		organization_modifier = { military_industrial_organization_design_team_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_hardened_silo_line
		name = GENERIC_central_heavy_atomics_power_hardened_silo_line
		icon = GFX_generic_mio_trait_icon_nucleair_missile_defense

		any_parent = { GENERIC_central_heavy_atomics_power_icbm_arsenal }

		position = { x = 1 y = 2 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { nuclear_missile_equipment }

		equipment_bonus = { air_agility = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_cruise_platform
		name = GENERIC_central_heavy_atomics_power_cruise_platform
		icon = GFX_generic_mio_trait_icon_guided_missile_agility

		any_parent = { GENERIC_central_heavy_atomics_power_tactical_missile_line }

		position = { x = 2 y = 2 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { air_agility = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_tritium_cycle
		name = GENERIC_central_heavy_atomics_power_tritium_cycle
		icon = GFX_generic_mio_trait_icon_nucleair_missile_resources

		all_parents = {
			GENERIC_central_heavy_atomics_power_plutonium_foundry
			GENERIC_central_heavy_atomics_power_fuel_fabrication
		}

		position = { x = -2 y = 3 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { nuclear_missile_equipment }

		production_bonus = { production_resource_need_factor = -0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_mirv_integration
		name = GENERIC_central_heavy_atomics_power_mirv_integration
		icon = GFX_generic_mio_trait_icon_nucleair_missile

		any_parent = { GENERIC_central_heavy_atomics_power_weapons_laboratory }

		position = { x = -1 y = 3 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		mutually_exclusive = { GENERIC_central_heavy_atomics_power_single_warhead_focus }

		limit_to_equipment_type = { nuclear_missile_equipment }

		equipment_bonus = { air_bombing = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_central_heavy_atomics_power_mirv_integration
					bonus = 0.15
					uses = 1
					category = CAT_nuclear_reactors
				} hidden_effect = { rq_eb_de4522c681 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_single_warhead_focus
		name = GENERIC_central_heavy_atomics_power_single_warhead_focus
		icon = GFX_generic_mio_trait_icon_nucleair_missile

		any_parent = { GENERIC_central_heavy_atomics_power_weapons_laboratory }

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

		mutually_exclusive = { GENERIC_central_heavy_atomics_power_mirv_integration }

		limit_to_equipment_type = { nuclear_missile_equipment }

		equipment_bonus = { air_bombing = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_dispersed_silo_field
		name = GENERIC_central_heavy_atomics_power_dispersed_silo_field
		icon = GFX_generic_mio_trait_icon_design

		any_parent = { GENERIC_central_heavy_atomics_power_hardened_silo_line }

		position = { x = 1 y = 3 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		organization_modifier = { military_industrial_organization_industrial_manufacturer_assign_cost = -0.15 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_subsonic_cruise_baseline
		name = GENERIC_central_heavy_atomics_power_subsonic_cruise_baseline
		icon = GFX_generic_mio_trait_icon_guided_missile

		any_parent = { GENERIC_central_heavy_atomics_power_cruise_platform }

		position = { x = 2 y = 3 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { air_ground_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_thermonuclear_stage
		name = GENERIC_central_heavy_atomics_power_thermonuclear_stage
		icon = GFX_generic_mio_trait_icon_nucleair_missile

		all_parents = {
			GENERIC_central_heavy_atomics_power_tritium_cycle
			GENERIC_central_heavy_atomics_power_reprocessing_plant
		}

		position = { x = -2 y = 4 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { nuclear_missile_equipment }

		equipment_bonus = { air_bombing = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_warhead_miniaturisation
		name = GENERIC_central_heavy_atomics_power_warhead_miniaturisation
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = {
			GENERIC_central_heavy_atomics_power_mirv_integration
			GENERIC_central_heavy_atomics_power_single_warhead_focus
		}

		position = { x = -1 y = 4 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = {
			nuclear_missile_equipment
			guided_missile_equipment
		}

		equipment_bonus = { build_cost_ic = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_canister_launch
		name = GENERIC_central_heavy_atomics_power_canister_launch
		icon = GFX_generic_mio_trait_icon_build_cost_ic

		any_parent = {
			GENERIC_central_heavy_atomics_power_mirv_integration
			GENERIC_central_heavy_atomics_power_single_warhead_focus
		}

		position = { x = 0 y = 4 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = {
			nuclear_missile_equipment
			guided_missile_equipment
		}

		production_bonus = { production_cost_factor = -0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_hypersonic_glider
		name = GENERIC_central_heavy_atomics_power_hypersonic_glider
		icon = GFX_generic_mio_trait_icon_guided_missile_speed

		any_parent = { GENERIC_central_heavy_atomics_power_dispersed_silo_field }

		position = { x = 1 y = 4 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { maximum_speed = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_anti_ship_warhead
		name = GENERIC_central_heavy_atomics_power_anti_ship_warhead
		icon = GFX_generic_mio_trait_icon_guided_missile

		any_parent = { GENERIC_central_heavy_atomics_power_subsonic_cruise_baseline }

		position = { x = 2 y = 4 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { naval_strike_attack = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_yield_enhancement
		name = GENERIC_central_heavy_atomics_power_yield_enhancement
		icon = GFX_generic_mio_trait_icon_funds

		any_parent = { GENERIC_central_heavy_atomics_power_warhead_miniaturisation }

		position = { x = -1 y = 5 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		organization_modifier = {
			military_industrial_organization_funds_gain = 0.05
			military_industrial_organization_design_team_change_cost = -0.10
		}

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_submarine_launched_missile
		name = GENERIC_central_heavy_atomics_power_submarine_launched_missile
		icon = GFX_generic_mio_trait_icon_nucleair_missile

		any_parent = { GENERIC_central_heavy_atomics_power_canister_launch }

		position = { x = 0 y = 5 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { nuclear_missile_equipment }

		equipment_bonus = { air_range = 0.08 }

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = {
				add_tech_bonus = {
					name = GENERIC_central_heavy_atomics_power_submarine_launched_missile
					bonus = 0.15
					uses = 1
					category = CAT_cruise_missiles
				} hidden_effect = { rq_eb_40ec3c0d71 = yes }
			}
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_precision_seeker_head
		name = GENERIC_central_heavy_atomics_power_precision_seeker_head
		icon = GFX_generic_mio_trait_icon_guided_missile_agility

		any_parent = { GENERIC_central_heavy_atomics_power_hypersonic_glider }

		position = { x = 1 y = 5 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = { guided_missile_equipment }

		equipment_bonus = { air_agility = 0.06 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_strategic_primacy
		name = GENERIC_central_heavy_atomics_power_strategic_primacy
		icon = GFX_generic_mio_trait_icon_task

		any_parent = { GENERIC_central_heavy_atomics_power_yield_enhancement }

		position = { x = -1 y = 6 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		organization_modifier = {
			military_industrial_organization_task_capacity = 1
			military_industrial_organization_size_up_requirement = -0.08
		}

		on_complete = {
			expenditure_medium_for_mio_upgrade = yes
			FROM = { add_political_power = 100 }
		}

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}

	trait = {
		token = GENERIC_central_heavy_atomics_power_saturation_strike
		name = GENERIC_central_heavy_atomics_power_saturation_strike
		icon = GFX_generic_mio_trait_icon_production_capacity

		any_parent = { GENERIC_central_heavy_atomics_power_precision_seeker_head }

		position = { x = 1 y = 6 }
		relative_position_id = GENERIC_central_heavy_atomics_power_strategic_stockpile

		limit_to_equipment_type = {
			nuclear_missile_equipment
			guided_missile_equipment
		}

		production_bonus = { production_capacity_factor = 0.08 }

		on_complete = { expenditure_for_mio_upgrade = yes }

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = { FROM.interest_rate > 8 }
			}
		}
	}
}
