﻿building_suez_canal = {
	building_group = bg_canals
	icon = "gfx/interface/icons/building_icons/suez_canal.dds"
	canal = canal_suez
	expandable = no
	downsizeable = no
	unique = yes
	required_construction = construction_cost_canal

	ai_value = 50000 # Canals are very important

	unlocking_technologies = {
		colonization
	}

	potential = {
		state_region = s:STATE_SINAI
	}

	possible = {
		owner = {
			OR = {
				owns_treaty_port_in = STATE_SINAI
				owns_entire_state_region = STATE_SINAI
			}
			custom_tooltip = {
				text = suez_survey_complete_tooltip
				has_variable = suez_survey_complete
			}
		}
	}

	entity_not_constructed = { }
	entity_under_construction = { "canal_suezcanal_under_construction_01_entity" }
	entity_constructed = { "canal_suezcanal_01_entity" }
	locator = "canal_suez_locator"

	city_gfx_interactions = {
		clear_collision_mesh_area = yes
		clear_size_area = no
	}

	production_method_groups = {
		pmg_canal
	}

	background = "gfx/interface/icons/building_icons/backgrounds/building_panel_bg_harbour.dds"
}

building_panama_canal = {
	building_group = bg_canals
	icon = "gfx/interface/icons/building_icons/panama_canal.dds"
	canal = canal_panama
	expandable = no
	downsizeable = no
	unique = yes
	required_construction = construction_cost_canal

	ai_value = 50000 # Canals are very important

	unlocking_technologies = {
		civilizing_mission
	}

	potential = {
		state_region = s:STATE_PANAMA
	}

	possible = {
		owner = {
			OR = {
				owns_treaty_port_in = STATE_PANAMA
				owns_entire_state_region = STATE_PANAMA
			}
			custom_tooltip = {
				text = panama_survey_complete_tooltip
				has_variable = panama_survey_complete
			}
		}
	}

	entity_not_constructed = { }
	entity_under_construction = { "canal_panamacanal_under_construction_01_entity" }
	entity_constructed = { "canal_panamacanal_01_entity" }
	locator = "canal_panama_locator"

	city_gfx_interactions = {
		clear_collision_mesh_area = yes
		clear_size_area = no
	}

	production_method_groups = {
		pmg_canal
	}

	background = "gfx/interface/icons/building_icons/backgrounds/building_panel_bg_harbour.dds"
}
