#Taiwan TSMC TAI_tsmc_manufacturer = { allowed = { original_tag = TAI } icon = GFX_idea_tsmc_company task_capacity = 1 equipment_type = { } research_categories = { CAT_computing_tech CAT_microchips CAT_internet_tech CAT_ai } tree_header_text = { text = TAI_tsmc_manufacturer_mio_header_production_and_facilities x = 2 } tree_header_text = { text = TAI_tsmc_manufacturer_mio_header_operations_and_r_and_d x = 7 } initial_trait = { name = TAI_tsmc_trait organization_modifier = { military_industrial_organization_research_bonus = 0.05 military_industrial_organization_funds_gain = 0.05 } } trait = { token = TAI_tsmc_expanded_company_operations name = TAI_tsmc_expanded_company_operations icon = GFX_generic_mio_trait_icon_resources position = { x = 7 y = 0 } organization_modifier = { military_industrial_organization_task_capacity = 1 } on_complete = { expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_established_research_department name = TAI_tsmc_established_research_department icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_expanded_company_operations } relative_position_id = TAI_tsmc_expanded_company_operations position = { x = 1 y = 1 } organization_modifier = { military_industrial_organization_research_bonus = 0.075 } on_complete = { expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_early_ai_investments name = TAI_tsmc_early_ai_investments icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_established_research_department } relative_position_id = TAI_tsmc_established_research_department position = { x = 1 y = 1 } organization_modifier = { military_industrial_organization_research_bonus = 0.025 } on_complete = { TAI = { add_tech_bonus = { name = TAI_tsmc_early_ai_investments bonus = 0.15 uses = 1 category = CAT_ai } } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_research_department_breakthroughs name = TAI_tsmc_research_department_breakthroughs icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_established_research_department } relative_position_id = TAI_tsmc_established_research_department position = { x = 0 y = 1 } organization_modifier = { military_industrial_organization_research_bonus = 0.05 } on_complete = { TAI = { add_tech_bonus = { name = TAI_tsmc_research_department_breakthroughs bonus = 0.15 uses = 1 category = CAT_microchips } } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_research_department_focus name = TAI_tsmc_research_department_focus icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_research_department_breakthroughs } relative_position_id = TAI_tsmc_research_department_breakthroughs position = { x = 0 y = 1 } organization_modifier = { military_industrial_organization_research_bonus = 0.075 } on_complete = { expenditure_medium_for_mio_upgrade = yes TAI = { add_tech_bonus = { name = TAI_tsmc_research_department_focus bonus = 0.15 uses = 2 category = CAT_microchips } } } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_venture_capital_funding name = TAI_tsmc_venture_capital_funding icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_expanded_company_operations } relative_position_id = TAI_tsmc_expanded_company_operations position = { x = 0 y = 1 } organization_modifier = { military_industrial_organization_funds_gain = 0.25 } on_complete = { expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_governmental_investments name = TAI_tsmc_governmental_investments icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_venture_capital_funding } relative_position_id = TAI_tsmc_venture_capital_funding position = { x = 0 y = 1 } organization_modifier = { military_industrial_organization_funds_gain = 0.3 } on_complete = { expenditure_large_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_operational_expansion name = TAI_tsmc_operational_expansion icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_governmental_investments } relative_position_id = TAI_tsmc_governmental_investments position = { x = 0 y = 1 } organization_modifier = { military_industrial_organization_task_capacity = 1 military_industrial_organization_size_up_requirement = 0.025 military_industrial_organization_funds_gain = -0.1 } on_complete = { expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_industry_leading_company name = TAI_tsmc_industry_leading_company icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_operational_expansion TAI_tsmc_research_department_focus TAI_tsmc_rapid_expansion_moves } relative_position_id = TAI_tsmc_operational_expansion position = { x = 0 y = 1 } organization_modifier = { military_industrial_organization_task_capacity = 1 military_industrial_organization_research_bonus = 0.2 } on_complete = { expenditure_large_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_efficient_company_structure name = TAI_tsmc_efficient_company_structure icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_expanded_company_operations } relative_position_id = TAI_tsmc_expanded_company_operations position = { x = -1 y = 1 } organization_modifier = { military_industrial_organization_size_up_requirement = -0.1 } on_complete = { expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_rapid_company_expansion name = TAI_tsmc_rapid_company_expansion icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_efficient_company_structure } relative_position_id = TAI_tsmc_efficient_company_structure position = { x = -1 y = 1 } organization_modifier = { military_industrial_organization_size_up_requirement = -0.05 military_industrial_organization_task_capacity = 1 } on_complete = { expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_pre_planned_growth name = TAI_tsmc_pre_planned_growth icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_efficient_company_structure } relative_position_id = TAI_tsmc_efficient_company_structure position = { x = 0 y = 1 } organization_modifier = { military_industrial_organization_size_up_requirement = -0.1 } on_complete = { expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_rapid_expansion_moves name = TAI_tsmc_rapid_expansion_moves icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_pre_planned_growth } relative_position_id = TAI_tsmc_pre_planned_growth position = { x = 0 y = 1 } organization_modifier = { military_industrial_organization_size_up_requirement = 0.1 military_industrial_organization_funds_gain = 0.15 } on_complete = { expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_130nm_production name = TAI_tsmc_130nm_production icon = GFX_generic_mio_trait_icon_resources position = { x = 2 y = 0 } on_complete = { TAI = { set_temp_variable = { adder = 0.025 } set_variable = { tai_tsmc_prod_boost_var = adder } custom_effect_tooltip = tai_chip_prod_improver_tt add_dynamic_modifier = { modifier = tsmc_modifier } hidden_effect = { if = { limit = { check_variable = { TAI_tsmc_resource_trade_cost_bonus_per_factory < 1 } } set_variable = { TAI_tsmc_resource_trade_cost_bonus_per_factory = 1 } } if = { limit = { country_exists = USA } USA = { if = { limit = { check_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory < 1 } } set_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory = 1 } } USA_tsmc_access_update = yes } } } custom_effect_tooltip = TAI_tsmc_trade_benefits_tier_1_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_advanced_lithography_procedures name = TAI_tsmc_advanced_lithography_procedures icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_130nm_production } relative_position_id = TAI_tsmc_130nm_production position = { x = 1 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 0.015 } hidden_effect = { add_to_variable = { tai_tsmc_prod_boost_var = adder } } custom_effect_tooltip = tai_chip_prod_improver_tt set_temp_variable = { adder = 0.02 } hidden_effect = { add_to_variable = { tai_tsmc_energy_use_var = adder } } custom_effect_tooltip = tai_chip_energy_tt hidden_effect = { if = { limit = { check_variable = { TAI_tsmc_resource_trade_cost_bonus_per_factory < 2 } } set_variable = { TAI_tsmc_resource_trade_cost_bonus_per_factory = 2 } } if = { limit = { country_exists = USA } USA = { if = { limit = { check_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory < 2 } } set_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory = 2 } } USA_tsmc_access_update = yes } } } custom_effect_tooltip = TAI_tsmc_trade_benefits_tier_2_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_advanced_layering_methods name = TAI_tsmc_advanced_layering_methods icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_advanced_lithography_procedures } relative_position_id = TAI_tsmc_advanced_lithography_procedures position = { x = 0 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 0.02 } hidden_effect = { add_to_variable = { tai_tsmc_prod_boost_var = adder } } custom_effect_tooltip = tai_chip_prod_improver_tt set_temp_variable = { adder = 0.02 } hidden_effect = { add_to_variable = { tai_tsmc_energy_use_var = adder } } custom_effect_tooltip = tai_chip_energy_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_improved_etching_and_sealing name = TAI_tsmc_improved_etching_and_sealing icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_advanced_layering_methods } relative_position_id = TAI_tsmc_advanced_layering_methods position = { x = 0 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 0.045 } hidden_effect = { add_to_variable = { tai_tsmc_prod_boost_var = adder } } custom_effect_tooltip = tai_chip_prod_improver_tt set_temp_variable = { adder = 0.03 } hidden_effect = { add_to_variable = { tai_tsmc_energy_use_var = adder } } custom_effect_tooltip = tai_chip_energy_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_american_production_investments name = TAI_tsmc_american_production_investments icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_improved_etching_and_sealing TAI_tsmc_next_generation_lithography } relative_position_id = TAI_tsmc_improved_etching_and_sealing position = { x = 0 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 0.125 } set_variable = { tai_tsmc_const_boost_var = adder } custom_effect_tooltip = tai_chip_const_improver_tt } #TODO: Add an event here that lets Taiwan put microchip production in the US expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_improved_power_usage name = TAI_tsmc_improved_power_usage icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_advanced_lithography_procedures } relative_position_id = TAI_tsmc_advanced_lithography_procedures position = { x = 1 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = -0.035 } hidden_effect = { add_to_variable = { tai_tsmc_energy_use_var = adder } } custom_effect_tooltip = tai_chip_energy_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_next_generation_lithography name = TAI_tsmc_next_generation_lithography icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_improved_power_usage } relative_position_id = TAI_tsmc_improved_power_usage position = { x = 0 y = 1 } on_complete = { expenditure_medium_for_mio_upgrade = yes TAI = { set_temp_variable = { adder = -0.075 } hidden_effect = { add_to_variable = { tai_tsmc_energy_use_var = adder } } custom_effect_tooltip = tai_chip_energy_tt } } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_venture_capital_expansion name = TAI_tsmc_venture_capital_expansion icon = GFX_generic_mio_trait_icon_unique all_parents = { TAI_tsmc_130nm_production } relative_position_id = TAI_tsmc_130nm_production position = { x = 0 y = 1 } on_complete = { expenditure_large_for_mio_upgrade = yes TAI = { random_owned_state = { add_building_construction = { type = microchip_plant level = 1 instant_build = yes } } } } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_improved_deposition name = TAI_tsmc_improved_deposition icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_130nm_production } relative_position_id = TAI_tsmc_130nm_production position = { x = -1 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 5 } set_variable = { tai_chip_resource_use_improvements = adder } custom_effect_tooltip = tai_chip_resource_user_improver_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_expanded_quality_improvement_methods name = TAI_tsmc_expanded_quality_improvement_methods icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_improved_deposition } relative_position_id = TAI_tsmc_improved_deposition position = { x = 0 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 0.03 } hidden_effect = { add_to_variable = { tai_tsmc_prod_boost_var = adder } } custom_effect_tooltip = tai_chip_prod_improver_tt set_temp_variable = { adder = 0.015 } hidden_effect = { add_to_variable = { tai_tsmc_energy_use_var = adder } } custom_effect_tooltip = tai_chip_energy_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_improved_thermal_treatments name = TAI_tsmc_improved_thermal_treatments icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_expanded_quality_improvement_methods } relative_position_id = TAI_tsmc_expanded_quality_improvement_methods position = { x = 0 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 0.045 } hidden_effect = { add_to_variable = { tai_tsmc_prod_boost_var = adder } } custom_effect_tooltip = tai_chip_prod_improver_tt set_temp_variable = { adder = 0.025 } hidden_effect = { add_to_variable = { tai_tsmc_energy_use_var = adder } } custom_effect_tooltip = tai_chip_energy_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_industry_leading_expansion name = TAI_tsmc_industry_leading_expansion icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_improved_thermal_treatments } relative_position_id = TAI_tsmc_improved_thermal_treatments position = { x = 0 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 0.1 } set_variable = { tai_tsmc_const_boost_var = adder } custom_effect_tooltip = tai_chip_const_improver_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_improved_resource_usage name = TAI_tsmc_improved_resource_usage icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_improved_deposition } relative_position_id = TAI_tsmc_improved_deposition position = { x = -1 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 3 } set_variable = { tai_chip_resource_use_improvements = adder } custom_effect_tooltip = tai_chip_resource_user_improver_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_resource_shortage_workarounds name = TAI_tsmc_resource_shortage_workarounds icon = GFX_generic_mio_trait_icon_resources all_parents = { TAI_tsmc_improved_resource_usage } relative_position_id = TAI_tsmc_improved_resource_usage position = { x = 0 y = 1 } on_complete = { TAI = { set_temp_variable = { adder = 4 } set_variable = { tai_chip_resource_use_improvements = adder } custom_effect_tooltip = tai_chip_resource_user_improver_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_planned_expansion name = TAI_tsmc_planned_expansion icon = GFX_generic_mio_trait_icon_task all_parents = { TAI_tsmc_improved_deposition TAI_tsmc_advanced_lithography_procedures } relative_position_id = TAI_tsmc_130nm_production position = { x = 0 y = 2 } on_complete = { TAI = { set_temp_variable = { adder = 0.05 } set_variable = { tai_tsmc_const_boost_var = adder } custom_effect_tooltip = tai_chip_const_improver_tt } expenditure_for_mio_upgrade = yes } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_early_90nm_production name = TAI_tsmc_early_90nm_production icon = GFX_generic_mio_trait_icon_task all_parents = { TAI_tsmc_expanded_quality_improvement_methods TAI_tsmc_improved_resource_usage TAI_tsmc_planned_expansion TAI_tsmc_advanced_layering_methods TAI_tsmc_improved_power_usage } relative_position_id = TAI_tsmc_planned_expansion position = { x = 0 y = 1 } on_complete = { expenditure_large_for_mio_upgrade = yes TAI = { set_temp_variable = { adder = 0.1 } set_variable = { tai_tsmc_const_boost_var = adder } custom_effect_tooltip = tai_chip_const_improver_tt modify_building_resources = { building = microchip_plant resource = microchips amount = 1 } set_temp_variable = { adder = 0.05 } hidden_effect = { add_to_variable = { tai_tsmc_energy_use_var = adder } } custom_effect_tooltip = tai_chip_energy_tt } } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } trait = { token = TAI_tsmc_early_14nm_production name = TAI_tsmc_early_14nm_production icon = GFX_generic_mio_trait_icon_task all_parents = { TAI_tsmc_industry_leading_expansion TAI_tsmc_american_production_investments TAI_tsmc_resource_shortage_workarounds TAI_tsmc_early_90nm_production TAI_tsmc_improved_thermal_treatments TAI_tsmc_next_generation_lithography TAI_tsmc_improved_etching_and_sealing } relative_position_id = TAI_tsmc_early_90nm_production position = { x = 0 y = 2 } on_complete = { expenditure_large_for_mio_upgrade = yes TAI = { set_temp_variable = { adder = 0.05 } set_variable = { tai_tsmc_const_boost_var = adder } custom_effect_tooltip = tai_chip_const_improver_tt modify_building_resources = { building = microchip_plant resource = microchips amount = 1 } set_temp_variable = { adder = 0.05 } hidden_effect = { add_to_variable = { tai_tsmc_energy_use_var = adder } } custom_effect_tooltip = tai_chip_energy_tt hidden_effect = { if = { limit = { check_variable = { TAI_tsmc_resource_trade_cost_bonus_per_factory < 3 } } set_variable = { TAI_tsmc_resource_trade_cost_bonus_per_factory = 3 } } if = { limit = { country_exists = USA } USA = { if = { limit = { check_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory < 3 } } set_variable = { USA_tsmc_resource_trade_cost_bonus_per_factory = 3 } } USA_tsmc_access_update = yes } } } custom_effect_tooltip = TAI_tsmc_trade_benefits_tier_3_tt } } ai_will_do = { base = 10 modifier = { factor = 0 check_variable = { FROM.interest_rate > 8 } } } } }