﻿#Buildings shared between multiple different resource districts

#Water Management Lines

#Things that supply water to irrigation dependent crops
#If tweaking these also keep in mind the underlying terrain penalties/bonuses

qanat_system_1 = { #Cisterns

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		culture = { has_cultural_parameter = unlocks_qanat_building }
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
		building_farmed_early_medieval_trigger = yes
		NOR = {
			terrain = floodplains
			terrain = wetlands
			terrain = taiga
			terrain = forest
			terrain = jungle
		}
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_modifier = {
		prosperity_growth = 0.02
		trade_category_cereals_production_mult = 0.25
		trade_good_cotton_production_mult = 0.25
		trade_good_flax_production_mult = 0.25
		trade_good_sugar_production_mult = 0.25
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.02
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.01
	}
	on_complete = {
	}
	next_building = qanat_system_2
	type_icon = "resource_buildings/qanats.dds"
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlocks_qanat_building }
		ai_resource_new_building_modifier = yes
	}

}

qanat_system_2 = { #Qanats

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		culture = { has_cultural_parameter = unlocks_qanat_building }
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
		NOR = {
			terrain = floodplains
			terrain = wetlands
			terrain = taiga
			terrain = forest
			terrain = jungle
		}
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_modifier = {
		prosperity_growth = 0.04
		trade_category_cereals_production_mult = 0.3
		trade_good_cotton_production_mult = 0.3
		trade_good_flax_production_mult = 0.3
		trade_good_sugar_production_mult = 0.3
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.04
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.02
	}
	on_complete = {
	}
	next_building = qanat_system_3
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlocks_qanat_building }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

qanat_system_3 = { #Windcatchers

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		culture = { has_cultural_parameter = unlocks_qanat_building }
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
		NOR = {
			terrain = floodplains
			terrain = wetlands
			terrain = taiga
			terrain = forest
			terrain = jungle
		}
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_modifier = {
		prosperity_growth = 0.05
		trade_category_cereals_production_mult = 0.4
		trade_good_cotton_production_mult = 0.4
		trade_good_flax_production_mult = 0.4
		trade_good_sugar_production_mult = 0.4
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.06
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.03
	}
	on_complete = {
	}
	next_building = qanat_system_4
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlocks_qanat_building }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

qanat_system_4 = { #Large Qanat Complex

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		culture = { has_cultural_parameter = unlocks_qanat_building }
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
		NOR = {
			terrain = floodplains
			terrain = wetlands
			terrain = taiga
			terrain = forest
			terrain = jungle
		}
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_modifier = {
		prosperity_growth = 0.06
		trade_category_cereals_production_mult = 0.45
		trade_good_cotton_production_mult = 0.45
		trade_good_flax_production_mult = 0.45
		trade_good_sugar_production_mult = 0.45
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.08
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.04
	}
	on_complete = {
	}
	next_building = qanat_system_5
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlocks_qanat_building }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

qanat_system_5 = { #Massive Qanat System

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		culture = { has_cultural_parameter = unlocks_qanat_building }
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
		NOR = {
			terrain = floodplains
			terrain = wetlands
			terrain = taiga
			terrain = forest
			terrain = jungle
		}
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_modifier = {
		prosperity_growth = 0.08
		trade_category_cereals_production_mult = 0.5
		trade_good_cotton_production_mult = 0.5
		trade_good_flax_production_mult = 0.5
		trade_good_sugar_production_mult = 0.5
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.1
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.05
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_cultural_unlock_building_modifier = { PARAMETER = unlocks_qanat_building }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Irrigation Networks for cultures without Qanat access
irrigation_network_1 = { #Irrigation Ditches

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { culture = { has_cultural_parameter = unlocks_qanat_building } }
		OR = {
			terrain = desert
			terrain = drylands
			terrain = desert_mountains
		}
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
		building_farmed_early_medieval_trigger = yes
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_modifier = {
		prosperity_growth = 0.01
		trade_category_cereals_production_mult = 0.125
		trade_good_cotton_production_mult = 0.125
		trade_good_flax_production_mult = 0.125
		trade_good_sugar_production_mult = 0.125
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.02
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.01
	}
	on_complete = {
	}
	next_building = irrigation_network_2
	type_icon = "resource_buildings/irrigation_network.dds"
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

irrigation_network_2 = { #Irrigation Canals

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { culture = { has_cultural_parameter = unlocks_qanat_building } }
		OR = {
			terrain = desert
			terrain = drylands
			terrain = desert_mountains
		}
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_modifier = {
		prosperity_growth = 0.02
		trade_category_cereals_production_mult = 0.15
		trade_good_cotton_production_mult = 0.15
		trade_good_flax_production_mult = 0.15
		trade_good_sugar_production_mult = 0.15
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.04
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.02
	}
	on_complete = {
	}
	next_building = irrigation_network_3
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

irrigation_network_3 = { #Flood Basins

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { culture = { has_cultural_parameter = unlocks_qanat_building } }
		OR = {
			terrain = desert
			terrain = drylands
			terrain = desert_mountains
		}
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_modifier = {
		prosperity_growth = 0.03
		trade_category_cereals_production_mult = 0.2
		trade_good_cotton_production_mult = 0.2
		trade_good_flax_production_mult = 0.2
		trade_good_sugar_production_mult = 0.2
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.06
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.03
	}
	on_complete = {
	}
	next_building = irrigation_network_4
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

irrigation_network_4 = { #Great Irrigation Works

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { culture = { has_cultural_parameter = unlocks_qanat_building } }
		OR = {
			terrain = desert
			terrain = drylands
			terrain = desert_mountains
		}
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_modifier = {
		prosperity_growth = 0.04
		trade_category_cereals_production_mult = 0.225
		trade_good_cotton_production_mult = 0.225
		trade_good_flax_production_mult = 0.225
		trade_good_sugar_production_mult = 0.225
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.08
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.04
	}
	on_complete = {
	}
	next_building = irrigation_network_5
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

irrigation_network_5 = { #Vast Irrigation Network

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { culture = { has_cultural_parameter = unlocks_qanat_building } }
		OR = {
			terrain = desert
			terrain = drylands
			terrain = desert_mountains
		}
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_modifier = {
		prosperity_growth = 0.05
		trade_category_cereals_production_mult = 0.25
		trade_good_cotton_production_mult = 0.25
		trade_good_flax_production_mult = 0.25
		trade_good_sugar_production_mult = 0.25
	}
	province_culture_modifier = {
		parameter = dryland_dwellers_irrigation_network_bonuses
		agricultural_tax_mult = 0.1
		stationed_light_cavalry_maintenance_low_modifier = -0.02
		stationed_camel_cavalry_maintenance_low_modifier = -0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.05
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		modifier = {
			add = 1
			OR = {
				#Counters penalties in regions with evaporation
				terrain = mountains
				terrain = desert_mountains
				terrain = desert
				terrain = drylands
				terrain = steppe
			}
		}
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

monsoon_water_management_1 = { #Reservoirs and Cisterns

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		tropical_seasons_region_trigger = yes
	}
	show_disabled = yes
	can_construct = {
	}
	can_construct_showing_failures_only = {
		building_farmed_early_medieval_trigger = yes
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_modifier = {
		prosperity_growth = 0.02
		trade_category_cereals_production_mult = 0.25
		trade_good_cotton_production_mult = 0.25
		trade_good_flax_production_mult = 0.25
		trade_good_sugar_production_mult = 0.25
	}
	province_culture_modifier = {
		parameter = hydraulic_builders_monsoon_bonuses
		agricultural_tax_mult = 0.02
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.01
	}
	on_complete = {
	}
	next_building = monsoon_water_management_2
	type_icon = "resource_buildings/monsoon_water_management.dds"
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

monsoon_water_management_2 = { #Stepwell

	construction_time = construction_time_9_months
	show_disabled = yes
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_modifier = {
		prosperity_growth = 0.04
		trade_category_cereals_production_mult = 0.3
		trade_good_cotton_production_mult = 0.3
		trade_good_flax_production_mult = 0.3
		trade_good_sugar_production_mult = 0.3
	}
	province_culture_modifier = {
		parameter = hydraulic_builders_monsoon_bonuses
		agricultural_tax_mult = 0.04
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.02
	}
	on_complete = {
	}
	next_building = monsoon_water_management_3
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

monsoon_water_management_3 = { #Level Canals

	construction_time = construction_time_1_year
	show_disabled = yes
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_modifier = {
		prosperity_growth = 0.05
		trade_category_cereals_production_mult = 0.4
		trade_good_cotton_production_mult = 0.4
		trade_good_flax_production_mult = 0.4
		trade_good_sugar_production_mult = 0.4
	}
	province_culture_modifier = {
		parameter = hydraulic_builders_monsoon_bonuses
		agricultural_tax_mult = 0.06
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.03
	}
	on_complete = {
	}
	next_building = monsoon_water_management_4
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

monsoon_water_management_4 = { #Greater Cisterns

	construction_time = construction_time_2_years
	show_disabled = yes
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_modifier = {
		prosperity_growth = 0.06
		trade_category_cereals_production_mult = 0.45
		trade_good_cotton_production_mult = 0.45
		trade_good_flax_production_mult = 0.45
		trade_good_sugar_production_mult = 0.45
	}
	province_culture_modifier = {
		parameter = hydraulic_builders_monsoon_bonuses
		agricultural_tax_mult = 0.08
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.04
	}
	on_complete = {
	}
	next_building = monsoon_water_management_5
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

monsoon_water_management_5 = { #Grand Waterworks

	construction_time = construction_time_3_years
	show_disabled = yes
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_modifier = {
		prosperity_growth = 0.08
		trade_category_cereals_production_mult = 0.5
		trade_good_cotton_production_mult = 0.5
		trade_good_flax_production_mult = 0.5
		trade_good_sugar_production_mult = 0.5
	}
	province_culture_modifier = {
		parameter = hydraulic_builders_monsoon_bonuses
		agricultural_tax_mult = 0.1
	}
	province_culture_modifier = {
		parameter = waterworks_agricultural_bonuses
		agricultural_tax_mult = 0.05
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Cooper Workshop

#Uses Wood to improve storage/transport for Wine, Beer, Fish and Oil

cooper_workshop_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_wine
				value > 0
			}
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_beer
				value > 0
			}
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_fish
				value > 0
			}
			production_of_trade_good_type = {
				target = trade_good_type:trade_good_oil
				value > 0
			}
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_1_tribal
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_wine_production_mult = cooper_multiplier_per_wood_need
				trade_good_beer_production_mult = cooper_multiplier_per_wood_need
				trade_good_fish_production_mult = cooper_multiplier_per_wood_need
				trade_good_oil_production_mult = cooper_multiplier_per_wood_need
				trade_good_honey_production_mult = cooper_multiplier_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = cooper_workshop_2
	type_icon = "old_buildings/workshops.dds"
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		directive_to_build_economy_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

cooper_workshop_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_2_tribal
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			province_modifier = {
				trade_good_wine_production_mult = cooper_multiplier_per_wood_need
				trade_good_beer_production_mult = cooper_multiplier_per_wood_need
				trade_good_fish_production_mult = cooper_multiplier_per_wood_need
				trade_good_oil_production_mult = cooper_multiplier_per_wood_need
				trade_good_honey_production_mult = cooper_multiplier_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = cooper_workshop_3
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

cooper_workshop_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_3_tribal
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			province_modifier = {
				trade_good_wine_production_mult = cooper_multiplier_per_wood_need
				trade_good_beer_production_mult = cooper_multiplier_per_wood_need
				trade_good_fish_production_mult = cooper_multiplier_per_wood_need
				trade_good_oil_production_mult = cooper_multiplier_per_wood_need
				trade_good_honey_production_mult = cooper_multiplier_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = cooper_workshop_4
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

cooper_workshop_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_4_tribal
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			province_modifier = {
				trade_good_wine_production_mult = cooper_multiplier_per_wood_need
				trade_good_beer_production_mult = cooper_multiplier_per_wood_need
				trade_good_fish_production_mult = cooper_multiplier_per_wood_need
				trade_good_oil_production_mult = cooper_multiplier_per_wood_need
				trade_good_honey_production_mult = cooper_multiplier_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = cooper_workshop_5
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

cooper_workshop_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cooper_income_tier_5_tribal
	}
	market_modifier = {
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				trade_good_wine_production_mult = cooper_multiplier_per_wood_need
				trade_good_beer_production_mult = cooper_multiplier_per_wood_need
				trade_good_fish_production_mult = cooper_multiplier_per_wood_need
				trade_good_oil_production_mult = cooper_multiplier_per_wood_need
				trade_good_honey_production_mult = cooper_multiplier_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Tanneries

#Consumes district-specific hide resources for Leather

#Output doubled with access to salt and alum

#Cattle Tannery

cattle_tannery_1 = {

	construction_time = construction_time_6_months
	district_level_requirement = 3
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = {
			target = trade_good_type:trade_good_cattle
			value > 0
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_1_tribal
	}
	market_modifier = {
		trade_good_cattle_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_cattle
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = cattle_tannery_2
	type_icon = "resource_buildings/tannery.dds"
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_new_building_modifier = yes
	}

}

cattle_tannery_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 3
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_2_tribal
	}
	market_modifier = {
		trade_good_cattle_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_cattle
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = cattle_tannery_3
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

cattle_tannery_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_3_tribal
	}
	market_modifier = {
		trade_good_cattle_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_cattle
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = cattle_tannery_4
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

cattle_tannery_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_4_tribal
	}
	market_modifier = {
		trade_good_cattle_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_cattle
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = cattle_tannery_5
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

cattle_tannery_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_5_tribal
	}
	market_modifier = {
		trade_good_cattle_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_cattle
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_category_modifier = { GOOD = trade_good_cattle CATEGORY = trade_category_beasts_of_burden }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Wool Tannery

wool_tannery_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = {
			target = trade_good_type:trade_good_wool
			value > 0
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_1_tribal
	}
	market_modifier = {
		trade_good_wool_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = wool_tannery_2
	type_icon = "resource_buildings/tannery.dds"
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wool }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_new_building_modifier = yes
	}

}

wool_tannery_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_2_tribal
	}
	market_modifier = {
		trade_good_wool_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = wool_tannery_3
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wool }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

wool_tannery_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_3_tribal
	}
	market_modifier = {
		trade_good_wool_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = wool_tannery_4
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wool }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

wool_tannery_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_4_tribal
	}
	market_modifier = {
		trade_good_wool_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = wool_tannery_5
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wool }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

wool_tannery_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_5_tribal
	}
	market_modifier = {
		trade_good_wool_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_wool
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wool }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Furs Tannery

furs_tannery_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = {
			target = trade_good_type:trade_good_furs
			value > 0
		}
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_1_tribal
	}
	market_modifier = {
		trade_good_furs_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_furs
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = furs_tannery_2
	type_icon = "resource_buildings/tannery.dds"
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_furs }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_new_building_modifier = yes
	}

}

furs_tannery_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_2_tribal
	}
	market_modifier = {
		trade_good_furs_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_furs
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = furs_tannery_3
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_furs }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

furs_tannery_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_3_tribal
	}
	market_modifier = {
		trade_good_furs_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_furs
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = furs_tannery_4
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_furs }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

furs_tannery_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_4_tribal
	}
	market_modifier = {
		trade_good_furs_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_furs
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	next_building = furs_tannery_5
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_furs }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

furs_tannery_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
	}
	can_construct_showing_failures_only = {
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = leather_income_tier_5_tribal
	}
	market_modifier = {
		trade_good_furs_sell_price_mult = price_basic_building_1
		trade_good_salt_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
		trade_good_wood_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_furs
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				trade_good_leather_production_add = tannery_leather_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_salt
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = 0.5
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_leather_level_tribal
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_wood
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_leather_production_mult = tanning_leather_mult_per_wood_need
				artisan_tax_mult = tax_mult_per_production_need
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_leather }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_furs }
		directive_to_build_economy_modifier = yes
		ai_resource_building_consumer_modifier = { GOOD = trade_good_salt }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_alum }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_wood }
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_leather }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Paper Mill

paper_workshop_1 = {

	construction_time = construction_time_6_months
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = {
			target = trade_good_type:trade_good_textiles #Lump/Rag Paper
			value > 0
		}
	}
	can_construct_showing_failures_only = {
		#Papermaking Innovation
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_1_tribal
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_textiles
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_books_paper_production_add = paper_workshop_paper_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = paper_workshop_2
	type_icon = "resource_buildings/paper_buildings.dds"
	ai_value = {
		base = 10.7
		ai_resource_building_need_modifier = { GOOD = trade_good_books_paper }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_books_paper }
		ai_resource_new_building_modifier = yes
	}

}

paper_workshop_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
		#Papermaking Innovation
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_2_tribal
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_textiles
		amount = basic_resource_need

		can_be_filled_multiple_times = 2

		modifiers = {
			province_modifier = {
				trade_good_books_paper_production_add = paper_workshop_paper_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = paper_workshop_3
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_books_paper }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_books_paper }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

paper_workshop_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
		#Papermaking Innovation
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_3_tribal
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_textiles
		amount = basic_resource_need

		can_be_filled_multiple_times = 3

		modifiers = {
			province_modifier = {
				trade_good_books_paper_production_add = paper_workshop_paper_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = paper_workshop_4
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_books_paper }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_books_paper }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

paper_workshop_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
		#Papermaking Innovation
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_4_tribal
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_textiles
		amount = basic_resource_need

		can_be_filled_multiple_times = 4

		modifiers = {
			province_modifier = {
				trade_good_books_paper_production_add = paper_workshop_paper_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = paper_workshop_5
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_books_paper }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_books_paper }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

paper_workshop_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
		#Papermaking Innovation
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = paper_income_tier_5_tribal
	}
	market_modifier = {
		trade_good_textiles_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_textiles
		amount = basic_resource_need

		can_be_filled_multiple_times = 5

		modifiers = {
			province_modifier = {
				trade_good_books_paper_production_add = paper_workshop_paper_output_per_need
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_paper_level_tribal
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_books_paper }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_textiles }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_books_paper }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

dyehouse_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = { target = trade_good_type:trade_good_textiles value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_1_tribal
	}
	market_modifier = {
		trade_good_dyes_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	on_complete = {
	}
	next_building = dyehouse_2
	type_icon = "resource_buildings/dyes_buildings.dds"
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

dyehouse_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = { target = trade_good_type:trade_good_textiles value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_2_tribal
	}
	market_modifier = {
		trade_good_dyes_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	on_complete = {
	}
	next_building = dyehouse_3
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

dyehouse_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = { target = trade_good_type:trade_good_textiles value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_3_tribal
	}
	market_modifier = {
		trade_good_dyes_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	on_complete = {
	}
	next_building = dyehouse_4
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

dyehouse_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = { target = trade_good_type:trade_good_textiles value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_4_tribal
	}
	market_modifier = {
		trade_good_dyes_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	on_complete = {
	}
	next_building = dyehouse_5
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

dyehouse_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		production_of_trade_good_type = { target = trade_good_type:trade_good_textiles value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = dyehouse_income_tier_5_tribal
	}
	market_modifier = {
		trade_good_dyes_sell_price_mult = price_basic_building_1
		trade_good_alum_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_dyes
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	trade_good_need = {
		trade_good = trade_good_alum
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_textiles_production_mult = dyehouse_textiles_mult_per_need
				artisan_tax_mult = dyehouse_artisan_tax_mult_per_need
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

seasonal_labor_shared_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_modifier = {
		trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_1
		trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_1
		monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_1
		agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_1
	}
	on_complete = {
	}
	next_building = seasonal_labor_shared_2
	type_icon = "regular_buildings/seasonal_labor_quarters.dds"
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

seasonal_labor_shared_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_modifier = {
		trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_2
		trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_2
		monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_2
		agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_2
	}
	on_complete = {
	}
	next_building = seasonal_labor_shared_3
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

seasonal_labor_shared_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_modifier = {
		trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_3
		trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_3
		monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_3
		agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_3
	}
	on_complete = {
	}
	next_building = seasonal_labor_shared_4
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

seasonal_labor_shared_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_modifier = {
		trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_4
		trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_4
		monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_4
		agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_4
	}
	on_complete = {
	}
	next_building = seasonal_labor_shared_5
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

seasonal_labor_shared_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_modifier = {
		trade_category_cereals_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_category_fabrics_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_category_luxury_consumption_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_good_hemp_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_good_fruit_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_good_cattle_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_good_honey_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_good_wine_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_good_tea_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_good_medicaments_production_mult = seasonal_labor_shared_agri_mult_tier_5
		trade_good_incense_production_mult = seasonal_labor_shared_agri_mult_tier_5
		monthly_province_size_change_when_below_baseline_add = seasonal_labor_size_growth_tier_5
		agricultural_tax_mult = seasonal_labor_shared_agri_tax_mult_tier_5
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

cordwainers_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_modifier = {
		trade_good_leather_production_mult = cordwainers_leather_output_mult_tier_1
		monthly_province_size_change_when_below_baseline_add = cordwainers_size_growth_tier_1
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_1_tribal
	}
	on_complete = {
	}
	next_building = cordwainers_2
	type_icon = "resource_buildings/cordwainers.dds"
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

cordwainers_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_modifier = {
		trade_good_leather_production_mult = cordwainers_leather_output_mult_tier_2
		monthly_province_size_change_when_below_baseline_add = cordwainers_size_growth_tier_2
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_2_tribal
	}
	on_complete = {
	}
	next_building = cordwainers_3
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

cordwainers_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_modifier = {
		trade_good_leather_production_mult = cordwainers_leather_output_mult_tier_3
		monthly_province_size_change_when_below_baseline_add = cordwainers_size_growth_tier_3
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_3_tribal
	}
	on_complete = {
	}
	next_building = cordwainers_4
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

cordwainers_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_modifier = {
		trade_good_leather_production_mult = cordwainers_leather_output_mult_tier_4
		monthly_province_size_change_when_below_baseline_add = cordwainers_size_growth_tier_4
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_4_tribal
	}
	on_complete = {
	}
	next_building = cordwainers_5
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

cordwainers_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_modifier = {
		trade_good_leather_production_mult = cordwainers_leather_output_mult_tier_5
		monthly_province_size_change_when_below_baseline_add = cordwainers_size_growth_tier_5
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = cordwainers_income_tier_5_tribal
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

saddlers_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_1_tribal
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need
		not_rite_parameter = leather_forbidden
		modifiers = {
			province_modifier = {
				stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = saddlers_2
	type_icon = "resource_buildings/saddlers.dds"
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_leather }
		directive_to_build_economy_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

saddlers_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_2_tribal
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		not_rite_parameter = leather_forbidden

		modifiers = {
			province_modifier = {
				stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = saddlers_3
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_leather }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

saddlers_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_3_tribal
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		not_rite_parameter = leather_forbidden

		modifiers = {
			province_modifier = {
				stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = saddlers_4
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_leather }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

saddlers_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_4_tribal
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		not_rite_parameter = leather_forbidden

		modifiers = {
			province_modifier = {
				stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = saddlers_5
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_leather }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

saddlers_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		NOT = { rite = { rite_has_parameter = leather_forbidden } }
		production_of_trade_good_type = { target = trade_good_type:trade_good_leather value > 0 }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = saddlers_income_tier_5_tribal
	}
	market_rite_modifier = {
		parameter = leather_permitted
		trade_good_leather_sell_price_mult = price_basic_building_1
	}
	trade_good_need = {
		trade_good = trade_good_leather
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		not_rite_parameter = leather_forbidden

			modifiers = {
			province_modifier = {
				stationed_light_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_light_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_heavy_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = saddlers_artisan_income_per_leather_need_tribal
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_leather }
		directive_to_build_economy_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

#Small Mining Pit - unlocked by the Ancient Miners tradition
small_mining_pit_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		culture = { has_cultural_parameter = ancient_miners_pit_mines }
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = normal_building_tax_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = normal_building_tax_tier_1_tribal
	}
	on_complete = {
	}
	next_building = small_mining_pit_2
	type_icon = "resource_buildings/mines.dds"
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_stone }
		directive_to_build_economy_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_stone }
		ai_cultural_unlock_building_modifier = { PARAMETER = ancient_miners_pit_mines }
		ai_resource_new_building_modifier = yes
	}

}

small_mining_pit_2 = {

	construction_time = construction_time_9_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		culture = { has_cultural_parameter = ancient_miners_pit_mines }
	}
	can_construct_showing_failures_only = {
		building_mineral_early_medieval_trigger = yes
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = normal_building_tax_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = normal_building_tax_tier_2_tribal
	}
	on_complete = {
	}
	next_building = small_mining_pit_3
	type_icon = "resource_buildings/mines.dds"
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_stone }
		directive_to_build_economy_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_stone }
		ai_cultural_unlock_building_modifier = { PARAMETER = ancient_miners_pit_mines }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

small_mining_pit_3 = {

	construction_time = construction_time_1_year
	can_construct_potential = {
		building_requirement_non_tribal = yes
		culture = { has_cultural_parameter = ancient_miners_pit_mines }
	}
	can_construct_showing_failures_only = {
		building_mineral_high_medieval_trigger = yes
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = normal_building_tax_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = normal_building_tax_tier_3_tribal
	}
	on_complete = {
	}
	type_icon = "resource_buildings/mines.dds"
	ai_value = {
		base = 10
		ai_resource_building_staple_need_modifier = { GOOD = trade_good_stone }
		directive_to_build_economy_modifier = yes
		ai_market_staple_shortage_modifier = { GOOD = trade_good_stone }
		ai_cultural_unlock_building_modifier = { PARAMETER = ancient_miners_pit_mines }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

#Murex Fisheries - harvested for Tyrian purple along the Mediterranean coast
murex_fisheries_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_murex_fisheries_requirement_trigger = yes
	}
	can_construct_showing_failures_only = {
		county = { NOT = { has_county_modifier = backwater_county_modifier } }
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_modifier = {
		trade_good_dyes_production_add = murex_dyes_output_1
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_1_tribal
	}
	character_government_modifier = {
		parameter = government_is_administrative
		monthly_influence = murex_influence_tier_1
	}
	on_complete = {
	}
	next_building = murex_fisheries_2
	type_icon = "old_buildings/murex_farms.dds"
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_dyes }
		ai_resource_new_building_modifier = yes
	}

}

murex_fisheries_2 = {

	construction_time = construction_time_9_months
	can_construct_potential = {
		building_murex_fisheries_requirement_trigger = yes
	}
	can_construct_showing_failures_only = {
		county = { NOT = { has_county_modifier = backwater_county_modifier } }
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_modifier = {
		trade_good_dyes_production_add = murex_dyes_output_2
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_2_tribal
	}
	character_government_modifier = {
		parameter = government_is_administrative
		monthly_influence = murex_influence_tier_2
	}
	on_complete = {
	}
	next_building = murex_fisheries_3
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_dyes }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

murex_fisheries_3 = {

	construction_time = construction_time_1_year
	can_construct_potential = {
		building_murex_fisheries_requirement_trigger = yes
	}
	can_construct_showing_failures_only = {
		county = { NOT = { has_county_modifier = backwater_county_modifier } }
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_modifier = {
		trade_good_dyes_production_add = murex_dyes_output_3
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_3_tribal
	}
	character_government_modifier = {
		parameter = government_is_administrative
		monthly_influence = murex_influence_tier_3
	}
	on_complete = {
	}
	next_building = murex_fisheries_4
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_dyes }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

murex_fisheries_4 = {

	construction_time = construction_time_2_years
	can_construct_potential = {
		building_murex_fisheries_requirement_trigger = yes
	}
	can_construct_showing_failures_only = {
		county = { NOT = { has_county_modifier = backwater_county_modifier } }
		building_artisanal_early_medieval_trigger = yes
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_modifier = {
		trade_good_dyes_production_add = murex_dyes_output_4
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_4_tribal
	}
	character_government_modifier = {
		parameter = government_is_administrative
		monthly_influence = murex_influence_tier_4
	}
	on_complete = {
	}
	next_building = murex_fisheries_5
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_dyes }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

murex_fisheries_5 = {

	construction_time = construction_time_3_years
	can_construct_potential = {
		building_murex_fisheries_requirement_trigger = yes
	}
	can_construct_showing_failures_only = {
		county = { NOT = { has_county_modifier = backwater_county_modifier } }
		building_artisanal_high_medieval_trigger = yes
	}
	is_enabled = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_modifier = {
		trade_good_dyes_production_add = murex_dyes_output_5
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_maritime_tax = murex_maritime_tax_tier_5_tribal
	}
	character_government_modifier = {
		parameter = government_is_administrative
		monthly_influence = murex_influence_tier_5
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_dyes }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_dyes }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

walrus_hunting_camp_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		county = { walrus_ivory_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_modifier = {
		trade_good_ivory_production_add = walrus_hunting_camp_ivory_tier_1
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_fish
		monthly_maritime_tax = walrus_hunting_camp_income_tier_1
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_furs
		monthly_woodland_tax = walrus_hunting_camp_income_tier_1
	}
	on_complete = {
	}
	next_building = walrus_hunting_camp_2
	type_icon = "resource_buildings/ivory_buildings.dds"
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_ivory }
		ai_resource_new_building_modifier = yes
	}

}

walrus_hunting_camp_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		county = { walrus_ivory_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_modifier = {
		trade_good_ivory_production_add = walrus_hunting_camp_ivory_tier_2
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_fish
		monthly_maritime_tax = walrus_hunting_camp_income_tier_2
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_furs
		monthly_woodland_tax = walrus_hunting_camp_income_tier_2
	}
	on_complete = {
	}
	next_building = walrus_hunting_camp_3
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_ivory }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

walrus_hunting_camp_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		county = { walrus_ivory_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_modifier = {
		trade_good_ivory_production_add = walrus_hunting_camp_ivory_tier_3
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_fish
		monthly_maritime_tax = walrus_hunting_camp_income_tier_3
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_furs
		monthly_woodland_tax = walrus_hunting_camp_income_tier_3
	}
	on_complete = {
	}
	next_building = walrus_hunting_camp_4
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_ivory }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

walrus_hunting_camp_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		county = { walrus_ivory_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_modifier = {
		trade_good_ivory_production_add = walrus_hunting_camp_ivory_tier_4
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_fish
		monthly_maritime_tax = walrus_hunting_camp_income_tier_4
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_furs
		monthly_woodland_tax = walrus_hunting_camp_income_tier_4
	}
	on_complete = {
	}
	next_building = walrus_hunting_camp_5
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_ivory }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

walrus_hunting_camp_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		county = { walrus_ivory_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_modifier = {
		trade_good_ivory_production_add = walrus_hunting_camp_ivory_tier_5
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_fish
		monthly_maritime_tax = walrus_hunting_camp_income_tier_5
	}
	province_potential_trade_good_modifier = {
		trade_good = trade_good_furs
		monthly_woodland_tax = walrus_hunting_camp_income_tier_5
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_ivory }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

naphta_pit_1 = {

	construction_time = construction_time_6_months
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { naphta_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_1_cost
	province_modifier = {
		trade_good_medicaments_production_add = naphta_pit_medicaments_tier_1
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_1_tribal
	}
	on_complete = {
	}
	next_building = naphta_pit_2
	type_icon = "resource_buildings/naphta_pit.dds"
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_new_building_modifier = yes
	}

}

naphta_pit_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { naphta_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_2_cost
	province_modifier = {
		trade_good_medicaments_production_add = naphta_pit_medicaments_tier_2
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_2_tribal
	}
	on_complete = {
	}
	next_building = naphta_pit_3
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

naphta_pit_3 = {

	construction_time = construction_time_1_year
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { naphta_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_3_cost
	province_modifier = {
		trade_good_medicaments_production_add = naphta_pit_medicaments_tier_3
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_3_tribal
	}
	on_complete = {
	}
	next_building = naphta_pit_4
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

naphta_pit_4 = {

	construction_time = construction_time_2_years
	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { naphta_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_4_cost
	province_modifier = {
		trade_good_medicaments_production_add = naphta_pit_medicaments_tier_4
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_4_tribal
	}
	on_complete = {
	}
	next_building = naphta_pit_5
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

naphta_pit_5 = {

	construction_time = construction_time_3_years
	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		county = { naphta_county_trigger = yes }
	}
	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	can_construct = {
	}
	cost_gold = resource_district_normal_tier_5_cost
	province_modifier = {
		trade_good_medicaments_production_add = naphta_pit_medicaments_tier_5
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_mining_tax = naphta_pit_income_tier_5_tribal
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}
