
################
## To Molten World ##
################

terraform_link = {
	from = "pc_shattered"
	to = "pc_molten"

	resources = {
		category = terraforming

		cost = {
			energy = 50000
			sr_dark_matter = 500
		}
	}

	duration = 7200
	potential = {
		has_tradition = tr_plentiful_transformation_5
	}
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0
			OR = {
				is_mechanical_empire = yes
				is_cyborg_empire = yes
				has_authority = auth_machine_intelligence
			}
		}
	}
}

terraform_link = {
	from = "pc_broken"
	to = "pc_molten"

	resources = {
		category = terraforming

		cost = {
			energy = 50000
			sr_dark_matter = 500
		}
	}

	duration = 7200
	potential = {
		has_tradition = tr_plentiful_transformation_5
	}
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0
			OR = {
				is_mechanical_empire = yes
				is_cyborg_empire = yes
				has_authority = auth_machine_intelligence
			}
		}
	}
}

################
## To Barren World ##
################

terraform_link = {
	from = "pc_molten"
	to = "pc_barren"

	resources = {
		category = terraforming

		cost = {
			energy = 50000
			alloys = 15000
			volatile_motes = 1000
			exotic_gases = 1000
			rare_crystals = 1000
		}
	}

	duration = 7200
	potential = {
		has_tradition = tr_plentiful_transformation_5
	}
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0
			OR = {
				is_mechanical_empire = yes
				is_cyborg_empire = yes
				has_authority = auth_machine_intelligence
			}
		}
	}
}

################
## To Toxic World ##
################

terraform_link = {
	from = "pc_barren"
	to = "pc_toxic"
	
	resources = {
		category = terraforming

		cost = {
			energy = 50000
			alloys = 5000
			volatile_motes = 500
			exotic_gases = 500
			rare_crystals = 500
		}
	}

	duration = 7200
	potential = {
		has_tradition = tr_plentiful_transformation_5
	}
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0
			OR = {
				is_mechanical_empire = yes
				is_cyborg_empire = yes
				has_authority = auth_machine_intelligence
			}
		}
	}
}

################
## To Tomb World ##
################

terraform_link = {
	from = "pc_toxic"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 50000
			alloys = 1000
			exotic_gases = 500
		}
	}

	duration = 7200
	potential = {
		has_tradition = tr_plentiful_transformation_5
	}
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0
			OR = {
				is_mechanical_empire = yes
				is_cyborg_empire = yes
				has_authority = auth_machine_intelligence
			}
		}
	}
}

################
## To Tomb World ##
################

terraform_link = {
	from = "pc_barren_cold"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 50000
			alloys = 1000
			rare_crystals = 500
		}
	}

	duration = 7200
	potential = {
		has_tradition = tr_plentiful_transformation_5
	}
	condition = {
		solar_system = { NOT = { has_star_flag = dyson_sphere_built } }
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0
			OR = {
				is_mechanical_empire = yes
				is_cyborg_empire = yes
				has_authority = auth_machine_intelligence
			}
		}
	}
}

terraform_link = {
	from = "pc_frozen"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 50000
			alloys = 1000
			volatile_motes = 500
		}
	}

	duration = 7200
	potential = {
		has_tradition = tr_plentiful_transformation_5
	}
	condition = {
		solar_system = { NOT = { has_star_flag = dyson_sphere_built } }
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 2
		modifier = {
			factor = 0
			OR = {
				is_mechanical_empire = yes
				is_cyborg_empire = yes
				has_authority = auth_machine_intelligence
			}
		}
	}
}


################
## To Tomb World from "normal" ##
################

terraform_link = {
	from = "pc_continental"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 1000
		}
	}

	duration = 2400
	
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 0
	}
}

terraform_link = {
	from = "pc_tropical"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 1000
		}
	}

	duration = 2400
	
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 0
	}
}

terraform_link = {
	from = "pc_ocean"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 1000
		}
	}

	duration = 2400
	
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 0
	}
}

terraform_link = {
	from = "pc_arid"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 1000
		}
	}

	duration = 2400
	
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 0
	}
}

terraform_link = {
	from = "pc_desert"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 1000
		}
	}

	duration = 2400
	
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 0
	}
}

terraform_link = {
	from = "pc_savannah"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 1000
		}
	}

	duration = 2400
	
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 0
	}
}

terraform_link = {
	from = "pc_arctic"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 1000
		}
	}

	duration = 2400
	
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 0
	}
}

terraform_link = {
	from = "pc_tundra"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 1000
		}
	}

	duration = 2400
	
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 0
	}
}

terraform_link = {
	from = "pc_alpine"
	to = "pc_nuked"
	
	resources = {
		category = terraforming

		cost = {
			energy = 1000
		}
	}

	duration = 2400
	
	condition = {
		has_technology = "tech_climate_restoration"
		has_tradition = tr_plentiful_transformation_5
	}
	
	ai_weight = {
		weight = 0
	}
}