
is_extremely_cold_climate = {
	any_targeting_situation = { current_stage = extremely_cold_climate }
}

is_cold_climate = {
	OR = {
		is_planet_class = pc_arctic
		is_planet_class = pc_tundra
		is_planet_class = pc_alpine
	}
}

is_warm_climate = {
	OR = {
		is_planet_class = pc_arid
		is_planet_class = pc_continental
		is_planet_class = pc_ocean
	}
}

is_hot_climate = {
	OR = {
		is_planet_class = pc_desert
		is_planet_class = pc_tropical
		is_planet_class = pc_savannah
	}
}

is_extremely_hot_climate = {
	any_targeting_situation = { current_stage = extremely_hot_climate }
}

is_extremely_dry_climate = {
	any_targeting_situation = { current_stage = extremely_dry_climate }
}

is_dry_climate = {
	OR = {
		is_planet_class = pc_desert
		is_planet_class = pc_arid
		is_planet_class = pc_tundra
	}
}

is_temperate_climate = {
	OR = {
		is_planet_class = pc_continental
		is_planet_class = pc_savannah
		is_planet_class = pc_alpine
	}
}

is_wet_climate = {
	OR = {
		is_planet_class = pc_ocean
		is_planet_class = pc_tropical
		is_planet_class = pc_arctic
	}
}

is_extremely_wet_climate = {
	any_targeting_situation = { current_stage = extremely_wet_climate }
}

can_terraform_planet = {
	custom_tooltip = {
		fail_text = terraform_fail_no_presapient_protection_or_no_presapients
		NAND = {
			AND = {
				exists = owner
				owner = { has_policy_flag = pre_sapients_protect }
			}
			any_owned_species = { is_sapient = no }
		}
	}
	custom_tooltip = {
		fail_text = "requires_actor_not_devouring_swarm_lithoid"
		exists = owner
		owner = { is_lithoid_devouring_swarm = no }
	}
	custom_tooltip = {
		fail_text = "legendary_leader_planet_no_terraform"
		exists = owner
		this = {
			NOT = { has_carrier_flag = legendary_leader_planet }
		}
	}

	custom_tooltip = {
		fail_text = requires_not_relentless_industrialists_situation
		NOT = {
			any_targeting_situation = {
				is_situation_type = relentless_industrialists_situation
			}
		}
	}
}

has_volcanic_planet = {
	count_deposits = { type = d_active_volcano count > 3 }
}

has_unstable_tectonics = {
	has_modifier = unstable_tectonics
}

has_geological_activity = {
	NOT = { has_modifier = unstable_tectonics }
	OR = {
		has_modifier = abundant_geothermal_activity
		any_deposit = {
			is_deposit_type = d_active_volcano
			is_deposit_type = d_hot_springs
			is_deposit_type = d_geothermal_vent
			is_deposit_type = d_underwater_vent
		}
	}
}

is_bleak_planet = {
	OR = {
		has_modifier = bleak_planet
		count_deposits = { category = deposit_cat_food count = 0 }
	}
	OR = {
		is_planet_class = pc_desert
		is_planet_class = pc_arid
		is_planet_class = pc_arctic
		is_planet_class = pc_tundra
	}
}

is_badlands_planet = {
	count_deposits = { category = deposit_cat_food count <= 3 }
	OR = {
		is_planet_class = pc_desert
		is_planet_class = pc_arid
		is_planet_class = pc_arctic
		is_planet_class = pc_tundra
	}
}

is_oasis_planet = {
	count_deposits = { category = deposit_cat_food count <= 5 }
	OR = {
		is_planet_class = pc_desert
		is_planet_class = pc_arid
		is_planet_class = pc_arctic
		is_planet_class = pc_tundra
		is_planet_class = pc_savannah
		is_planet_class = pc_alpine
	}
}

is_green_planet = {
	count_deposits = { category = deposit_cat_food count <= 7 }
	OR = {
		is_planet_class = pc_continental
		is_planet_class = pc_ocean
		is_planet_class = pc_tropical
	}
}

is_geological_deposit = {
	OR = {
		is_deposit_type = d_active_volcano
		is_deposit_type = d_hot_springs
		is_deposit_type = d_geothermal_vent
	}
}

is_ideal_cold_climate = {
	owner = {
		OR = {
			ideal_planet_class = pc_arctic
			ideal_planet_class = pc_tundra
			ideal_planet_class = pc_alpine
		}
	}
}

is_ideal_warm_climate = {
	owner = {
		OR = {
			ideal_planet_class = pc_arid
			ideal_planet_class = pc_continental
			ideal_planet_class = pc_ocean
		}
	}
}

is_ideal_hot_climate = {
	owner = {
		OR = {
			ideal_planet_class = pc_desert
			ideal_planet_class = pc_tropical
			ideal_planet_class = pc_savannah
		}
	}
}

is_ideal_dry_climate = {
	owner = {
		OR = {
			ideal_planet_class = pc_desert
			ideal_planet_class = pc_arid
			ideal_planet_class = pc_tundra
		}
	}
}

is_ideal_temperate_climate = {
	owner = {
		OR = {
			ideal_planet_class = pc_continental
			ideal_planet_class = pc_savannah
			ideal_planet_class = pc_alpine
		}
	}
}

is_ideal_wet_climate = {
	owner = {
		OR = {
			ideal_planet_class = pc_ocean
			ideal_planet_class = pc_tropical
			ideal_planet_class = pc_arctic
		}
	}
}


is_cold_to_warm_deposit = {
	OR = {
		is_deposit_type = d_frozen_gas_lake
		is_deposit_type = d_lichen_fields
		is_deposit_type = d_forgiving_tundra
		is_deposit_type = d_fungal_caves
		is_deposit_type = d_fungal_forest
	}
}

is_warm_to_hot_deposit = {
	OR = {
		is_deposit_type = d_underwater_vent
		is_deposit_type = d_bountiful_plains
		is_deposit_type = d_rugged_woods
		is_deposit_type = d_boggy_fens
		is_deposit_type = d_fertile_lands
		is_deposit_type = d_teeming_reef
	}
}

is_hot_to_warm_deposit = {
	OR = {
		is_deposit_type = d_searing_desert
		is_deposit_type = d_nutritious_mudland
		is_deposit_type = d_tropical_island
	}
}

is_warm_to_cold_deposit = {
	OR = {
		is_deposit_type = d_arid_highlands
		is_deposit_type = d_rushing_waterfalls
		is_deposit_type = d_searing_desert
		is_deposit_type = d_underwater_vent
		is_deposit_type = d_tempestous_mountain
		is_deposit_type = d_submerged_ore_veins
		is_deposit_type = d_bountiful_plains
		is_deposit_type = d_rugged_woods
		is_deposit_type = d_green_hills
		is_deposit_type = d_boggy_fens
		is_deposit_type = d_lush_jungle
		is_deposit_type = d_fertile_lands
		is_deposit_type = d_great_river
		is_deposit_type = d_black_soil
		is_deposit_type = d_teeming_reef
		is_deposit_type = d_marvelous_oasis
		is_deposit_type = d_tropical_island
	}
}

is_dry_to_temperate_deposit = {
	OR = {
		is_deposit_type = d_arid_highlands
		is_deposit_type = d_searing_desert
		is_deposit_type = d_bountiful_plains
		is_deposit_type = d_nutritious_mudland
		is_deposit_type = d_great_river
		is_deposit_type = d_marvelous_oasis
		is_deposit_type = d_tropical_island
	}
}
	
is_temperate_to_wet_deposit = {
	OR = {
		is_deposit_type = d_arid_highlands
		is_deposit_type = d_searing_desert
		is_deposit_type = d_tempestous_mountain
		is_deposit_type = d_bountiful_plains
		is_deposit_type = d_rugged_woods
		is_deposit_type = d_forgiving_tundra
		is_deposit_type = d_fertile_lands
		is_deposit_type = d_black_soil
	}
}

is_wet_to_temperate_deposit = {
	OR = {
		is_deposit_type = d_underwater_vent
		is_deposit_type = d_tempestous_mountain
		is_deposit_type = d_lichen_fields
		is_deposit_type = d_green_hills
		is_deposit_type = d_boggy_fens
		is_deposit_type = d_lush_jungle
		is_deposit_type = d_teeming_reef
		is_deposit_type = d_tropical_island
	}
}

is_temperate_to_dry_deposit = {
	OR = {
		is_deposit_type = d_hot_springs
		is_deposit_type = d_rushing_waterfalls
		is_deposit_type = d_tempestous_mountain
		is_deposit_type = d_submerged_ore_veins
		is_deposit_type = d_bountiful_plains
		is_deposit_type = d_rugged_woods
		is_deposit_type = d_fertile_lands
		is_deposit_type = d_black_soil
	}
}


has_cold_to_warm_deposit = {
	OR = {
		has_deposit = d_frozen_gas_lake
		has_deposit = d_lichen_fields
		has_deposit = d_forgiving_tundra
		has_deposit = d_fungal_caves
		has_deposit = d_fungal_forest
	}
}

has_warm_to_hot_deposit = {
	OR = {
		has_deposit = d_underwater_vent
		has_deposit = d_bountiful_plains
		has_deposit = d_rugged_woods
		has_deposit = d_boggy_fens
		has_deposit = d_fertile_lands
		has_deposit = d_teeming_reef
	}
}

has_hot_to_warm_deposit = {
	OR = {
		has_deposit = d_searing_desert
		has_deposit = d_nutritious_mudland
		has_deposit = d_tropical_island
	}
}

has_warm_to_cold_deposit = {
	OR = {
		has_deposit = d_arid_highlands
		has_deposit = d_rushing_waterfalls
		has_deposit = d_searing_desert
		has_deposit = d_underwater_vent
		has_deposit = d_tempestous_mountain
		has_deposit = d_submerged_ore_veins
		has_deposit = d_bountiful_plains
		has_deposit = d_rugged_woods
		has_deposit = d_green_hills
		has_deposit = d_boggy_fens
		has_deposit = d_lush_jungle
		has_deposit = d_fertile_lands
		has_deposit = d_great_river
		has_deposit = d_black_soil
		has_deposit = d_teeming_reef
		has_deposit = d_marvelous_oasis
		has_deposit = d_tropical_island
	}
}

has_dry_to_temperate_deposit = {
	OR = {
		has_deposit = d_arid_highlands
		has_deposit = d_searing_desert
		has_deposit = d_bountiful_plains
		has_deposit = d_nutritious_mudland
		has_deposit = d_great_river
		has_deposit = d_marvelous_oasis
		has_deposit = d_tropical_island
	}
}
	
has_temperate_to_wet_deposit = {
	OR = {
		has_deposit = d_arid_highlands
		has_deposit = d_searing_desert
		has_deposit = d_tempestous_mountain
		has_deposit = d_bountiful_plains
		has_deposit = d_rugged_woods
		has_deposit = d_forgiving_tundra
		has_deposit = d_fertile_lands
		has_deposit = d_black_soil
	}
}

has_wet_to_temperate_deposit = {
	OR = {
		has_deposit = d_underwater_vent
		has_deposit = d_tempestous_mountain
		has_deposit = d_lichen_fields
		has_deposit = d_green_hills
		has_deposit = d_boggy_fens
		has_deposit = d_lush_jungle
		has_deposit = d_teeming_reef
		has_deposit = d_tropical_island
	}
}

has_temperate_to_dry_deposit = {
	OR = {
		has_deposit = d_hot_springs
		has_deposit = d_rushing_waterfalls
		has_deposit = d_tempestous_mountain
		has_deposit = d_submerged_ore_veins
		has_deposit = d_bountiful_plains
		has_deposit = d_rugged_woods
		has_deposit = d_fertile_lands
		has_deposit = d_black_soil
	}
}

has_terraforming_project = {
	OR = {
		has_modifier = atmospheric_heating_process
		has_modifier = atmospheric_cooling_process
		has_modifier = hydrosphere_saturation_process
		has_modifier = hydrosphere_depletion_process
		has_modifier = deep_borehole_drilling
		has_modifier = aquifer_release 
		has_modifier = greening_operation
		has_modifier = gaia_project
		has_modifier = climate_restoration_project
		has_modifier = large_water_export
		has_modifier = small_water_export
		has_modifier = large_hydrogen_export
		has_modifier = small_hydrogen_export
		has_modifier = large_methane_export
		has_modifier = small_methane_export
		has_modifier = large_greenhouse_gas_export
		has_modifier = small_greenhouse_gas_export
		has_modifier = large_nitrogen_export
		has_modifier = small_nitrogen_export
		has_modifier = large_fertilizer_export
		has_modifier = small_fertilizer_export
	}
}