﻿###Trade district
###Dedicated Road

district_01 = {
	construction_time = quick_construction_time

	can_construct_potential = {
		has_building_or_higher = city_01
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = cheap_building_tier_1_cost
	
	province_modifier = {
		monthly_income = poor_building_tax_tier_1
	}
	county_modifier = {
		development_growth = 0.10
	}
	
	next_building = district_02

	type_icon = "icon_building_district.dds"
	
	ai_value = {
		base = 1
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###Stall permits

district_02 = {
	construction_time = quick_construction_time

	can_construct_potential = {
		has_building_or_higher = city_01
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = cheap_building_tier_2_cost
	
	province_modifier = {
		monthly_income = 0.4
	}
	county_modifier = {
		development_growth = 0.15
	}
	
	next_building = district_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

#tavern

district_03 = {
	construction_time = slow_construction_time

	can_construct = {
		has_building_or_higher = city_02
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = 350
	
	province_modifier = {
		monthly_income = 0.7
	}
	county_modifier = {
		development_growth = 0.20
		county_opinion_add = 1
	}
	
	next_building = district_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###brothel

district_04 = {
	construction_time = slow_construction_time

	can_construct = {
		has_building_or_higher = city_02
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	cost_gold = 450

	province_modifier = {
		monthly_income = 1.1
	}

	county_modifier = {
		development_growth = 0.20
		county_opinion_add = 5
		epidemic_resistance = -5
	}
	
	next_building = district_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###brewery

district_05 = {
	construction_time = slow_construction_time

	can_construct = {
		has_building_or_higher = city_03
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = 500

	province_modifier = {
		monthly_income = 1.7
	}
	county_modifier = {
		development_growth = 0.20
		county_opinion_add = 5
		epidemic_resistance = -5
	}

	next_building = district_06
	ai_value = {
		base = 0
		modifier = {
			add = 6
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###tools & weapon smith

district_06 = {
	construction_time = slow_construction_time

	can_construct = {
		has_building_or_higher = city_03
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}


	cost_gold = 550

	max_garrison = 150

	province_modifier = {
		monthly_income = 2.2
	}
	county_modifier = {
		development_growth = 0.20
		county_opinion_add = 5
		epidemic_resistance = -5
	}

	next_building = district_07

	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###City Council

district_07 = {
	construction_time = very_slow_construction_time

	can_construct = {
		has_building_or_higher = city_04
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}


	cost_gold = 650

	max_garrison = 100

	province_modifier = {
		monthly_income = 2.4
	}
	county_modifier = {
		development_growth = 0.30
		monthly_county_control_growth_factor = 0.2
		monthly_county_control_growth_add = 0.1
		county_opinion_add = 6
		epidemic_resistance = -5
	}



	next_building = district_08

	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###large tavern

district_08 = {
	construction_time = very_slow_construction_time

	can_construct = {
		has_building_or_higher = city_04
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	

	cost_gold = 1800

	max_garrison = 150
	
	province_modifier = {
		monthly_income = 3.5
	}
	county_modifier = {
		development_growth = 0.30
		monthly_county_control_growth_factor = 0.2
		monthly_county_control_growth_add = 0.1
		county_opinion_add = 10
		epidemic_resistance = -10
	}


	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###Slaughterhouses
###Local Abattoirs
slaughterhouse_01 = {
	construction_time = 920

	can_construct_potential = {
		building_slaughterhouse_requirement_terrain = yes
		building_requirement_tribal = no
	}

	can_construct = {
		has_building_or_higher = city_01
		has_building_or_higher = pastures_01
		
	}

	cost_gold = 175
	
	province_modifier = {
		monthly_income = 0.4
	}
	county_modifier = {
		supply_limit = 500
	}
	
	next_building = slaughterhouse_02

	type_icon = "icon_building_slaughterhouse.dds"
	
	ai_value = {
		base = 1
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###Butchery
slaughterhouse_02 = {
	construction_time = 920

	can_construct_potential = {
		building_slaughterhouse_requirement_terrain = yes
		building_requirement_tribal = no
	}

	can_construct = {
		has_building_or_higher = city_02
		has_building_or_higher = pastures_02
		scope:holder.culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	cost_gold = 325
	
	province_modifier = {
		monthly_income = 0.9
	}
	county_modifier = {
		supply_limit = 1000
		development_growth_factor = 0.05
	}
	
	next_building = slaughterhouse_03
	
	ai_value = {
		base = 1
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###Livestock market
slaughterhouse_03 = {
	construction_time = 580

	can_construct_potential = {
		building_slaughterhouse_requirement_terrain = yes
		building_requirement_tribal = no
	}

	can_construct = {
		has_building_or_higher = city_03
		has_building_or_higher = pastures_03
		scope:holder.culture = {
			has_innovation = innovation_manorialism
		}
	}

	cost_gold = 500
	
	province_modifier = {
		monthly_income = 1.5
	}
	county_modifier = {
		supply_limit = 2000
		development_growth_factor = 0.05
	}
	
	next_building = slaughterhouse_04

	ai_value = {
		base = 1
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

###easteries
slaughterhouse_04 = {
	construction_time = 1120

	can_construct_potential = {
		building_slaughterhouse_requirement_terrain = yes
		building_requirement_tribal = no
	}

	can_construct = {
		has_building_or_higher = city_04
		has_building_or_higher = pastures_04
		scope:holder.culture = {
			has_innovation = innovation_windmills
		}
	}

	cost_gold = 710
	
	province_modifier = {
		monthly_income = 2.3
		levy_reinforcement_rate = 0.20
	}

	county_modifier = {
		supply_limit = 3500
		development_growth_factor = 0.10
	}
	
	ai_value = {
		base = 1
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}