﻿ivory_camp_1 = {
	construction_time = construction_time_6_months

	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_ivory }
		NOT = {
			has_building_or_higher = ivory_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_ivory_production_add = minor_ivory_output_1
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = secondary_resource_building_income_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = secondary_resource_building_income_1_tribal
	}
	
	on_complete = {

	}

	next_building = ivory_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
	}
}

ivory_camp_2 = {
	construction_time = construction_time_9_months

	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_ivory }
		NOT = {
			has_building_or_higher = ivory_resource_building_1
		}
	}

	can_construct_showing_failures_only = {
		building_forest_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_ivory_production_add = minor_ivory_output_2
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = secondary_resource_building_income_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = secondary_resource_building_income_2_tribal
	}

	on_complete = {

	}

	next_building = ivory_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 }
	}
}

ivory_camp_3 = {
	construction_time = construction_time_1_year

	can_construct_potential = {
		county = { has_potential_for_trade_good = trade_good_type:trade_good_ivory }
		NOT = {
			has_building_or_higher = ivory_resource_building_1
		}
	}

	can_construct_showing_failures_only = {
		building_forest_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_ivory_production_add = minor_ivory_output_3
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = secondary_resource_building_income_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = secondary_resource_building_income_3_tribal
	}
	
	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 = 3 }
	}
}

ivory_resource_building_1 = {
	construction_time = construction_time_6_months
	

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

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_1_cost

	province_modifier = {
		building_slots_for_host_district = 1
		trade_good_ivory_production_add = tier_1_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_1_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_1_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}
	

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_low
	}

	on_complete = {

	}

	next_building = ivory_resource_building_2
	type_icon = "district_buildings/ivory_district.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
	}
}

ivory_resource_building_2 = {
	construction_time = construction_time_9_months

	can_construct_showing_failures_only = {
	}
	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_2_cost

	province_modifier = {
		building_slots_for_host_district = 1
		trade_good_ivory_production_add = tier_2_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_2_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_2_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_low
	}

	next_building = ivory_resource_building_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_district_upgrade_modifier = { LEVEL = 2 }
	}
}

ivory_resource_building_3 = {
	construction_time = construction_time_1_year

	can_construct_showing_failures_only = {
		building_forest_early_medieval_trigger = yes
		holding_district_level_2_trigger = yes
	}
	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_3_cost

	province_modifier = {
		building_slots_for_host_district = 2
		trade_good_ivory_production_add = tier_3_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_3_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_3_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_low
	}

	next_building = ivory_resource_building_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_district_upgrade_modifier = { LEVEL = 3 }
	}
}

ivory_resource_building_4 = {
	construction_time = construction_time_2_years

	can_construct_showing_failures_only = {
		building_forest_early_medieval_trigger = yes
		holding_district_level_2_trigger = yes
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_4_cost

	province_modifier = {
		building_slots_for_host_district = 2
		trade_good_ivory_production_add = tier_4_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_4_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_4_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_low
	}

	next_building = ivory_resource_building_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_district_upgrade_modifier = { LEVEL = 4 }
	}
}

ivory_resource_building_5 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_forest_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_ivory_production_add = tier_5_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_5_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_5_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_mid
	}

	next_building = ivory_resource_building_6
	
	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_district_upgrade_modifier = { LEVEL = 5 }
	}
}

ivory_resource_building_6 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_forest_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_ivory_production_add = tier_6_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_6_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_6_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_mid
	}

	next_building = ivory_resource_building_7
	
	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_district_upgrade_modifier = { LEVEL = 6 }
	}
}

ivory_resource_building_7 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_forest_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_ivory_production_add = tier_7_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_7_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_7_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_mid
	}

	next_building = ivory_resource_building_8
	
	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_district_upgrade_modifier = { LEVEL = 7 }
	}
}

ivory_resource_building_8 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_forest_late_medieval_trigger = yes
		holding_district_level_4_trigger = yes
	}

	cost_gold = resource_district_normal_tier_8_cost

	province_modifier = {
		building_slots_for_host_district = 4
		trade_good_ivory_production_add = tier_8_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_8_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_8_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_mid
	}

	next_building = ivory_resource_building_9
	
	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_district_upgrade_modifier = { LEVEL = 8 }
	}
}

ivory_resource_building_9 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_forest_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_ivory_production_add = tier_9_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_9_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_9_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_high
	}

	next_building = ivory_resource_building_10
	
	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_district_upgrade_modifier = { LEVEL = 9 }
	}
}

ivory_resource_building_10 = {
	construction_time = construction_time_3_years

	can_construct_showing_failures_only = {
		building_forest_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_ivory_production_add = tier_10_main_resource
	}
	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_10_main_income
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = luxuries_resource_tier_10_main_income_tribal
	}
	province_terrain_modifier = {
		parameter = mountaineer_ruralism_mountain_production
		terrain = mountains
		trade_good_ivory_production_mult = 0.25
	}

	

	province_culture_modifier = {
		parameter = industrious_productivity_bonus
		trade_good_ivory_production_mult = 0.1
		monthly_woodland_tax = industrious_tradition_tax_bonus_high
	}

	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_district_upgrade_modifier = { LEVEL = 10 }
	}
}

#Temple Elephant Compound
#Uses Ivory to produce monthly piety
sacred_elephant_compound_1 = {
	construction_time = construction_time_6_months

	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	can_construct_showing_failures_only = {
	}

	is_enabled = {
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_1_cost

	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_1_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need
		modifiers = {
			character_modifier = {
				monthly_piety = sacred_elephant_compound_piety_per_ivory_need
			}
		}
	}

	on_complete = {

	}

	next_building = sacred_elephant_compound_2
	type_icon = "resource_buildings/sacred_elephant_compound.dds"
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_new_building_modifier = yes
	}
}

sacred_elephant_compound_2 = {
	construction_time = construction_time_9_months

	district_level_requirement = 2
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	can_construct_showing_failures_only = {
	}

	is_enabled = {
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_2_cost

	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_2_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		modifiers = {
			character_modifier = {
				monthly_piety = sacred_elephant_compound_piety_per_ivory_need
			}
		}
	}

	on_complete = {

	}

	next_building = sacred_elephant_compound_3
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}
}

sacred_elephant_compound_3 = {
	construction_time = construction_time_1_year

	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	can_construct_showing_failures_only = {
	}

	is_enabled = {
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_3_cost

	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_3_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			character_modifier = {
				monthly_piety = sacred_elephant_compound_piety_per_ivory_need
			}
		}
	}

	on_complete = {

	}

	next_building = sacred_elephant_compound_4
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}
}

sacred_elephant_compound_4 = {
	construction_time = construction_time_2_years

	district_level_requirement = 5
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	can_construct_showing_failures_only = {
	}

	is_enabled = {
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_4_cost

	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_4_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			character_modifier = {
				monthly_piety = sacred_elephant_compound_piety_per_ivory_need
			}
		}
	}

	on_complete = {

	}

	next_building = sacred_elephant_compound_5
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}
}

sacred_elephant_compound_5 = {
	construction_time = construction_time_3_years

	district_level_requirement = 9
	can_construct_potential = {
		building_requirement_non_tribal = yes
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	can_construct_showing_failures_only = {
	}

	is_enabled = {
		OR = {
			county.faith.religion = religion:hinduism_religion
			county.faith.religion = religion:buddhism_religion
			county.faith.religion = religion:jainism_religion
		}
	}

	show_disabled = yes
	
	can_construct = {
	}

	cost_gold = resource_district_normal_tier_5_cost

	province_government_modifier = {
		not_parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_religious_tax = sacred_elephant_compound_income_tier_5_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			character_modifier = {
				monthly_piety = sacred_elephant_compound_piety_per_ivory_need
			}
		}
	}

	on_complete = {

	}

	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}
}

#Military Elephant Compound
#Uses Ivory to reduce stationed elephant cavalry maintenance
military_elephant_compound_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_civic_tax = military_elephant_compound_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_civic_tax = military_elephant_compound_income_tier_1_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	on_complete = {

	}

	next_building = military_elephant_compound_2
	type_icon = "old_buildings/elephant_pens.dds"
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_new_building_modifier = yes
	}
}

military_elephant_compound_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_civic_tax = military_elephant_compound_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_civic_tax = military_elephant_compound_income_tier_2_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		modifiers = {
			province_modifier = {
				stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	on_complete = {

	}

	next_building = military_elephant_compound_3
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}
}

military_elephant_compound_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_civic_tax = military_elephant_compound_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_civic_tax = military_elephant_compound_income_tier_3_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	on_complete = {

	}

	next_building = military_elephant_compound_4
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}
}

military_elephant_compound_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_civic_tax = military_elephant_compound_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_civic_tax = military_elephant_compound_income_tier_4_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	on_complete = {

	}

	next_building = military_elephant_compound_5
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}
}

military_elephant_compound_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_civic_tax = military_elephant_compound_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_civic_tax = military_elephant_compound_income_tier_5_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				stationed_elephant_cavalry_maintenance_low_modifier = stationed_maa_need_maintenance_reduction
				stationed_elephant_cavalry_maintenance_high_modifier = stationed_maa_need_maintenance_reduction
			}
		}
	}

	on_complete = {

	}

	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}
}

#Labor Elephants
#Uses Ivory to reduce district build costs in the county
ivory_labor_elephants_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_woodland_tax = ivory_labor_elephants_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = ivory_labor_elephants_income_tier_1_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				temple_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				mandala_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				religious_community_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				villages_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				walls_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				urban_housing_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
			}
		}
	}

	on_complete = {

	}

	next_building = ivory_labor_elephants_2
	type_icon = "resource_buildings/stone_buildings.dds"
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_new_building_modifier = yes
	}
}

ivory_labor_elephants_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_woodland_tax = ivory_labor_elephants_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = ivory_labor_elephants_income_tier_2_tribal
	}
	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		modifiers = {
			province_modifier = {
				temple_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				mandala_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				religious_community_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				villages_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				walls_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				urban_housing_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
			}
		}
	}

	on_complete = {

	}
	next_building = ivory_labor_elephants_3
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}
}
ivory_labor_elephants_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_woodland_tax = ivory_labor_elephants_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = ivory_labor_elephants_income_tier_3_tribal
	}
	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				temple_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				mandala_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				religious_community_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				villages_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				walls_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				urban_housing_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
			}
		}
	}

	on_complete = {

	}
	next_building = ivory_labor_elephants_4
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}
}
ivory_labor_elephants_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_woodland_tax = ivory_labor_elephants_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = ivory_labor_elephants_income_tier_4_tribal
	}
	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				temple_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				mandala_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				religious_community_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				villages_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				walls_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				urban_housing_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
			}
		}
	}

	on_complete = {

	}
	next_building = ivory_labor_elephants_5
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}
}
ivory_labor_elephants_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_woodland_tax = ivory_labor_elephants_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_woodland_tax = ivory_labor_elephants_income_tier_5_tribal
	}
	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				temple_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				mandala_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				religious_community_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				villages_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				walls_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
				urban_housing_district_district_build_gold_cost = ivory_labor_elephant_district_cost_per_need
			}
		}
	}

	on_complete = {

	}
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}
}
ivory_carvers_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 = ivory_carvers_income_tier_1
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = ivory_carvers_income_tier_1_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need
		modifiers = {
			province_modifier = {
				prosperity_growth = ivory_carvers_prosperity_per_ivory_need
			}
		}
	}
	on_complete = {

	}

	next_building = ivory_carvers_2
	type_icon = "old_buildings/workshops.dds"
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_new_building_modifier = yes
	}
}

ivory_carvers_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 = ivory_carvers_income_tier_2
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = ivory_carvers_income_tier_2_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 2
		modifiers = {
			province_modifier = {
				prosperity_growth = ivory_carvers_prosperity_per_ivory_need
			}
		}
	}
	on_complete = {

	}

	next_building = ivory_carvers_3
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 2 }
	}
}

ivory_carvers_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 = ivory_carvers_income_tier_3
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = ivory_carvers_income_tier_3_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 3
		modifiers = {
			province_modifier = {
				prosperity_growth = ivory_carvers_prosperity_per_ivory_need
			}
		}
	}
	on_complete = {

	}

	next_building = ivory_carvers_4
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 3 }
	}
}

ivory_carvers_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 = ivory_carvers_income_tier_4
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = ivory_carvers_income_tier_4_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 4
		modifiers = {
			province_modifier = {
				prosperity_growth = ivory_carvers_prosperity_per_ivory_need
			}
		}
	}
	on_complete = {

	}

	next_building = ivory_carvers_5
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 4 }
	}
}

ivory_carvers_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 = ivory_carvers_income_tier_5
	}
	province_government_modifier = {
		parameter = government_is_tribal
		monthly_artisan_tax = ivory_carvers_income_tier_5_tribal
	}

	trade_good_need = {
		trade_good = trade_good_ivory
		amount = basic_resource_need

		can_be_filled_multiple_times = 5
		modifiers = {
			province_modifier = {
				prosperity_growth = ivory_carvers_prosperity_per_ivory_need
			}
		}
	}
	on_complete = {

	}
	
	ai_value = {
		base = 10
		ai_resource_building_consumer_modifier = { GOOD = trade_good_ivory }
		directive_to_build_economy_modifier = yes
		ai_income_building_modifier = yes
		ai_resource_building_upgrade_modifier = { LEVEL = 5 }
	}
}
