###########################
# 	  Taiwan Events	  #
###########################

add_namespace = taiwan

#228 Hand-in-Hand rally
country_event = {
	id = taiwan.1
	title = taiwan.1.t
	desc = taiwan.1.d
	picture = GFX_TAI_228_hand
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { tag = TAI }

	option = {
		name = taiwan.1.a
		log = "[GetDateText]: [This.GetName]: taiwan.1.a executed"
		add_popularity = { ideology = democratic popularity = 0.03 }
	}

}

#Typhoon Bilis
country_event = {
	id = taiwan.2
	title = taiwan.2.t
	desc = taiwan.2.d
	picture = GFX_typhoon
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { tag = TAI }

	option = {
		name = taiwan.2.a
		log = "[GetDateText]: [This.GetName]: taiwan.2.a executed"
		set_temp_variable = { treasury_change = -0.13 }
		modify_treasury_effect = yes
		add_manpower = -14
		598 = { if = { limit = { infrastructure > 0 } damage_building = { type = infrastructure damage = 0.2 } } if = { limit = { industrial_complex > 0 } damage_building = { type = industrial_complex damage = 0.3 } } }
		600 = { if = { limit = { infrastructure > 0 } damage_building = { type = infrastructure damage = 0.2 } } if = { limit = { industrial_complex > 0 } damage_building = { type = industrial_complex damage = 0.3 } } }
	}

}

#2000 presidential election
country_event = {
	id = taiwan.3
	title = taiwan.3.t
	desc = taiwan.3.d
	picture = GFX_TAI_taiwan
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = TAI
		date > 2000.1.1
		date < 2001.1.1
	}

	option = {
		name = taiwan.3.a
		log = "[GetDateText]: [This.GetName]: taiwan.3.a executed"
		set_temp_variable = { rul_party_temp = 2 }
		set_temp_variable = { change_leader_temp = 1 }
		change_ruling_party_effect = yes
	}

	option = {
		name = taiwan.3.b
		log = "[GetDateText]: [This.GetName]: taiwan.3.b executed"
		set_temp_variable = { rul_party_temp = 1 }
		set_temp_variable = { change_leader_temp = 1 }
		change_ruling_party_effect = yes
	}

	option = {
		name = taiwan.3.c
		log = "[GetDateText]: [This.GetName]: taiwan.3.c executed"
		set_temp_variable = { rul_party_temp = 14 }
		set_temp_variable = { change_leader_temp = 1 }
		change_ruling_party_effect = yes
	}

}

#Coast Guard created
country_event = {
	id = taiwan.4
	title = taiwan.4.t
	desc = taiwan.4.d
	picture = GFX_TAI_coast_guard
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = taiwan.4.a
		log = "[GetDateText]: [This.GetName]: taiwan.4.a executed"
		navy_experience = 5
	}

}

#National University of Kaohsiung
country_event = {
	id = taiwan.5
	title = taiwan.5.t
	desc = taiwan.5.d
	picture = GFX_TAI_kaoshiung_university
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = taiwan.5.a
		### TODO research bonus for industry
	}

}

# Taoyuan Flight Attendants Union strike
country_event = {
	id = taiwan.13
	title = taiwan.13.t
	desc = taiwan.13.d
	picture = GFX_TAI_flight_crew_strike
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { tag = TAI }

	option = {
		name = taiwan.13.a
		log = "[GetDateText]: [This.GetName]: taiwan.13.a executed"
		add_political_power = -50
		ai_chance = {
			base = 10
		}
	}

	option = {
		name = taiwan.13.b
		log = "[GetDateText]: [This.GetName]: taiwan.13.b executed"
		random_list = {
			30 = { country_event = { days = 1 id = taiwan.14 } }
			70 = { country_event = { days = 1 id = taiwan.15 } }
		}
	}

}

# Taoyuan Flight Attendants Union strike - sucessful
country_event = {
	id = taiwan.14
	title = taiwan.14.t
	desc = taiwan.14.d
	picture = GFX_TAI_flight_crew_strike_solved
	is_triggered_only = yes

	option = {
		name = taiwan.14.a
	}

}

# Taoyuan Flight Attendants Union strike - failed
country_event = {
	id = taiwan.15
	title = taiwan.15.t
	desc = taiwan.15.d
	picture = GFX_TAI_flight_crew_strike
	is_triggered_only = yes

	option = {
		name = taiwan.15.a
		add_timed_idea = { idea = TAI_flight_crew_strike days = 31 }
		add_political_power = -25
		log = "[GetDateText]: [This.GetName]: taiwan.15.a executed"
	}

}

# Tank fell into river
country_event = {
	id = taiwan.16
	title = taiwan.16.t
	desc = taiwan.16.d
	picture = GFX_TAI_tank_bridge
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { tag = TAI }

	option = {
		name = taiwan.16.a
		log = "[GetDateText]: [This.GetName]: taiwan.16.a executed"
		600 = { add_manpower = -3 }
	}

}

#Move the capital?
country_event = {
	id = taiwan.17
	title = taiwan.17.t
	desc = taiwan.17.d
	picture = GFX_CHI_beijing
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { original_tag = TAI }

	option = {
		name = taiwan.17.a
		log = "[GetDateText]: [This.GetName]: taiwan.17.a executed"
		set_capital = {
			state = 547
		}
	}

	option = {
		name = taiwan.17.b
		log = "[GetDateText]: [This.GetName]: taiwan.17.b executed"
		set_capital = {
			state = 540
		}
	}

	option = {
		name = taiwan.17.c
		log = "[GetDateText]: [This.GetName]: taiwan.17.c executed"
		set_capital = {
			state = 583
		}
	}

	option = {
		name = taiwan.17.e
		log = "[GetDateText]: [This.GetName]: taiwan.17.e executed"
		set_capital = {
			state = 536
		}
	}

	option = {
		name = taiwan.17.d1
	}

}


country_event = {
	id = taiwan.18
	title = taiwan.18.t
	desc = taiwan.18.d
	picture = GFX_TAI_228_hand
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = taiwan.18.a
		log = "[GetDateText]: [This.GetName]: taiwan.18.a executed"
		add_dynamic_modifier = { modifier = the_great_chip_race_modifier }
		add_tech_bonus = {
			name = taiwan.18.t
			bonus = 0.5
			uses = 2
			category = CAT_microchips
		} hidden_effect = { rq_eb_b1916cc961 = yes }
	}

}

# Foxconn corporate history
country_event = {
	id = taiwan.300
	title = taiwan.300.t
	desc = taiwan.300.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_foxconn_contract_scale }
		NOT = { has_country_flag = TAI_foxconn_own_brand_attempt }
	}

	option = {
		name = taiwan.300.a
		log = "[GetDateText]: [Root.GetName]: taiwan.300.a executed"
		add_political_power = -15
		add_tech_bonus = {
			name = taiwan.300.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = TAI_foxconn_contract_scale
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.300.b
		log = "[GetDateText]: [Root.GetName]: taiwan.300.b executed"
		set_country_flag = TAI_foxconn_own_brand_attempt
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.301
	title = taiwan.301.t
	desc = taiwan.301.d
	picture = GFX_politics_protest
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_foxconn_labour_reform }
		NOT = { has_country_flag = TAI_foxconn_cost_discipline }
	}

	option = {
		name = taiwan.301.a
		log = "[GetDateText]: [Root.GetName]: taiwan.301.a executed"
		add_political_power = -25
		add_tech_bonus = {
			name = taiwan.301.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = TAI_foxconn_labour_reform
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.301.b
		log = "[GetDateText]: [Root.GetName]: taiwan.301.b executed"
		set_country_flag = TAI_foxconn_cost_discipline
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.302
	title = taiwan.302.t
	desc = taiwan.302.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_foxconn_iphone_city }
		NOT = { has_country_flag = TAI_foxconn_geographic_diversification }
	}

	option = {
		name = taiwan.302.a
		log = "[GetDateText]: [Root.GetName]: taiwan.302.a executed"
		add_political_power = -20
		add_tech_bonus = {
			name = taiwan.302.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = TAI_foxconn_iphone_city
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.302.b
		log = "[GetDateText]: [Root.GetName]: taiwan.302.b executed"
		set_country_flag = TAI_foxconn_geographic_diversification
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.303
	title = taiwan.303.t
	desc = taiwan.303.d
	picture = GFX_stock_market
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_foxconn_sharp_acquired }
		NOT = { has_country_flag = TAI_foxconn_sharp_passed }
	}

	option = {
		name = taiwan.303.a
		log = "[GetDateText]: [Root.GetName]: taiwan.303.a executed"
		add_political_power = -20
		add_tech_bonus = {
			name = taiwan.303.t
			bonus = 0.15
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_01a7bd4347 = yes }
		set_country_flag = TAI_foxconn_sharp_acquired
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.303.b
		log = "[GetDateText]: [Root.GetName]: taiwan.303.b executed"
		set_country_flag = TAI_foxconn_sharp_passed
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.304
	title = taiwan.304.t
	desc = taiwan.304.d
	picture = GFX_trade_agreement
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_foxconn_wisconsin_committed }
		NOT = { has_country_flag = TAI_foxconn_wisconsin_declined }
	}

	option = {
		name = taiwan.304.a
		log = "[GetDateText]: [Root.GetName]: taiwan.304.a executed"
		add_political_power = -25
		add_tech_bonus = {
			name = taiwan.304.t
			bonus = 0.15
			uses = 1
			category = CAT_construction
		} hidden_effect = { rq_eb_de2411024f = yes }
		set_country_flag = TAI_foxconn_wisconsin_committed
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.304.b
		log = "[GetDateText]: [Root.GetName]: taiwan.304.b executed"
		set_country_flag = TAI_foxconn_wisconsin_declined
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.305
	title = taiwan.305.t
	desc = taiwan.305.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		TAI_foxconn_outcome_settled = no
	}

	option = {
		name = taiwan.305.a
		trigger = {
			has_country_flag = TAI_foxconn_geographic_diversification
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.305.a executed"
		effect_tooltip = { add_timed_idea = { idea = TAI_foxconn_resilient_manufacturing_network days = 365 } }
		hidden_effect = { TAI_foxconn_apply_resilient_network = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = taiwan.305.b
		trigger = {
			NOT = { has_country_flag = TAI_foxconn_geographic_diversification }
			has_country_flag = TAI_foxconn_sharp_acquired
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.305.b executed"
		effect_tooltip = { add_timed_idea = { idea = TAI_foxconn_ev_pipeline days = 365 } }
		hidden_effect = { TAI_foxconn_apply_ev_pipeline = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = taiwan.305.c
		trigger = {
			NOT = { has_country_flag = TAI_foxconn_geographic_diversification }
			NOT = { has_country_flag = TAI_foxconn_sharp_acquired }
			has_country_flag = TAI_foxconn_contract_scale
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.305.c executed"
		effect_tooltip = { add_ideas = TAI_foxconn_factory_city_production }
		hidden_effect = { TAI_foxconn_apply_factory_city = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = taiwan.305.e
		trigger = {
			NOT = { has_country_flag = TAI_foxconn_geographic_diversification }
			NOT = { has_country_flag = TAI_foxconn_sharp_acquired }
			has_country_flag = TAI_foxconn_own_brand_attempt
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.305.e executed"
		effect_tooltip = { add_timed_idea = { idea = TAI_foxconn_factory_behind_brand days = 365 } }
		hidden_effect = { TAI_foxconn_apply_factory_behind_brand = yes }
		ai_chance = { base = 100 }
	}
}
country_event = {
	id = taiwan.310
	title = taiwan.310.t
	desc = taiwan.310.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_tsmc_ramp_through_downturn }
		NOT = { has_country_flag = TAI_tsmc_capital_discipline }
	}

	option = {
		name = taiwan.310.a
		log = "[GetDateText]: [Root.GetName]: taiwan.310.a executed"
		set_temp_variable = { treasury_change = -4.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.310.t
			bonus = 0.15
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_01a7bd4347 = yes }
		set_country_flag = TAI_tsmc_ramp_through_downturn
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.310.b
		log = "[GetDateText]: [Root.GetName]: taiwan.310.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.310.t
			bonus = 0.10
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_b504394b66 = yes }
		set_country_flag = TAI_tsmc_capital_discipline
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.311
	title = taiwan.311.t
	desc = taiwan.311.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_tsmc_open_innovation }
		NOT = { has_country_flag = TAI_tsmc_bilateral_engagement }
	}

	option = {
		name = taiwan.311.a
		log = "[GetDateText]: [Root.GetName]: taiwan.311.a executed"
		set_temp_variable = { treasury_change = -3.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.311.t
			bonus = 0.15
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_364f0b778e = yes }
		set_country_flag = TAI_tsmc_open_innovation
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.311.b
		log = "[GetDateText]: [Root.GetName]: taiwan.311.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.311.t
			bonus = 0.10
			uses = 1
			category = CAT_encryption
		} hidden_effect = { rq_eb_355331f0ba = yes }
		set_country_flag = TAI_tsmc_bilateral_engagement
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.312
	title = taiwan.312.t
	desc = taiwan.312.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_tsmc_anchor_customer }
		NOT = { has_country_flag = TAI_tsmc_foundry_neutrality }
	}

	option = {
		name = taiwan.312.a
		log = "[GetDateText]: [Root.GetName]: taiwan.312.a executed"
		set_temp_variable = { treasury_change = -5.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.312.t
			bonus = 0.15
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_01a7bd4347 = yes }
		set_country_flag = TAI_tsmc_anchor_customer
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.312.b
		log = "[GetDateText]: [Root.GetName]: taiwan.312.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.312.t
			bonus = 0.10
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_c4abe0b00c = yes }
		set_country_flag = TAI_tsmc_foundry_neutrality
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.313
	title = taiwan.313.t
	desc = taiwan.313.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_tsmc_overseas_network }
		NOT = { has_country_flag = TAI_tsmc_island_concentration }
	}

	option = {
		name = taiwan.313.a
		log = "[GetDateText]: [Root.GetName]: taiwan.313.a executed"
		set_temp_variable = { treasury_change = -12.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.313.t
			bonus = 0.15
			uses = 1
			category = CAT_construction
		} hidden_effect = { rq_eb_de2411024f = yes }
		set_country_flag = TAI_tsmc_overseas_network
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.313.b
		log = "[GetDateText]: [Root.GetName]: taiwan.313.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.313.t
			bonus = 0.10
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_c4abe0b00c = yes }
		set_country_flag = TAI_tsmc_island_concentration
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.314
	title = taiwan.314.t
	desc = taiwan.314.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_tsmc_state_allocation }
		NOT = { has_country_flag = TAI_tsmc_commercial_allocation }
	}

	option = {
		name = taiwan.314.a
		log = "[GetDateText]: [Root.GetName]: taiwan.314.a executed"
		add_political_power = -20
		add_tech_bonus = {
			name = taiwan.314.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = TAI_tsmc_state_allocation
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.314.b
		log = "[GetDateText]: [Root.GetName]: taiwan.314.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.314.t
			bonus = 0.10
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_dcfbaed803 = yes }
		set_country_flag = TAI_tsmc_commercial_allocation
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
		}
	}
}

country_event = {
	id = taiwan.315
	title = taiwan.315.t
	desc = taiwan.315.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_tsmc_systems_foundry }
		NOT = { has_country_flag = TAI_tsmc_pure_play_wafers }
	}

	option = {
		name = taiwan.315.a
		log = "[GetDateText]: [Root.GetName]: taiwan.315.a executed"
		set_temp_variable = { treasury_change = -8.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.315.t
			bonus = 0.15
			uses = 1
			category = CAT_robotics
		} hidden_effect = { rq_eb_69b88eaa6a = yes }
		set_country_flag = TAI_tsmc_systems_foundry
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.315.b
		log = "[GetDateText]: [Root.GetName]: taiwan.315.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.315.t
			bonus = 0.10
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_c4abe0b00c = yes }
		set_country_flag = TAI_tsmc_pure_play_wafers
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.316
	title = taiwan.316.t
	desc = taiwan.316.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		TAI_tsmc_outcome_settled = no
	}

	option = {
		name = taiwan.316.a
		trigger = {
			has_country_flag = TAI_tsmc_state_allocation
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.316.a executed"
		effect_tooltip = { add_ideas = TAI_tsmc_state_directed_foundry }
		hidden_effect = { TAI_tsmc_apply_state_directed_foundry = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = taiwan.316.b
		trigger = {
			has_country_flag = TAI_tsmc_overseas_network
			NOT = { has_country_flag = TAI_tsmc_state_allocation }
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.316.b executed"
		effect_tooltip = { add_ideas = TAI_tsmc_trusted_allied_foundry_network }
		hidden_effect = { TAI_tsmc_apply_trusted_allied_foundry_network = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = taiwan.316.c
		trigger = {
			has_country_flag = TAI_tsmc_systems_foundry
			NOT = { has_country_flag = TAI_tsmc_state_allocation }
			NOT = { has_country_flag = TAI_tsmc_overseas_network }
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.316.c executed"
		effect_tooltip = { add_ideas = TAI_tsmc_systems_foundry_platform }
		hidden_effect = { TAI_tsmc_apply_systems_foundry_platform = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = taiwan.316.e
		trigger = {
			NOT = { has_country_flag = TAI_tsmc_state_allocation }
			NOT = { has_country_flag = TAI_tsmc_overseas_network }
			NOT = { has_country_flag = TAI_tsmc_systems_foundry }
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.316.e executed"
		effect_tooltip = { add_timed_idea = { idea = TAI_tsmc_disciplined_pure_play_foundry days = 365 } }
		hidden_effect = { TAI_tsmc_apply_disciplined_pure_play_foundry = yes }
		ai_chance = { base = 100 }
	}
}

country_event = {
	id = taiwan.320
	title = taiwan.320.t
	desc = taiwan.320.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_pc_brand_factory_split }
		NOT = { has_country_flag = TAI_pc_integrated_manufacturer }
	}

	option = {
		name = taiwan.320.a
		log = "[GetDateText]: [Root.GetName]: taiwan.320.a executed"
		add_political_power = -15
		add_tech_bonus = {
			name = taiwan.320.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = TAI_pc_brand_factory_split
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.320.b
		log = "[GetDateText]: [Root.GetName]: taiwan.320.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.320.t
			bonus = 0.10
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_dcfbaed803 = yes }
		set_country_flag = TAI_pc_integrated_manufacturer
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.321
	title = taiwan.321.t
	desc = taiwan.321.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_pc_x86_licence_settled }
		NOT = { has_country_flag = TAI_pc_architecture_holdout }
	}

	option = {
		name = taiwan.321.a
		log = "[GetDateText]: [Root.GetName]: taiwan.321.a executed"
		set_temp_variable = { treasury_change = -2.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.321.t
			bonus = 0.15
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_364f0b778e = yes }
		set_country_flag = TAI_pc_x86_licence_settled
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.321.b
		log = "[GetDateText]: [Root.GetName]: taiwan.321.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.321.t
			bonus = 0.10
			uses = 1
			category = CAT_microchips
		} hidden_effect = { rq_eb_c4abe0b00c = yes }
		set_country_flag = TAI_pc_architecture_holdout
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.322
	title = taiwan.322.t
	desc = taiwan.322.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_pc_branded_premium }
		NOT = { has_country_flag = TAI_pc_component_supplier }
	}

	option = {
		name = taiwan.322.a
		log = "[GetDateText]: [Root.GetName]: taiwan.322.a executed"
		set_temp_variable = { treasury_change = -3.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.322.t
			bonus = 0.15
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_364f0b778e = yes }
		set_country_flag = TAI_pc_branded_premium
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.322.b
		log = "[GetDateText]: [Root.GetName]: taiwan.322.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.322.t
			bonus = 0.10
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_b504394b66 = yes }
		set_country_flag = TAI_pc_component_supplier
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.323
	title = taiwan.323.t
	desc = taiwan.323.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_pc_contract_manufacturing }
		NOT = { has_country_flag = TAI_pc_integrated_brand }
	}

	option = {
		name = taiwan.323.a
		log = "[GetDateText]: [Root.GetName]: taiwan.323.a executed"
		set_temp_variable = { treasury_change = -4.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.323.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = TAI_pc_contract_manufacturing
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.323.b
		log = "[GetDateText]: [Root.GetName]: taiwan.323.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.323.t
			bonus = 0.10
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_dcfbaed803 = yes }
		set_country_flag = TAI_pc_integrated_brand
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_active_mission = bankruptcy_incoming_collapse }
			}
		}
	}
}

country_event = {
	id = taiwan.324
	title = taiwan.324.t
	desc = taiwan.324.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_pc_mobile_transition }
		NOT = { has_country_flag = TAI_pc_desktop_defence }
	}

	option = {
		name = taiwan.324.a
		log = "[GetDateText]: [Root.GetName]: taiwan.324.a executed"
		set_temp_variable = { treasury_change = -3.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.324.t
			bonus = 0.15
			uses = 1
			category = CAT_internet
		} hidden_effect = { rq_eb_e3add24c7d = yes }
		set_country_flag = TAI_pc_mobile_transition
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.324.b
		log = "[GetDateText]: [Root.GetName]: taiwan.324.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.324.t
			bonus = 0.10
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_dcfbaed803 = yes }
		set_country_flag = TAI_pc_desktop_defence
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
		}
	}
}

country_event = {
	id = taiwan.325
	title = taiwan.325.t
	desc = taiwan.325.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = TAI_pc_state_coordination }
		NOT = { has_country_flag = TAI_pc_market_consolidation }
	}

	option = {
		name = taiwan.325.a
		log = "[GetDateText]: [Root.GetName]: taiwan.325.a executed"
		set_temp_variable = { treasury_change = -10.00 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = taiwan.325.t
			bonus = 0.15
			uses = 1
			category = CAT_industry
		} hidden_effect = { rq_eb_dd86e42890 = yes }
		set_country_flag = TAI_pc_state_coordination
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_active_mission = bankruptcy_incoming_collapse
			}
		}
	}

	option = {
		name = taiwan.325.b
		log = "[GetDateText]: [Root.GetName]: taiwan.325.b executed"
		add_political_power = 10
		add_tech_bonus = {
			name = taiwan.325.t
			bonus = 0.10
			uses = 1
			category = CAT_information_technology
		} hidden_effect = { rq_eb_dcfbaed803 = yes }
		set_country_flag = TAI_pc_market_consolidation
		ai_chance = {
			base = 50
			modifier = {
				factor = 10
				is_historical_focus_on = yes
			}
		}
	}
}

country_event = {
	id = taiwan.326
	title = taiwan.326.t
	desc = taiwan.326.d
	picture = GFX_computer
	is_triggered_only = yes

	trigger = {
		TAI_pc_outcome_settled = no
	}

	option = {
		name = taiwan.326.a
		trigger = {
			has_country_flag = TAI_pc_state_coordination
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.326.a executed"
		effect_tooltip = { add_ideas = TAI_pc_full_spectrum_computing_ecosystem }
		hidden_effect = { TAI_pc_apply_full_spectrum_computing_ecosystem = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = taiwan.326.b
		trigger = {
			has_country_flag = TAI_pc_branded_premium
			NOT = { has_country_flag = TAI_pc_state_coordination }
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.326.b executed"
		effect_tooltip = { add_timed_idea = { idea = TAI_pc_branded_systems_powerhouse days = 365 } }
		hidden_effect = { TAI_pc_apply_branded_systems_powerhouse = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = taiwan.326.c
		trigger = {
			has_country_flag = TAI_pc_contract_manufacturing
			NOT = { has_country_flag = TAI_pc_state_coordination }
			NOT = { has_country_flag = TAI_pc_branded_premium }
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.326.c executed"
		effect_tooltip = { add_timed_idea = { idea = TAI_pc_global_component_commonwealth days = 365 } }
		hidden_effect = { TAI_pc_apply_global_component_commonwealth = yes }
		ai_chance = { base = 100 }
	}

	option = {
		name = taiwan.326.e
		trigger = {
			NOT = { has_country_flag = TAI_pc_state_coordination }
			NOT = { has_country_flag = TAI_pc_branded_premium }
			NOT = { has_country_flag = TAI_pc_contract_manufacturing }
		}
		log = "[GetDateText]: [Root.GetName]: taiwan.326.e executed"
		effect_tooltip = { add_timed_idea = { idea = TAI_pc_fragmented_margin_squeeze days = 365 } }
		hidden_effect = { TAI_pc_apply_fragmented_margin_squeeze = yes }
		ai_chance = { base = 100 }
	}
}
