trade_post = {

	tr_lighthouse_1 = {		# Light House
		desc = tr_lighthouse_1_desc
		add_number_to_name = no
		
		replaces = tr_enclave_1

		#upgrades_from = tr_lighthouse_1
		prerequisites = { tr_harbor_2 }

		potential = {
			port = yes
			FROM = {
				is_patrician = yes
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 3
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 90

		gold_cost = 170
		build_time = 885

		tradevalue = 30
	}
	
	tr_farum_brigantium = {		# Farum Brigantium
		desc = tr_farum_brigantium_desc
		add_number_to_name = no
		
		replaces = tr_lighthouse_1

		#upgrades_from = tr_farum_brigantium
		#prerequisites = { #list }

		potential = {
			province = 156 #(c_coruna)
		}

		trigger = {
			TECH_TRADE_PRACTICES = 0
		}
		extra_tech_building_start = 0.0
		ai_creation_factor = 90

		gold_cost = 215
		build_time = 390

		tradevalue = 40
		
		monthly_character_prestige = 0.2
	}
	
	tr_lighthouse_meloria = {		# Meloria Lighthouse
		desc = tr_lighthouse_1_desc
		add_number_to_name = no
		
		replaces = tr_lighthouse_1

		#upgrades_from = tr_lighthouse_1
		prerequisites = { tr_harbor_1 }

		potential = {
			province = 327	#(Pisa)
		}

		trigger = {
			TECH_TRADE_PRACTICES = 3
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 90

		gold_cost = 300
		build_time = 980

		tradevalue = 35
		
		monthly_character_prestige = 0.1
	}
	tr_harbor_1 = {		# Wharf
		desc = tr_harbor_1_desc
		add_number_to_name = no
		
		replaces = tr_port_1

		#upgrades_from = tr_harbor_1
		#prerequisites = { #list }

		potential = {
			#NOT = { province = 496 }
			port = yes
			FROM = {
				is_patrician = yes
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 1
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 95

		gold_cost = 85
		build_time = 182

		tradevalue = 10
		

	}

	tr_harbor_2 = {		# Harbor
		desc = tr_harbor_2_desc
		add_number_to_name = no
		
		replaces = tr_port_2

		upgrades_from = tr_harbor_1
		#prerequisites = { #list }

		potential = {
			#NOT = { province = 496 }
			port = yes
			FROM = {
				is_patrician = yes
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 3
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 90

		gold_cost = 225
		build_time = 274

		fort_level = 2.5
		garrison_size = 2.0

		tradevalue = 20
		

	}

	tr_harbor_3 = {		# Fortified Harbor
		desc = tr_harbor_3_desc
		add_number_to_name = no
		
		replaces = tr_port_3

		upgrades_from = tr_harbor_2
		#prerequisites = { #list }

		potential = {
			#NOT = { province = 496 }
			port = yes
			FROM = {
				is_patrician = yes
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 6
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 85

		gold_cost = 450
		build_time = 960

		fort_level = 3.5
		garrison_size = 2.5

		tradevalue = 60
		

	}
# Trading Post in Foreign Lands

	tr_factory_1 = {	# Merchant Factory
		desc = tr_factory_1_desc
		add_number_to_name = no
		
		replaces = tr_enclave_1

		#upgrades_from = tr_factory_1
		prerequisites = { tr_harbor_1 }

		potential = {
			#NOT = { province = 496 }
			FROM = { is_patrician = yes }
			owner = {
				NOT = {
					character = FROM
					same_realm = FROM
				}
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 1
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 90

		gold_cost = 150
		build_time = 365
		
		#tax_income = -0.5

		monthly_character_prestige = 0.1	#Via Hidden modifier
		
		trade_route_value = 1.5		#The Factors ensure larger market share
		scouting = yes				#And they serve as eyes & Ears

	}

	tr_factory_2 = {	# Factory Consulate
		desc = tr_factory_2_desc
		add_number_to_name = no
		
		replaces = tr_enclave_2

		upgrades_from = tr_factory_1
		prerequisites = { tr_harbor_2 }

		potential = {
			#NOT = { province = 496 }
			FROM = { is_patrician = yes }
			owner = {
				NOT = {
					character = FROM
					same_realm = FROM
				}
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 3
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 90

		gold_cost = 225
		build_time = 365
		
		#tax_income = -0.5
		
		monthly_character_prestige = 0.15

		trade_route_value = 2.0

	}

	tr_factory_3 = {	# Merchant Guildhall
		desc = tr_factory_3_desc
		add_number_to_name = no
		
		replaces = tr_enclave_3

		upgrades_from = tr_factory_2
		#prerequisites = { tr_harbor_2 }

		potential = {
			#NOT = { province = 496 }
			FROM = { is_patrician = yes }
			owner = {
				NOT = {
					character = FROM
					same_realm = FROM
				}
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 5
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 90

		gold_cost = 350
		build_time = 520
		
		#tax_income = -0.5
		
		monthly_character_prestige = 0.25

		trade_route_value = 4
		

	}
	tr_warehouse_1 = {		# Warehouse
		desc = tr_warehouse_1_desc
		#add_number_to_name = yes
		
		replaces = tr_garrison_1

		#upgrades_from = tr_warehouse_1
		prerequisites = { tr_harbor_1 }

		potential = {
			port = yes
			FROM = {
				is_patrician = yes
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 1
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 90

		gold_cost = 80
		build_time = 365

		tradevalue = 20	#Stores of goods = more value in zone
		

	}

	tr_warehouse_2 = {		# Warehouse
		desc = tr_warehouse_2_desc
		#add_number_to_name = yes
		
		replaces = tr_garrison_2

		upgrades_from = tr_warehouse_1
		prerequisites = { tr_harbor_2 }

		potential = {
			port = yes
			FROM = {
				is_patrician = yes
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 3
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 90

		gold_cost = 80
		build_time = 365

		tradevalue = 20
		

	}

	tr_warehouse_3 = {		# Warehouse
		desc = tr_warehouse_3_desc
		#add_number_to_name = yes
		
		replaces = tr_garrison_3

		upgrades_from = tr_warehouse_2
		prerequisites = { tr_harbor_3 }

		potential = {
			port = yes
			FROM = {
				is_patrician = yes
			}
		}

		trigger = {
			TECH_TRADE_PRACTICES = 5
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 90

		gold_cost = 80
		build_time = 365

		tradevalue = 20
	}
	tr_customs_office_1 = {		# Customs Office
		desc = tr_customs_office_1_desc
		#add_number_to_name = no

		#upgrades_from = tr_customs_office_1
		#prerequisites = { list }

		potential = {
			owner = {
				is_patrician = no
				NOT = {
					character = FROM
					is_liege_or_above = FROM
				}
			}
		}

		trigger = {
			#TECH_TRADE_PRACTICES = 1
			custom_tooltip = {
				text = TOOLTIP_CUSTOMS_DUTY
				FROM = { is_patrician = no }
			}
		}
		extra_tech_building_start = 10.0
		ai_creation_factor = 105

		prestige_cost = 350
		build_time = 365

		trade_route_value = -1
	}
}