# Trade Post Buildings specific to the Saharan Trade Route
trade_post = {
	# Trade Post
	tr_sahara_1 = { # Saharan Trading Post
		potential = {
			trade_route = trans_saharan_trade_route
			trans_saharan_trade_post_market_trigger = yes
		}
		desc = tr_sahara_1_desc
		trigger = {
			TECH_TRADE_PRACTICES >= 1
			trading_post_building_allow = yes
		}
		gold_cost = 200
		build_time = 150
		ai_creation_factor = 95
		add_number_to_name = no

		trade_route_wealth = 1	# Affects total value of trade route
		tradevalue = 20

		extra_tech_building_start = 10.0 # Never get at start of game
	}
	tr_sahara_2 = { # Saharan Trading Center
		potential = {
			trade_route = trans_saharan_trade_route
			trans_saharan_trade_post_market_trigger = yes
		}
		desc = tr_sahara_2_desc
		trigger = {
			TECH_TRADE_PRACTICES >= 2
			trading_post_building_allow = yes
		}
		gold_cost = 400
		build_time = 300
		upgrades_from = tr_sahara_1
		ai_creation_factor = 95
		add_number_to_name = no

		trade_route_wealth = 2	# Affects total value of trade route
		tradevalue = 40
		fort_level = 1

		extra_tech_building_start = 10.0 # Never get at start of game
	}
	tr_sahara_3 = { # Major Saharan Trading Center
		potential = {
			trade_route = trans_saharan_trade_route
			trans_saharan_trade_post_market_trigger = yes
		}
		desc = tr_sahara_3_desc
		trigger = {
			TECH_TRADE_PRACTICES >= 4
			trading_post_building_allow = yes
		}
		gold_cost = 800
		build_time = 600
		upgrades_from = tr_sahara_2
		ai_creation_factor = 95
		add_number_to_name = no

		trade_route_wealth = 4	# Affects total value of trade route
		tradevalue = 60
		fort_level = 1

		extra_tech_building_start = 10.0 # Never get at start of game
	}

	# Gold Mine
	tr_gold_mine_1 = {
		potential = {
			trade_route = trans_saharan_trade_route
			trans_saharan_trade_post_gold_mine_trigger = yes
		}
		desc = tr_gold_mine_1_desc
		is_active_trigger = {
			ROOT = {
				NOT = { has_province_modifier = depleted_gold_mine }
			}
		}
		trigger = {
			#TECH_CONSTRUCTION = 1
			trading_post_building_allow = yes
		}
		gold_cost = 100
		build_time = 182
		ai_creation_factor = 95

		trade_route_wealth = 5
		tradevalue = 100
		monthly_character_prestige = 0.25

		extra_tech_building_start = 10.0 # Never get at start of game
	}
	tr_gold_mine_2 = {
		potential = {
			trade_route = trans_saharan_trade_route
			trans_saharan_trade_post_gold_mine_trigger = yes
		}
		desc = tr_gold_mine_2_desc
		is_active_trigger = {
			ROOT = {
				NOT = { has_province_modifier = depleted_gold_mine }
			}
		}
		trigger = {
			TECH_TRADE_PRACTICES >= 1
			TECH_CONSTRUCTION >= 1
			trading_post_building_allow = yes
		}
		gold_cost = 400
		build_time = 365
		upgrades_from = tr_gold_mine_1
		ai_creation_factor = 95

		trade_route_wealth = 10
		tradevalue = 150
		monthly_character_prestige = 0.5

		extra_tech_building_start = 10.0 # Never get at start of game
	}
	tr_gold_mine_3 = {
		potential = {
			trade_route = trans_saharan_trade_route
			trans_saharan_trade_post_gold_mine_trigger = yes
		}
		desc = tr_gold_mine_3_desc
		is_active_trigger = {
			ROOT = {
				NOT = { has_province_modifier = depleted_gold_mine }
			}
		}
		trigger = {
			TECH_TRADE_PRACTICES >= 2
			TECH_CONSTRUCTION >= 2
			trading_post_building_allow = yes
		}
		gold_cost = 1000
		build_time = 730
		upgrades_from = tr_gold_mine_2
		ai_creation_factor = 95

		trade_route_wealth = 15
		tradevalue = 200
		monthly_character_prestige = 1

		extra_tech_building_start = 10.0 # Never get at start of game
	}

	# Salt Mine
	tr_salt_mine_1 = {
		potential = {
			trade_route = trans_saharan_trade_route
			OR = {
				province_id = c_aoudaghost
				province_id = c_taghaza
			}
		}
		desc = tr_salt_mine_1_desc
		trigger = {
			TECH_CONSTRUCTION >= 1
			trading_post_building_allow = yes
		}
		gold_cost = 250
		build_time = 182
		ai_creation_factor = 95

		trade_route_wealth = 5
		tradevalue = 60
		monthly_character_prestige = 0.25
		military_techpoints = 0.01
		add_number_to_name = no

		extra_tech_building_start = 10.0 # Never get at start of game
	}

	# Cloth Production
	tr_cloth_production_1 = {
		potential = {
			trade_route = trans_saharan_trade_route
			province_id = c_timbuktu
		}
		desc = tr_cloth_production_1_desc
		trigger = {
			TECH_TRADE_PRACTICES >= 1
			trading_post_building_allow = yes
		}
		gold_cost = 200
		build_time = 182
		ai_creation_factor = 95

		trade_route_wealth = 5
		tradevalue = 75
		monthly_character_prestige = 0.25
		economy_techpoints = 0.01
		add_number_to_name = no

		extra_tech_building_start = 10.0 # Never get at start of game
	}
}