﻿spice_gardens_1 = {
	construction_time = construction_time_6_months

	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_spices }
		NOT = {
			has_building_or_higher = spices_resource_building_1
		}
	}

	can_construct_showing_failures_only = {
	}
	
	is_enabled = {
		
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_1_cost

	province_modifier = {
		trade_good_spices_production_add = minor_spices_output_1
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = secondary_resource_building_income_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = secondary_resource_building_income_1_tribal
	}
	
	on_complete = {

	}

	next_building = spice_gardens_2
	type_icon = "resource_buildings/spice_gardens.dds"
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_new_building_modifier = yes
	}
}

spice_gardens_2 = {
	construction_time = construction_time_9_months

	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_spices }
		NOT = {
			has_building_or_higher = spices_resource_building_1
		}
	}

	can_construct_showing_failures_only = {
		building_artisanal_early_medieval_trigger = yes
	}
	
	is_enabled = {

	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_2_cost

	province_modifier = { #Base increase
		trade_good_spices_production_add = minor_spices_output_2
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = secondary_resource_building_income_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = secondary_resource_building_income_2_tribal
	}

	on_complete = {

	}

	next_building = spice_gardens_3
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}
}

spice_gardens_3 = {
	construction_time = construction_time_1_year

	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_spices }
		NOT = {
			has_building_or_higher = spices_resource_building_1
		}
	}

	can_construct_showing_failures_only = {
		building_artisanal_high_medieval_trigger = yes
	}
	
	is_enabled = {

	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_3_cost

	province_modifier = { #Base increase
		trade_good_spices_production_add = minor_spices_output_3
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = secondary_resource_building_income_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = secondary_resource_building_income_3_tribal
	}
	
	on_complete = {

	}

	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}
}

spices_resource_building_1 = {
	construction_time = construction_time_6_months
	

	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_spices }
	}

	can_construct_showing_failures_only = {
	}
	
	is_enabled = {
		
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_1_cost

	province_modifier = {
		building_slots_for_host_district = 1
		trade_good_spices_production_add = precious_crops_tier_1_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_1_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_1_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}
	

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_low
	}

	on_complete = {

	}

	next_building = spices_resource_building_2
	type_icon = "district_buildings/spice_district.dds"
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_new_building_modifier = yes
	}
}

spices_resource_building_2 = {
	construction_time = construction_time_9_months

	can_construct_showing_failures_only = {
	}
	
	is_enabled = {

	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_2_cost

	province_modifier = {
		building_slots_for_host_district = 1
		trade_good_spices_production_add = precious_crops_tier_2_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_2_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_2_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_low
	}

	next_building = spices_resource_building_3
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_district_upgrade_modifier = { LEVEL = 2 }
	}
}

spices_resource_building_3 = {
	construction_time = construction_time_1_year

	can_construct_showing_failures_only = {
		building_artisanal_early_medieval_trigger = yes
		holding_district_level_2_trigger = yes
	}
	
	is_enabled = {

	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_3_cost

	province_modifier = {
		building_slots_for_host_district = 2
		trade_good_spices_production_add = precious_crops_tier_3_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_3_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_3_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_low
	}

	next_building = spices_resource_building_4
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_district_upgrade_modifier = { LEVEL = 3 }
	}
}

spices_resource_building_4 = {
	construction_time = construction_time_2_years

	can_construct_showing_failures_only = {
		building_artisanal_early_medieval_trigger = yes
		holding_district_level_2_trigger = yes
	}
	
	is_enabled = {

	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_4_cost

	province_modifier = {
		building_slots_for_host_district = 2
		trade_good_spices_production_add = precious_crops_tier_4_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_4_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_4_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_low
	}

	next_building = spices_resource_building_5
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_district_upgrade_modifier = { LEVEL = 4 }
	}
}

spices_resource_building_5 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_artisanal_high_medieval_trigger = yes
		holding_district_level_3_trigger = yes
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_5_cost

	province_modifier = {
		building_slots_for_host_district = 3
		trade_good_spices_production_add = precious_crops_tier_5_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_5_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_5_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_mid
	}

	next_building = spices_resource_building_6
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_district_upgrade_modifier = { LEVEL = 5 }
	}
}

spices_resource_building_6 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_artisanal_high_medieval_trigger = yes
		holding_district_level_3_trigger = yes
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_6_cost

	province_modifier = {
		building_slots_for_host_district = 3
		trade_good_spices_production_add = precious_crops_tier_6_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_6_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_6_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_mid
	}

	next_building = spices_resource_building_7
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_district_upgrade_modifier = { LEVEL = 6 }
	}
}

spices_resource_building_7 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_artisanal_late_medieval_trigger = yes
		holding_district_level_4_trigger = yes
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_7_cost

	province_modifier = {
		building_slots_for_host_district = 4
		trade_good_spices_production_add = precious_crops_tier_7_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_7_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_7_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_mid
	}

	next_building = spices_resource_building_8
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_district_upgrade_modifier = { LEVEL = 7 }
	}
}

spices_resource_building_8 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_artisanal_late_medieval_trigger = yes
		holding_district_level_4_trigger = yes
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_8_cost

	province_modifier = {
		building_slots_for_host_district = 4
		trade_good_spices_production_add = precious_crops_tier_8_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_8_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_8_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_mid
	}

	next_building = spices_resource_building_9
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_district_upgrade_modifier = { LEVEL = 8 }
	}
}

spices_resource_building_9 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_artisanal_late_medieval_trigger = yes
		holding_district_level_4_trigger = yes
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_9_cost

	province_modifier = {
		building_slots_for_host_district = 4
		trade_good_spices_production_add = precious_crops_tier_9_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_9_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_9_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_high
	}

	next_building = spices_resource_building_10
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_district_upgrade_modifier = { LEVEL = 9 }
	}
}

spices_resource_building_10 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_artisanal_late_medieval_trigger = yes
		holding_district_level_4_trigger = yes
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_10_cost

	province_modifier = {
		building_slots_for_host_district = 4
		trade_good_spices_production_add = precious_crops_tier_10_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_10_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_agricultural_tax = luxuries_resource_tier_10_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_spices_production_mult = 0.25
	}

	

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_spices_production_mult = 0.1
		monthly_agricultural_tax = industrious_tradition_tax_bonus_high
	}

	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_district_upgrade_modifier = { LEVEL = 10 }
	}
}

#Spice Apothecaries
#Turns Spices into Medicaments
spice_apothecary_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_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = spice_apothecary_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = spice_apothecary_income_tier_1_tribal
	}

	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				trade_good_medicaments_production_add = medicaments_output_from_spices_per_level
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level_tribal
			}
		}
	}

	on_complete = {

	}

	next_building = spice_apothecary_2

	type_icon = "resource_buildings/spice_apothecary.dds"
	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_new_building_modifier = yes
	}
}

spice_apothecary_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 = spice_apothecary_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = spice_apothecary_income_tier_2_tribal
	}

	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		modifiers = {
			province_modifier = {
				trade_good_medicaments_production_add = medicaments_output_from_spices_per_level
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level_tribal
			}
		}
	}

	on_complete = {

	}

	next_building = spice_apothecary_3

	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}
}

spice_apothecary_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 = spice_apothecary_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = spice_apothecary_income_tier_3_tribal
	}

	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				trade_good_medicaments_production_add = medicaments_output_from_spices_per_level
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level_tribal
			}
		}
	}

	on_complete = {

	}

	next_building = spice_apothecary_4

	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}
}

spice_apothecary_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 = spice_apothecary_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = spice_apothecary_income_tier_4_tribal
	}

	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				trade_good_medicaments_production_add = medicaments_output_from_spices_per_level
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level_tribal
			}
		}
	}

	on_complete = {

	}

	next_building = spice_apothecary_5

	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}
}

spice_apothecary_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 = spice_apothecary_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = spice_apothecary_income_tier_5_tribal
	}

	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				trade_good_medicaments_production_add = medicaments_output_from_spices_per_level
			}
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = monthly_tax_per_medicament_from_spices_level_tribal
			}
		}
	}

	on_complete = {

	}

	
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_medicaments }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}
}

compound_powder_grinder_1 = {

	construction_time = construction_time_6_months
	district_level_requirement = 3
	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 = {
		prosperity_growth = low_prosperity_tier_1
		trade_good_spices_production_mult = compound_powder_grinder_spices_mult_tier_1
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = low_buy_price_reduction_tier_1
	}
	on_complete = {
	}
	next_building = compound_powder_grinder_2
	type_icon = "resource_buildings/compound_powder_grinder.dds"
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_new_building_modifier = yes
	}

}

compound_powder_grinder_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 3
	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 = {
		prosperity_growth = low_prosperity_tier_2
		trade_good_spices_production_mult = compound_powder_grinder_spices_mult_tier_2
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = low_buy_price_reduction_tier_2
	}
	on_complete = {
	}
	next_building = compound_powder_grinder_3
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

compound_powder_grinder_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 = {
		prosperity_growth = low_prosperity_tier_3
		trade_good_spices_production_mult = compound_powder_grinder_spices_mult_tier_3
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = low_buy_price_reduction_tier_3
	}
	on_complete = {
	}
	next_building = compound_powder_grinder_4
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

compound_powder_grinder_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 = {
		prosperity_growth = low_prosperity_tier_4
		trade_good_spices_production_mult = compound_powder_grinder_spices_mult_tier_4
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = low_buy_price_reduction_tier_4
	}
	on_complete = {
	}
	next_building = compound_powder_grinder_5
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

compound_powder_grinder_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 = {
		prosperity_growth = low_prosperity_tier_5
		trade_good_spices_production_mult = compound_powder_grinder_spices_mult_tier_5
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = low_buy_price_reduction_tier_5
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

comfit_maker_1 = {

	construction_time = construction_time_6_months
	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_1_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = comfit_maker_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = comfit_maker_income_tier_1_tribal
	}
	trade_good_need = {
		trade_good = trade_good_sugar
		amount = luxury_resource_need
		modifiers = {
			province_modifier = {
				trade_good_spices_production_mult = comfit_maker_spices_mult_per_sugar_need
			}
			market_modifier = {
				trade_good_spices_buy_price_mult = comfit_maker_spices_buy_price_mult_per_sugar_need
			}
		}
	}
	on_complete = {
	}
	next_building = comfit_maker_2
	type_icon = "old_buildings/spice_plantation.dds"
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_new_building_modifier = yes
	}

}

comfit_maker_2 = {

	construction_time = construction_time_9_months
	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_2_cost
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = comfit_maker_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = comfit_maker_income_tier_2_tribal
	}
	trade_good_need = {
		trade_good = trade_good_sugar
		amount = luxury_resource_need

		can_be_filled_multiple_times = 2
		modifiers = {
			province_modifier = {
				trade_good_spices_production_mult = comfit_maker_spices_mult_per_sugar_need
			}
			market_modifier = {
				trade_good_spices_buy_price_mult = comfit_maker_spices_buy_price_mult_per_sugar_need
			}
		}
	}
	on_complete = {
	}
	next_building = comfit_maker_3
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

comfit_maker_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 = comfit_maker_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = comfit_maker_income_tier_3_tribal
	}
	trade_good_need = {
		trade_good = trade_good_sugar
		amount = luxury_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				trade_good_spices_production_mult = comfit_maker_spices_mult_per_sugar_need
			}
			market_modifier = {
				trade_good_spices_buy_price_mult = comfit_maker_spices_buy_price_mult_per_sugar_need
			}
		}
	}
	on_complete = {
	}
	next_building = comfit_maker_4
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

comfit_maker_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 = comfit_maker_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = comfit_maker_income_tier_4_tribal
	}
	trade_good_need = {
		trade_good = trade_good_sugar
		amount = luxury_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				trade_good_spices_production_mult = comfit_maker_spices_mult_per_sugar_need
			}
			market_modifier = {
				trade_good_spices_buy_price_mult = comfit_maker_spices_buy_price_mult_per_sugar_need
			}
		}
	}
	on_complete = {
	}
	next_building = comfit_maker_5
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

comfit_maker_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 = comfit_maker_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = comfit_maker_income_tier_5_tribal
	}
	trade_good_need = {
		trade_good = trade_good_sugar
		amount = luxury_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				trade_good_spices_production_mult = comfit_maker_spices_mult_per_sugar_need
			}
			market_modifier = {
				trade_good_spices_buy_price_mult = comfit_maker_spices_buy_price_mult_per_sugar_need
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_need_modifier = { GOOD = trade_good_spices }
		ai_resource_building_consumer_modifier = { GOOD = trade_good_sugar }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_market_shortage_modifier = { GOOD = trade_good_spices }
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}

garbler_office_1 = {

	construction_time = construction_time_6_months
	district_level_requirement = 3
	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_government_modifier = {
		not_parameter = government_is_tribal
		monthly_artisan_tax = garbler_office_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = garbler_office_income_tier_1_tribal
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = garbler_office_spices_buy_price_mult_tier_1
	}
	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need
		modifiers = {
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = garbler_office_2
	type_icon = "regular_buildings/guild_court_of_law.dds"
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_new_building_modifier = yes
	}

}

garbler_office_2 = {

	construction_time = construction_time_9_months
	district_level_requirement = 3
	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 = garbler_office_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = garbler_office_income_tier_2_tribal
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = garbler_office_spices_buy_price_mult_tier_2
	}
	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		modifiers = {
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = garbler_office_3
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}

}

garbler_office_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 = garbler_office_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = garbler_office_income_tier_3_tribal
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = garbler_office_spices_buy_price_mult_tier_3
	}
	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = garbler_office_4
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}

}

garbler_office_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 = garbler_office_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = garbler_office_income_tier_4_tribal
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = garbler_office_spices_buy_price_mult_tier_4
	}
	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need_tribal
			}
		}
	}
	on_complete = {
	}
	next_building = garbler_office_5
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}

}

garbler_office_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 = garbler_office_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = garbler_office_income_tier_5_tribal
	}
	market_modifier = {
		trade_good_spices_buy_price_mult = garbler_office_spices_buy_price_mult_tier_5
	}
	trade_good_need = {
		trade_good = trade_good_spices
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			province_government_modifier = {
				not_parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need
			}
			province_government_modifier = {
				parameter = government_is_tribal
				monthly_artisan_tax = garbler_office_artisan_tax_per_spices_need_tribal
			}
		}
	}
	on_complete = {
	}
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_spices }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}

}
