# Author(s): Angriest Bird
# Purpose: Manipulate the variables for the Space System
FRA_space_enthusiasm_effect = {
	add_to_variable = { FRA.FRA_peoples_support = temp_change }
	custom_effect_tooltip = FRA_space_enthusiasm_effect_tt
}
FRA_space_income_effect = {
	add_to_variable = { FRA.FRA_space_income_var = temp_change }
	clamp_variable = { var = FRA.FRA_space_income_var min = 0 max = 5 }
	custom_effect_tooltip = FRA_space_income_effect_tt
}
FRA_cs_apply_nationalised_systems_champion = {
	if = {
		limit = { FRA_cs_outcome_settled = no }
		add_ideas = FRA_cs_nationalised_systems_champion
	}
}

FRA_cs_apply_state_backed_silicon_base = {
	if = {
		limit = { FRA_cs_outcome_settled = no }
		add_ideas = FRA_cs_state_backed_silicon_base
	}
}

FRA_cs_apply_recapitalised_national_operator = {
	if = {
		limit = { FRA_cs_outcome_settled = no }
		add_timed_idea = { idea = FRA_cs_recapitalised_national_operator days = 365 }
	}
}

FRA_cs_apply_market_like_any_other = {
	if = {
		limit = { FRA_cs_outcome_settled = no }
		add_timed_idea = { idea = FRA_cs_market_like_any_other days = 365 }
	}
}

FRA_cs_milestone_2001 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = france_md.600 days = 273 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		set_country_flag = FRA_cs_microelectronics_divested
	}
}

FRA_cs_milestone_2003 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = france_md.601 days = 63 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		set_country_flag = FRA_cs_state_capital
	}
}

FRA_cs_milestone_2004 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = france_md.602 days = 251 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		set_country_flag = FRA_cs_majority_sold
	}
}

FRA_cs_milestone_2007 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = france_md.603 days = 165 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		set_country_flag = FRA_cs_champion_alone
	}
}

FRA_cs_milestone_2013 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = france_md.604 days = 76 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		set_country_flag = FRA_cs_wireless_unwound
	}
}

FRA_cs_milestone_2023 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = france_md.605 days = 155 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		set_country_flag = FRA_cs_sovereign_fab
	}
}

FRA_cs_milestone_2026 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = france_md.606 days = 181 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_cs_apply_state_backed_silicon_base = yes
	}
}

FRA_corporate_systems_apply_5g_long_term_huawei = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_28_eligible = yes }
		set_country_flag = FRA_corporate_systems_5g_long_term_huawei
		add_to_variable = { FRA_corporate_strategic_sovereignty = -0.5 }
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.4 }
		add_to_variable = { FRA_corporate_chinese_vendor_dependency = 2 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_5g_rapid_diversification = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_28_eligible = yes }
		set_country_flag = FRA_corporate_systems_5g_rapid_diversification
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.8 }
		add_to_variable = { FRA_corporate_telecom_capacity = 0.5 }
		add_to_variable = { FRA_corporate_chinese_vendor_dependency = -4 }
		add_political_power = -75
		add_timed_idea = { idea = FRA_corporate_systems_vendor_replacement_burden days = 548 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_5g_restrictive_authorizations = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_28_eligible = yes }
		set_country_flag = FRA_corporate_systems_5g_restrictive_authorizations
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.6 }
		add_to_variable = { FRA_corporate_european_integration = 0.3 }
		add_to_variable = { FRA_corporate_chinese_vendor_dependency = -3 }
		add_timed_idea = { idea = FRA_corporate_systems_vendor_replacement_burden days = 730 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_alcatel_aggressive_restructuring = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_1_eligible = yes }
		set_country_flag = FRA_corporate_systems_alcatel_aggressive_restructuring
		add_to_variable = { FRA_corporate_alcatel_health = 0.8 }
		add_to_variable = { FRA_corporate_debt_pressure = -0.6 }
		add_stability = -0.01
		add_timed_idea = { idea = FRA_corporate_systems_telecom_crash_restructuring days = 730 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.1.a
			bonus = 0.05
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_1101eccf30 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_alcatel_hold_the_line = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_1_eligible = yes }
		set_country_flag = FRA_corporate_systems_alcatel_hold_the_line
		add_to_variable = { FRA_corporate_alcatel_health = -1.0 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.8 }
		add_stability = 0.005
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_alcatel_national_champion = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_6_eligible = yes }
		set_country_flag = FRA_corporate_systems_alcatel_national_champion
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.8 }
		add_to_variable = { FRA_corporate_alcatel_health = 0.7 }
		add_political_power = -125
		add_tech_bonus = {
			name = FRA_corporate_systems_events.6.b
			bonus = 0.10
			uses = 1
			category = CAT_command_and_control_equipment
		} hidden_effect = { rq_eb_bff1dcf148 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_alcatel_restructuring_rejected = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_6_eligible = yes }
		set_country_flag = FRA_corporate_systems_alcatel_restructuring_rejected
		add_to_variable = { FRA_corporate_alcatel_health = -0.9 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.6 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_alcatel_shift_plan = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_6_eligible = yes }
		set_country_flag = FRA_corporate_systems_alcatel_shift_plan
		add_to_variable = { FRA_corporate_telecom_capacity = 0.8 }
		add_to_variable = { FRA_corporate_alcatel_health = 1.0 }
		add_to_variable = { FRA_corporate_debt_pressure = -0.5 }
		add_stability = -0.005
		add_timed_idea = { idea = FRA_corporate_systems_shift_plan_restructuring days = 730 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.6.a
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_alcatel_strategic_rd_protection = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_1_eligible = yes }
		set_country_flag = FRA_corporate_systems_alcatel_strategic_rd_protection
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.4 }
		add_to_variable = { FRA_corporate_alcatel_health = 0.6 }
		add_political_power = -75
		add_tech_bonus = {
			name = FRA_corporate_systems_events.1.b
			bonus = 0.05
			uses = 1
			category = CAT_command_and_control_equipment
		} hidden_effect = { rq_eb_8966a7a110 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_ambition_ft_austerity = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_22_eligible = yes }
		set_country_flag = FRA_corporate_systems_ambition_ft_austerity
		add_to_variable = { FRA_corporate_digital_infrastructure = -0.6 }
		add_to_variable = { FRA_corporate_debt_pressure = -1.0 }
		add_stability = -0.01
		add_timed_idea = { idea = FRA_corporate_systems_ambition_ft_restructuring days = 730 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_ambition_ft_recapitalization = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_22_eligible = yes }
		set_country_flag = FRA_corporate_systems_ambition_ft_recapitalization
		add_to_variable = { FRA_corporate_orange_health = 1.2 }
		add_to_variable = { FRA_corporate_debt_pressure = -1.5 }
		add_political_power = -50
		add_stability = -0.005
		add_timed_idea = { idea = FRA_corporate_systems_ambition_ft_restructuring days = 730 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_ambition_ft_state_rescue = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_22_eligible = yes }
		set_country_flag = FRA_corporate_systems_ambition_ft_state_rescue
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.5 }
		add_to_variable = { FRA_corporate_orange_health = 1.0 }
		add_to_variable = { FRA_corporate_debt_pressure = -1.8 }
		add_political_power = -125
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_china_connected_infrastructure = {
	FRA_corporate_systems_clear_capstone_ideas = yes
	add_ideas = FRA_corporate_systems_china_connected_infrastructure
}

FRA_corporate_systems_apply_crolles2_capital_exposure_minimized = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_11_eligible = yes }
		set_country_flag = FRA_corporate_systems_crolles2_capital_exposure_minimized
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.1 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.2 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_crolles2_french_led_program = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_11_eligible = yes }
		set_country_flag = FRA_corporate_systems_crolles2_french_led_program
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.5 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.4 }
		add_political_power = -75
		add_tech_bonus = {
			name = FRA_corporate_systems_events.11.b
			bonus = 0.10
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_c4abe0b00c = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_crolles2_multinational_alliance = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_11_eligible = yes }
		set_country_flag = FRA_corporate_systems_crolles2_multinational_alliance
		add_to_variable = { FRA_corporate_strategic_sovereignty = -0.1 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.6 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.11.a
			bonus = 0.10
			uses = 2
			category = CAT_microchips
		} hidden_effect = { rq_eb_5a85bdb57b = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_european_microelectronics_ipcei = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_17_eligible = yes }
		set_country_flag = FRA_corporate_systems_european_microelectronics_ipcei
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.6 }
		add_to_variable = { FRA_corporate_european_integration = 1.0 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.8 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.17.a
			bonus = 0.10
			uses = 2
			category = CAT_microchips
		} hidden_effect = { rq_eb_5a85bdb57b = yes }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.17.a_military
			bonus = 0.05
			uses = 1
			category = CAT_command_and_control_equipment
		} hidden_effect = { rq_eb_8966a7a110 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_france_first_semiconductor_program = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_17_eligible = yes }
		set_country_flag = FRA_corporate_systems_france_first_semiconductor_program
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.9 }
		add_to_variable = { FRA_corporate_european_integration = -0.5 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.6 }
		add_political_power = -125
		add_tech_bonus = {
			name = FRA_corporate_systems_events.17.b
			bonus = 0.10
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_c4abe0b00c = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_france_telecom_domestic_brand = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_25_eligible = yes }
		set_country_flag = FRA_corporate_systems_france_telecom_domestic_brand
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.2 }
		add_to_variable = { FRA_corporate_orange_health = -0.3 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_french_national_champions = {
	FRA_corporate_systems_clear_capstone_ideas = yes
	add_ideas = FRA_corporate_systems_french_national_champions
}

FRA_corporate_systems_apply_historical_step_1 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_alcatel_aggressive_restructuring has_country_flag = FRA_corporate_systems_alcatel_strategic_rd_protection has_country_flag = FRA_corporate_systems_alcatel_hold_the_line } } }
		set_country_flag = FRA_corporate_systems_alcatel_aggressive_restructuring
		add_to_variable = { FRA_corporate_alcatel_health = 0.8 }
		add_to_variable = { FRA_corporate_debt_pressure = -0.6 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_10 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_st_alcatel_microelectronics_acquired has_country_flag = FRA_corporate_systems_st_alcatel_strategic_assets_acquired has_country_flag = FRA_corporate_systems_st_alcatel_microelectronics_declined } } }
		set_country_flag = FRA_corporate_systems_st_alcatel_microelectronics_acquired
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.2 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.4 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.5 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_11 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_crolles2_multinational_alliance has_country_flag = FRA_corporate_systems_crolles2_french_led_program has_country_flag = FRA_corporate_systems_crolles2_capital_exposure_minimized } } }
		set_country_flag = FRA_corporate_systems_crolles2_multinational_alliance
		add_to_variable = { FRA_corporate_strategic_sovereignty = -0.1 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.6 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_13 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_st_nxp_wireless_consolidated has_country_flag = FRA_corporate_systems_st_wireless_independent has_country_flag = FRA_corporate_systems_st_wireless_divested } } }
		set_country_flag = FRA_corporate_systems_st_nxp_wireless_consolidated
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.5 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.2 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.3 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_14 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_st_ericsson_formed has_country_flag = FRA_corporate_systems_st_ericsson_financial_limits has_country_flag = FRA_corporate_systems_st_ericsson_rejected } } }
		set_country_flag = FRA_corporate_systems_st_ericsson_formed
		add_to_variable = { FRA_corporate_european_integration = 0.5 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.6 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.7 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_16 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_st_ericsson_orderly_exit has_country_flag = FRA_corporate_systems_st_ericsson_technology_absorbed has_country_flag = FRA_corporate_systems_st_ericsson_continued } } }
		set_country_flag = FRA_corporate_systems_st_ericsson_orderly_exit
		add_to_variable = { FRA_corporate_semiconductor_capacity = -0.5 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.8 }
		add_to_variable = { FRA_corporate_debt_pressure = -1.0 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_17 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_european_microelectronics_ipcei has_country_flag = FRA_corporate_systems_france_first_semiconductor_program has_country_flag = FRA_corporate_systems_market_led_semiconductors } } }
		set_country_flag = FRA_corporate_systems_european_microelectronics_ipcei
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.6 }
		add_to_variable = { FRA_corporate_european_integration = 1.0 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.8 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_20 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_orange_acquired has_country_flag = FRA_corporate_systems_orange_smaller_mobile_strategy has_country_flag = FRA_corporate_systems_orange_acquisition_rejected } } }
		set_country_flag = FRA_corporate_systems_orange_acquired
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.8 }
		add_to_variable = { FRA_corporate_orange_health = 0.8 }
		add_to_variable = { FRA_corporate_debt_pressure = 1.2 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_21 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_mobilcom_settlement has_country_flag = FRA_corporate_systems_mobilcom_state_bridge has_country_flag = FRA_corporate_systems_mobilcom_liabilities_contested } } }
		set_country_flag = FRA_corporate_systems_mobilcom_settlement
		add_to_variable = { FRA_corporate_orange_health = -0.4 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.5 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_22 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_ambition_ft_recapitalization has_country_flag = FRA_corporate_systems_ambition_ft_state_rescue has_country_flag = FRA_corporate_systems_ambition_ft_austerity } } }
		set_country_flag = FRA_corporate_systems_ambition_ft_recapitalization
		add_to_variable = { FRA_corporate_orange_health = 1.2 }
		add_to_variable = { FRA_corporate_debt_pressure = -1.5 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_24 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_orange_competitive_convergence has_country_flag = FRA_corporate_systems_orange_alcatel_procurement has_country_flag = FRA_corporate_systems_orange_global_sourcing } } }
		set_country_flag = FRA_corporate_systems_orange_competitive_convergence
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.8 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_25 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_orange_unified_brand has_country_flag = FRA_corporate_systems_france_telecom_domestic_brand has_country_flag = FRA_corporate_systems_orange_dual_brand } } }
		set_country_flag = FRA_corporate_systems_orange_unified_brand
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.1 }
		add_to_variable = { FRA_corporate_orange_health = 0.5 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_26 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_orange_fiber_investment has_country_flag = FRA_corporate_systems_orange_strategic_fiber has_country_flag = FRA_corporate_systems_orange_fiber_deferred } } }
		set_country_flag = FRA_corporate_systems_orange_fiber_investment
		add_to_variable = { FRA_corporate_digital_infrastructure = 1.0 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_27 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_orange_5g_nokia_ericsson has_country_flag = FRA_corporate_systems_orange_5g_huawei has_country_flag = FRA_corporate_systems_orange_5g_multivendor } } }
		set_country_flag = FRA_corporate_systems_orange_5g_nokia_ericsson
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.5 }
		add_to_variable = { FRA_corporate_european_integration = 0.8 }
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.6 }
		add_to_variable = { FRA_corporate_chinese_vendor_dependency = -1 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_3 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_lucent_combination_approved has_country_flag = FRA_corporate_systems_lucent_strategic_guarantees has_country_flag = FRA_corporate_systems_lucent_combination_opposed } } }
		set_country_flag = FRA_corporate_systems_lucent_combination_approved
		add_to_variable = { FRA_corporate_strategic_sovereignty = -0.4 }
		add_to_variable = { FRA_corporate_telecom_capacity = 0.6 }
		add_to_variable = { FRA_corporate_alcatel_health = 0.7 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_6 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_alcatel_shift_plan has_country_flag = FRA_corporate_systems_alcatel_national_champion has_country_flag = FRA_corporate_systems_alcatel_restructuring_rejected } } }
		set_country_flag = FRA_corporate_systems_alcatel_shift_plan
		add_to_variable = { FRA_corporate_telecom_capacity = 0.8 }
		add_to_variable = { FRA_corporate_alcatel_health = 1.0 }
		add_to_variable = { FRA_corporate_debt_pressure = -0.5 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_historical_step_7 = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { NOT = { OR = { has_country_flag = FRA_corporate_systems_nokia_rd_commitments_enforced has_country_flag = FRA_corporate_systems_nokia_unrestricted_integration has_country_flag = FRA_corporate_systems_nokia_exceptional_french_control } } }
		set_country_flag = FRA_corporate_systems_nokia_rd_commitments_enforced
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.4 }
		add_to_variable = { FRA_corporate_european_integration = 0.4 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_lucent_combination_approved = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_3_eligible = yes }
		set_country_flag = FRA_corporate_systems_lucent_combination_approved
		add_to_variable = { FRA_corporate_strategic_sovereignty = -0.4 }
		add_to_variable = { FRA_corporate_telecom_capacity = 0.6 }
		add_to_variable = { FRA_corporate_alcatel_health = 0.7 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.3.a
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_lucent_combination_opposed = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_3_eligible = yes }
		set_country_flag = FRA_corporate_systems_lucent_combination_opposed
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.6 }
		add_to_variable = { FRA_corporate_telecom_capacity = -0.2 }
		add_to_variable = { FRA_corporate_alcatel_health = -0.5 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_lucent_strategic_guarantees = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_3_eligible = yes }
		set_country_flag = FRA_corporate_systems_lucent_strategic_guarantees
		add_to_variable = { FRA_corporate_strategic_sovereignty = -0.1 }
		add_to_variable = { FRA_corporate_alcatel_health = 0.5 }
		add_political_power = -50
		add_tech_bonus = {
			name = FRA_corporate_systems_events.3.b
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_market_led_semiconductors = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_17_eligible = yes }
		set_country_flag = FRA_corporate_systems_market_led_semiconductors
		add_to_variable = { FRA_corporate_semiconductor_capacity = -0.2 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.2 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_mobilcom_liabilities_contested = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_21_eligible = yes }
		set_country_flag = FRA_corporate_systems_mobilcom_liabilities_contested
		add_to_variable = { FRA_corporate_orange_health = -0.5 }
		add_to_variable = { FRA_corporate_debt_pressure = -0.2 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_mobilcom_settlement = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_21_eligible = yes }
		set_country_flag = FRA_corporate_systems_mobilcom_settlement
		add_to_variable = { FRA_corporate_orange_health = -0.4 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.5 }
		add_stability = -0.005
		add_timed_idea = { idea = FRA_corporate_systems_mobilcom_settlement_burden days = 730 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_mobilcom_state_bridge = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_21_eligible = yes }
		set_country_flag = FRA_corporate_systems_mobilcom_state_bridge
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.4 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.2 }
		add_political_power = -100
		add_timed_idea = { idea = FRA_corporate_systems_mobilcom_settlement_burden days = 365 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_nokia_exceptional_french_control = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_7_eligible = yes }
		set_country_flag = FRA_corporate_systems_nokia_exceptional_french_control
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.6 }
		add_to_variable = { FRA_corporate_european_integration = -0.5 }
		add_to_variable = { FRA_corporate_alcatel_health = -0.3 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_nokia_rd_commitments_enforced = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_7_eligible = yes }
		set_country_flag = FRA_corporate_systems_nokia_rd_commitments_enforced
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.4 }
		add_to_variable = { FRA_corporate_european_integration = 0.4 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.7.a
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.7.a_military
			bonus = 0.05
			uses = 1
			category = CAT_command_and_control_equipment
		} hidden_effect = { rq_eb_8966a7a110 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_nokia_unrestricted_integration = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_7_eligible = yes }
		set_country_flag = FRA_corporate_systems_nokia_unrestricted_integration
		add_to_variable = { FRA_corporate_strategic_sovereignty = -0.3 }
		add_to_variable = { FRA_corporate_alcatel_health = 0.4 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_5g_huawei = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = {
			FRA_corporate_systems_event_27_eligible = yes
			country_exists = CHI
		}
		set_country_flag = FRA_corporate_systems_orange_5g_huawei
		add_to_variable = { FRA_corporate_strategic_sovereignty = -0.8 }
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.8 }
		add_to_variable = { FRA_corporate_chinese_vendor_dependency = 5 }
		FRA_corporate_systems_clamp_state = yes
		if = {
			limit = { has_game_rule = { rule = rule_corporate_history option = full } }
			country_event = { id = FRA_corporate_systems_events.28 days = 174 }
		}
	}
}

FRA_corporate_systems_apply_orange_5g_multivendor = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_27_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_5g_multivendor
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.1 }
		add_to_variable = { FRA_corporate_european_integration = 0.3 }
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.5 }
		add_to_variable = { FRA_corporate_chinese_vendor_dependency = -1 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.27.c
			bonus = 0.05
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_1101eccf30 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_5g_nokia_ericsson = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = {
			FRA_corporate_systems_event_27_eligible = yes
			country_exists = FIN
			country_exists = SWE
		}
		set_country_flag = FRA_corporate_systems_orange_5g_nokia_ericsson
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.5 }
		add_to_variable = { FRA_corporate_european_integration = 0.8 }
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.6 }
		add_to_variable = { FRA_corporate_chinese_vendor_dependency = -1 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.27.a
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_acquired = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_20_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_acquired
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.8 }
		add_to_variable = { FRA_corporate_orange_health = 0.8 }
		add_to_variable = { FRA_corporate_debt_pressure = 1.2 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.20.a
			bonus = 0.05
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_a1f6fec615 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_acquisition_rejected = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_20_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_acquisition_rejected
		add_to_variable = { FRA_corporate_digital_infrastructure = -0.7 }
		add_to_variable = { FRA_corporate_debt_pressure = -0.4 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_alcatel_procurement = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = {
			FRA_corporate_systems_event_24_eligible = yes
			FRA_corporate_systems_alcatel_operational = yes
		}
		set_country_flag = FRA_corporate_systems_orange_alcatel_procurement
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.4 }
		add_to_variable = { FRA_corporate_telecom_capacity = 0.4 }
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.6 }
		add_to_variable = { FRA_corporate_alcatel_health = 0.5 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.24.b
			bonus = 0.05
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_1101eccf30 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_competitive_convergence = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_24_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_competitive_convergence
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.8 }
		add_stability = 0.005
		add_tech_bonus = {
			name = FRA_corporate_systems_events.24.a
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_dual_brand = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_25_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_dual_brand
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.1 }
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.2 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_fiber_deferred = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_26_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_fiber_deferred
		add_to_variable = { FRA_corporate_digital_infrastructure = -0.5 }
		add_to_variable = { FRA_corporate_orange_health = 0.2 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_fiber_investment = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_26_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_fiber_investment
		add_to_variable = { FRA_corporate_digital_infrastructure = 1.0 }
		add_political_power = -50
		add_tech_bonus = {
			name = FRA_corporate_systems_events.26.a
			bonus = 0.05
			uses = 1
			category = CAT_command_and_control_equipment
		} hidden_effect = { rq_eb_8966a7a110 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_global_sourcing = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_24_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_global_sourcing
		add_to_variable = { FRA_corporate_strategic_sovereignty = -0.5 }
		add_to_variable = { FRA_corporate_digital_infrastructure = 1.0 }
		add_to_variable = { FRA_corporate_chinese_vendor_dependency = 2 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.24.c
			bonus = 0.05
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_1101eccf30 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_smaller_mobile_strategy = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_20_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_smaller_mobile_strategy
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.4 }
		add_to_variable = { FRA_corporate_orange_health = 0.4 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.4 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_strategic_fiber = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_26_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_strategic_fiber
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.3 }
		add_to_variable = { FRA_corporate_digital_infrastructure = 1.5 }
		add_political_power = -100
		add_tech_bonus = {
			name = FRA_corporate_systems_events.26.b
			bonus = 0.10
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_39db5d2592 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_orange_unified_brand = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_25_eligible = yes }
		set_country_flag = FRA_corporate_systems_orange_unified_brand
		add_to_variable = { FRA_corporate_digital_infrastructure = 0.1 }
		add_to_variable = { FRA_corporate_orange_health = 0.5 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.25.a
			bonus = 0.05
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_a1f6fec615 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_resilient_multivendor_network = {
	FRA_corporate_systems_clear_capstone_ideas = yes
	add_ideas = FRA_corporate_systems_resilient_multivendor_network
}

FRA_corporate_systems_apply_st_alcatel_microelectronics_acquired = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_10_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_alcatel_microelectronics_acquired
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.2 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.4 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.5 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.10.a
			bonus = 0.10
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_c4abe0b00c = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_alcatel_microelectronics_declined = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_10_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_alcatel_microelectronics_declined
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.2 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_alcatel_strategic_assets_acquired = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_10_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_alcatel_strategic_assets_acquired
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.2 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.3 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.10.b
			bonus = 0.05
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_12f1c08809 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_ericsson_continued = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_16_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_ericsson_continued
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.3 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = -0.7 }
		add_to_variable = { FRA_corporate_debt_pressure = 1.2 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_ericsson_financial_limits = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = {
			FRA_corporate_systems_event_14_eligible = yes
			country_exists = SWE
		}
		set_country_flag = FRA_corporate_systems_st_ericsson_financial_limits
		add_to_variable = { FRA_corporate_european_integration = 0.5 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.4 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.3 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.14.b
			bonus = 0.10
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_c4abe0b00c = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_ericsson_formed = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = {
			FRA_corporate_systems_event_14_eligible = yes
			country_exists = SWE
			has_country_flag = FRA_corporate_systems_st_nxp_wireless_consolidated
		}
		set_country_flag = FRA_corporate_systems_st_ericsson_formed
		add_to_variable = { FRA_corporate_european_integration = 0.5 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.6 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.7 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.14.a
			bonus = 0.10
			uses = 2
			category = CAT_microchips
		} hidden_effect = { rq_eb_5a85bdb57b = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_ericsson_orderly_exit = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_16_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_ericsson_orderly_exit
		add_to_variable = { FRA_corporate_semiconductor_capacity = -0.5 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.8 }
		add_to_variable = { FRA_corporate_debt_pressure = -1.0 }
		add_stability = -0.005
		add_timed_idea = { idea = FRA_corporate_systems_wireless_exit_costs days = 730 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_ericsson_rejected = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_14_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_ericsson_rejected
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.4 }
		add_to_variable = { FRA_corporate_european_integration = -0.2 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = -0.3 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_ericsson_technology_absorbed = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_16_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_ericsson_technology_absorbed
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.4 }
		add_to_variable = { FRA_corporate_semiconductor_capacity = -0.2 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.3 }
		add_political_power = -75
		add_tech_bonus = {
			name = FRA_corporate_systems_events.16.b
			bonus = 0.05
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_12f1c08809 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_nxp_wireless_consolidated = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_13_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_nxp_wireless_consolidated
		add_to_variable = { FRA_corporate_semiconductor_capacity = 0.5 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.2 }
		add_to_variable = { FRA_corporate_debt_pressure = 0.3 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.13.a
			bonus = 0.10
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_c4abe0b00c = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_wireless_divested = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_13_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_wireless_divested
		add_to_variable = { FRA_corporate_semiconductor_capacity = -0.6 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = 0.4 }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_apply_st_wireless_independent = {
	FRA_corporate_systems_initialize_state = yes
	if = {
		limit = { FRA_corporate_systems_event_13_eligible = yes }
		set_country_flag = FRA_corporate_systems_st_wireless_independent
		add_to_variable = { FRA_corporate_strategic_sovereignty = 0.3 }
		add_to_variable = { FRA_corporate_stmicroelectronics_health = -0.1 }
		add_tech_bonus = {
			name = FRA_corporate_systems_events.13.b
			bonus = 0.05
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_12f1c08809 = yes }
		FRA_corporate_systems_clamp_state = yes
	}
}

FRA_corporate_systems_clamp_state = {
	clamp_variable = { var = FRA_corporate_strategic_sovereignty min = 0 max = 10 }
	clamp_variable = { var = FRA_corporate_european_integration min = 0 max = 10 }
	clamp_variable = { var = FRA_corporate_telecom_capacity min = 0 max = 10 }
	clamp_variable = { var = FRA_corporate_semiconductor_capacity min = 0 max = 10 }
	clamp_variable = { var = FRA_corporate_digital_infrastructure min = 0 max = 10 }
	clamp_variable = { var = FRA_corporate_alcatel_health min = 0 max = 10 }
	clamp_variable = { var = FRA_corporate_stmicroelectronics_health min = 0 max = 10 }
	clamp_variable = { var = FRA_corporate_orange_health min = 0 max = 10 }
	clamp_variable = { var = FRA_corporate_debt_pressure min = 0 max = 10 }
	clamp_variable = { var = FRA_corporate_chinese_vendor_dependency min = 0 max = 10 }
}

FRA_corporate_systems_initialize_state = {
	if = {
		limit = { NOT = { has_country_flag = FRA_corporate_systems_state_initialized } }

		set_variable = { FRA_corporate_strategic_sovereignty = 6 }
		set_variable = { FRA_corporate_european_integration = 5 }
		set_variable = { FRA_corporate_telecom_capacity = 6 }
		set_variable = { FRA_corporate_semiconductor_capacity = 6 }
		set_variable = { FRA_corporate_digital_infrastructure = 4 }
		set_variable = { FRA_corporate_alcatel_health = 6 }
		set_variable = { FRA_corporate_stmicroelectronics_health = 6 }
		set_variable = { FRA_corporate_orange_health = 5 }
		set_variable = { FRA_corporate_debt_pressure = 2 }
		set_variable = { FRA_corporate_chinese_vendor_dependency = 0 }
		set_country_flag = FRA_corporate_systems_state_initialized
	}

	FRA_corporate_systems_clamp_state = yes
}

FRA_corporate_systems_clear_capstone_ideas = {
	remove_ideas = {
		FRA_corporate_systems_french_national_champions
		FRA_corporate_systems_china_connected_infrastructure
		FRA_corporate_systems_resilient_multivendor_network
	}
}

FRA_corporate_systems_resolve_capstone = {
	FRA_corporate_systems_initialize_state = yes

	if = {
		limit = { NOT = { FRA_corporate_systems_has_capstone_outcome = yes } }
		if = {
			limit = { FRA_corporate_systems_qualifies_french_national_champions = yes }
			FRA_corporate_systems_apply_french_national_champions = yes
		}
		else_if = {
			limit = { FRA_corporate_systems_qualifies_china_connected_infrastructure = yes }
			FRA_corporate_systems_apply_china_connected_infrastructure = yes
		}
		else = { FRA_corporate_systems_apply_resilient_multivendor_network = yes }
	}
}

FRA_corporate_milestone_20 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		FRA_corporate_systems_initialize_state = yes
		country_event = { id = FRA_corporate_systems_events.20 days = 0 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_20 = yes
	}
}

FRA_corporate_milestone_1 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.1 days = 58 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_1 = yes
	}
}

FRA_corporate_milestone_21 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.21 days = 150 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_21 = yes
	}
}

FRA_corporate_milestone_11 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.11 days = 100 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_11 = yes
	}
}

FRA_corporate_milestone_10 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.10 days = 103 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_10 = yes
	}
}

FRA_corporate_milestone_22 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.22 days = 336 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_22 = yes
	}
}

FRA_corporate_milestone_24 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.24 days = 58 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_24 = yes
	}
}

FRA_corporate_milestone_3 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.3 days = 332 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_3 = yes
	}
}

FRA_corporate_milestone_13 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.13 days = 212 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_13 = yes
	}
}

FRA_corporate_milestone_14 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.14 days = 30 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_14 = yes
	}
}

FRA_corporate_milestone_16 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.16 days = 334 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_16 = yes
	}
}

FRA_corporate_milestone_6 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.6 days = 168 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_6 = yes
	}
}

FRA_corporate_milestone_25 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.25 days = 180 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_25 = yes
	}
}

FRA_corporate_milestone_26 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.26 days = 58 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_26 = yes
	}
}

FRA_corporate_milestone_7 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.7 days = 2 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_7 = yes
	}
}

FRA_corporate_milestone_17 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.17 days = 350 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_17 = yes
	}
}

FRA_corporate_milestone_27 = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.27 days = 29 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_apply_historical_step_27 = yes
	}
}

FRA_corporate_milestone_capstone = {
	if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = full } }
		country_event = { id = FRA_corporate_systems_events.90 days = 204 }
	}
	else_if = {
		limit = { has_game_rule = { rule = rule_corporate_history option = outcomes_only } }
		FRA_corporate_systems_resolve_capstone = yes
	}
}

FRA_corporate_history_2001 = {
	FRA_corporate_milestone_20 = yes
	FRA_corporate_milestone_1 = yes
	FRA_corporate_milestone_21 = yes
}

FRA_corporate_history_2002 = {
	FRA_corporate_milestone_11 = yes
	FRA_corporate_milestone_10 = yes
	FRA_corporate_milestone_22 = yes
}

FRA_corporate_history_2005 = {
	FRA_corporate_milestone_24 = yes
}

FRA_corporate_history_2006 = {
	FRA_corporate_milestone_3 = yes
}

FRA_corporate_history_2008 = {
	FRA_corporate_milestone_13 = yes
}

FRA_corporate_history_2009 = {
	FRA_corporate_milestone_14 = yes
}

FRA_corporate_history_2012 = {
	FRA_corporate_milestone_16 = yes
}

FRA_corporate_history_2013 = {
	FRA_corporate_milestone_6 = yes
	FRA_corporate_milestone_25 = yes
}

FRA_corporate_history_2015 = {
	FRA_corporate_milestone_26 = yes
}

FRA_corporate_history_2016 = {
	FRA_corporate_milestone_7 = yes
}

FRA_corporate_history_2018 = {
	FRA_corporate_milestone_17 = yes
}

FRA_corporate_history_2020 = {
	FRA_corporate_milestone_27 = yes
	FRA_corporate_milestone_capstone = yes
}

# Attaches only the ruling party's programme pools. The backing variables live on the country and
# survive detachment, so a party's accumulated focus bonuses return intact when it regains power.
FRA_update_party_programmes = {
	if = { limit = { has_dynamic_modifier = { modifier = FRA_ps_political_balance } } remove_dynamic_modifier = { modifier = FRA_ps_political_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_ps_econ_policy } } remove_dynamic_modifier = { modifier = FRA_ps_econ_policy } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_ps_social_balance } } remove_dynamic_modifier = { modifier = FRA_ps_social_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_udf_political_balance } } remove_dynamic_modifier = { modifier = FRA_udf_political_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_udf_econ_policy } } remove_dynamic_modifier = { modifier = FRA_udf_econ_policy } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_udf_social_balance } } remove_dynamic_modifier = { modifier = FRA_udf_social_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_lr_political_balance } } remove_dynamic_modifier = { modifier = FRA_lr_political_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_lr_econ_policy } } remove_dynamic_modifier = { modifier = FRA_lr_econ_policy } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_lr_social_balance } } remove_dynamic_modifier = { modifier = FRA_lr_social_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_rpf_political_balance } } remove_dynamic_modifier = { modifier = FRA_rpf_political_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_rpf_econ_policy } } remove_dynamic_modifier = { modifier = FRA_rpf_econ_policy } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_rpf_social_balance } } remove_dynamic_modifier = { modifier = FRA_rpf_social_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_fn_political_balance } } remove_dynamic_modifier = { modifier = FRA_fn_political_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_fn_econ_policy } } remove_dynamic_modifier = { modifier = FRA_fn_econ_policy } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_fn_social_balance } } remove_dynamic_modifier = { modifier = FRA_fn_social_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_lfi_political_balance } } remove_dynamic_modifier = { modifier = FRA_lfi_political_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_lfi_econ_policy } } remove_dynamic_modifier = { modifier = FRA_lfi_econ_policy } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_lfi_social_balance } } remove_dynamic_modifier = { modifier = FRA_lfi_social_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_eelv_political_balance } } remove_dynamic_modifier = { modifier = FRA_eelv_political_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_eelv_econ_policy } } remove_dynamic_modifier = { modifier = FRA_eelv_econ_policy } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_eelv_social_balance } } remove_dynamic_modifier = { modifier = FRA_eelv_social_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_pcf_political_balance } } remove_dynamic_modifier = { modifier = FRA_pcf_political_balance } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_pcf_econ_policy } } remove_dynamic_modifier = { modifier = FRA_pcf_econ_policy } }
	if = { limit = { has_dynamic_modifier = { modifier = FRA_pcf_social_balance } } remove_dynamic_modifier = { modifier = FRA_pcf_social_balance } }
	if = {
		limit = { western_social_democrats_are_in_power = yes }
		add_dynamic_modifier = { modifier = FRA_ps_econ_policy }
		if = {
			limit = { NOT = { FRA_regime_restored = yes } }
			add_dynamic_modifier = { modifier = FRA_ps_political_balance }
			add_dynamic_modifier = { modifier = FRA_ps_social_balance }
		}
	}
	else_if = {
		limit = { western_liberals_are_in_power = yes }
		add_dynamic_modifier = { modifier = FRA_udf_econ_policy }
		if = {
			limit = { NOT = { FRA_regime_restored = yes } }
			add_dynamic_modifier = { modifier = FRA_udf_political_balance }
			add_dynamic_modifier = { modifier = FRA_udf_social_balance }
		}
	}
	else_if = {
		limit = { western_conservatism_are_in_power = yes }
		add_dynamic_modifier = { modifier = FRA_lr_econ_policy }
		if = {
			limit = { NOT = { FRA_regime_restored = yes } }
			add_dynamic_modifier = { modifier = FRA_lr_political_balance }
			add_dynamic_modifier = { modifier = FRA_lr_social_balance }
		}
	}
	else_if = {
		limit = { neutrality_neutral_conservatism_are_in_power = yes }
		add_dynamic_modifier = { modifier = FRA_rpf_econ_policy }
		if = {
			limit = { NOT = { FRA_regime_restored = yes } }
			add_dynamic_modifier = { modifier = FRA_rpf_political_balance }
			add_dynamic_modifier = { modifier = FRA_rpf_social_balance }
		}
	}
	else_if = {
		limit = { nationalist_right_wing_populists_are_in_power = yes }
		add_dynamic_modifier = { modifier = FRA_fn_econ_policy }
		if = {
			limit = { NOT = { FRA_regime_restored = yes } }
			add_dynamic_modifier = { modifier = FRA_fn_political_balance }
			add_dynamic_modifier = { modifier = FRA_fn_social_balance }
		}
	}
	else_if = {
		limit = { neutrality_neutral_social_are_in_power = yes }
		add_dynamic_modifier = { modifier = FRA_lfi_econ_policy }
		if = {
			limit = { NOT = { FRA_regime_restored = yes } }
			add_dynamic_modifier = { modifier = FRA_lfi_political_balance }
			add_dynamic_modifier = { modifier = FRA_lfi_social_balance }
		}
	}
	else_if = {
		limit = { neutrality_neutral_green_are_in_power = yes }
		add_dynamic_modifier = { modifier = FRA_eelv_econ_policy }
		if = {
			limit = { NOT = { FRA_regime_restored = yes } }
			add_dynamic_modifier = { modifier = FRA_eelv_political_balance }
			add_dynamic_modifier = { modifier = FRA_eelv_social_balance }
		}
	}
	else_if = {
		limit = { emerging_communist_state_are_in_power = yes }
		add_dynamic_modifier = { modifier = FRA_pcf_econ_policy }
		if = {
			limit = { NOT = { FRA_regime_restored = yes } }
			add_dynamic_modifier = { modifier = FRA_pcf_political_balance }
			add_dynamic_modifier = { modifier = FRA_pcf_social_balance }
		}
	}
	if = {
		limit = { FRA_regime_restored = yes }
		if = { limit = { has_dynamic_modifier = { modifier = FRA_political_balance } } remove_dynamic_modifier = { modifier = FRA_political_balance } }
		if = { limit = { has_dynamic_modifier = { modifier = FRA_social_balance } } remove_dynamic_modifier = { modifier = FRA_social_balance } }
		if = { limit = { has_dynamic_modifier = { modifier = FRA_6th_rep } } remove_dynamic_modifier = { modifier = FRA_6th_rep } }
	}
}
