###############################
## geological reconstruction ##
###############################

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

		cost = {
			energy = 500
		}
	}
	duration = 360
	
	condition = {
		has_technology = "tech_ult_geological_reconstruction"
	}
	
	ai_weight = {
		weight = 100
	}
	
}

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

		cost = {
			energy = 500
		}
	}
	duration = 360
	
	condition = {
		has_technology = "tech_ult_geological_reconstruction"
	}
	
	ai_weight = {
		weight = 50
	}
	
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	condition = {
		has_technology = "tech_ult_geological_reconstruction"
	}
}



#################
## Edenization ##
#################

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 30000
		}
	}
	duration = 7200
	
	potential = {
		has_ascension_perk = "ap_world_shaper"
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

########################

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 20000
		}
	}
	duration = 7200
	
	potential = {
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 30000
		}
	}
	duration = 7200
	
	potential = {
		has_ascension_perk = "ap_world_shaper"
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

###################
## Machine World ##
###################

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

		cost = {
			energy = 30000
		}
	}
	duration = 7200
	
	potential = {
		has_ascension_perk = ap_machine_worlds
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 30000
		}
	}
	duration = 7200
	
	potential = {
		has_ascension_perk = ap_machine_worlds
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}


###################
## Hive World ##
###################

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

		cost = {
			energy = 30000
		}
	}
	duration = 7200
	
	potential = {
		has_ascension_perk = ap_hive_worlds
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}

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

		cost = {
			energy = 30000
		}
	}
	duration = 7200
	
	potential = {
		has_ascension_perk = ap_hive_worlds
		from = { NOT = { has_modifier = terraforming_candidate } }
	}
	
	condition = {
		has_technology = "tech_ult_edenization"
	}
	
	ai_weight = {
		weight = 0
	}
}