tr_xt_heavy_industry_adopt = {
	possible = {
		owner = {
			has_technology = "tech_alloys_1"
		}
	}
	unlocks_agenda = agenda_xt_heavy_industry
	triggered_modifier = {
		potential = {
			owner = {
				NOR = {
					has_civic = civic_catalytic_processing
					has_civic = civic_corporate_catalytic_processing
				}
			}
		}
		job_foundry_per_pop = 0.033
	}
	triggered_modifier = {
		potential = {
			owner = {
				OR = {
					has_civic = civic_catalytic_processing
					has_civic = civic_corporate_catalytic_processing
				}
			}
		}
		job_catalytic_technician_per_pop = 0.033
	}
	on_enabled = {
		custom_tooltip = tr_xt_heavy_industry_adopt_1
		hidden_effect = {
			country_event = { id = xt.22 }
		}
	}
}

tr_xt_heavy_industry_finish = {
	modifier = {
		ascension_perks_add = 1
		planet_metallurgists_unity_produces_add = 1 # Quick note here, 'metallurgists' is the job category, not a specific job, those are 'job_foundry' etc..
	}
}
# Crucible Experimentation
tr_xt_heavy_industry_1 = {
	modifier = {
		planet_metallurgists_engineering_research_produces_add = 1
	}
}
# Magma Containment Chambers
tr_xt_heavy_industry_2 = {
	modifier = {
		planet_metallurgists_alloys_produces_mult = 0.2
		category_field_manipulation_research_speed_mult = 0.05
	}
}
# Magmatic Stockpiling
tr_xt_heavy_industry_3 = {
	custom_tooltip = tr_xt_heavy_industry_3_effects
	on_enabled = {
		hidden_effect = {
			country_event = {
				id = xt.24
			}
		}
	}
	triggered_modifier = {
		country_resource_max_alloys_add = 2000
		multiplier = xt_molten_in_empire
	}
}
# Forgemaster Apprenticeships
tr_xt_heavy_industry_4 = {
	possible = {
		owner = {
			has_tradition = tr_xt_heavy_industry_1
			has_tradition = tr_xt_heavy_industry_2
		}
	}
	on_enabled = {
		custom_tooltip = tr_xt_heavy_industry_4_effects
		hidden_effect = {
			every_owned_leader = {
				limit = {
					leader_class = official
					NOR = { 
						has_trait = leader_trait_xt_metallurgic_apprentice
						has_trait = leader_trait_xt_metallurgic_expert
						has_trait = leader_trait_xt_metallurgic_master
					}
				}
				add_trait = leader_trait_xt_metallurgic_apprentice
			}
			every_pool_leader = {
				limit = {
					leader_class = official
					NOR = { 
						has_trait = leader_trait_xt_metallurgic_apprentice
						has_trait = leader_trait_xt_metallurgic_expert
						has_trait = leader_trait_xt_metallurgic_master
					}
				}
				add_trait = leader_trait_xt_metallurgic_apprentice
			}
		}
	}
	modifier = {
		category_industry_research_speed_mult = 0.1
	}
}
# Direct Hull Casting
tr_xt_heavy_industry_5 = {
	possible = {
		owner = {
			has_tradition = tr_xt_heavy_industry_2
			has_tradition = tr_xt_heavy_industry_3
		}
	}
	modifier = {
		ships_alloys_upkeep_mult = -0.25
		starbase_shipyard_build_speed_mult = 0.2
		ship_repair_hull_mult = 1
		ship_repair_armor_mult = 1
	}
}