﻿### Elephant Pens / Elephantry - Reworked "War Elephants" theme (Buildings Reworked mod)
# Per level: +0.25 Monthly Tax, +2% stationed Elephant Cavalry Toughness, +2% stationed Elephant Cavalry Damage.
# (tax tier 0.25, normal cost) - the war-elephant military building.

elephant_pens_01 = {
	construction_time = slow_construction_time
	can_construct_potential = {
		building_elephant_pens_requirement_terrain = yes
		building_requirement_castle_city_church = { LEVEL = 01 }
	}
	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	cost_gold = 200
	province_modifier = {
		monthly_income = 0.25
		stationed_elephant_cavalry_toughness_mult = 0.02
		stationed_elephant_cavalry_damage_mult = 0.02
	}
	on_complete = { creator_mandala_built_regular_building_piety_effect = yes }
	next_building = elephant_pens_02
	type_icon = "icon_building_elephant_pens.dds"
	ai_value = {
		base = 10
		ai_tier_1_building_modifier = yes
		ai_tier_1_economical_building_preference_modifier = yes
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
	}
}

elephant_pens_02 = {
	construction_time = slow_construction_time
	can_construct_potential = {
		building_elephant_pens_requirement_terrain = yes
		building_requirement_castle_city_church = { LEVEL = 01 }
	}
	can_construct_showing_failures_only = {
		building_requirement_tribal = no
		scope:holder.culture = { has_innovation = innovation_crop_rotation }
	}
	cost_gold = 300
	province_modifier = {
		monthly_income = 0.5
		stationed_elephant_cavalry_toughness_mult = 0.04
		stationed_elephant_cavalry_damage_mult = 0.04
	}
	on_complete = { creator_mandala_built_regular_building_piety_effect = yes }
	next_building = elephant_pens_03
	ai_value = {
		base = 9
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
		modifier = { factor = 0 free_building_slots > 0 }
	}
}

elephant_pens_03 = {
	construction_time = slow_construction_time
	can_construct_potential = {
		building_elephant_pens_requirement_terrain = yes
	}
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		scope:holder.culture = { has_innovation = innovation_manorialism }
	}
	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	cost_gold = 450
	province_modifier = {
		monthly_income = 0.75
		stationed_elephant_cavalry_toughness_mult = 0.06
		stationed_elephant_cavalry_damage_mult = 0.06
	}
	on_complete = { creator_mandala_built_regular_building_piety_effect = yes }
	next_building = elephant_pens_04
	ai_value = {
		base = 8
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
	}
}

elephant_pens_04 = {
	construction_time = slow_construction_time
	can_construct_potential = {
		building_elephant_pens_requirement_terrain = yes
	}
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		scope:holder.culture = { has_innovation = innovation_manorialism }
	}
	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	cost_gold = 650
	province_modifier = {
		monthly_income = 1.0
		stationed_elephant_cavalry_toughness_mult = 0.08
		stationed_elephant_cavalry_damage_mult = 0.08
	}
	on_complete = { creator_mandala_built_regular_building_piety_effect = yes }
	next_building = elephant_pens_05
	ai_value = {
		base = 7
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
	}
}

elephant_pens_05 = {
	construction_time = slow_construction_time
	can_construct_potential = {
		building_elephant_pens_requirement_terrain = yes
	}
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder.culture = { has_innovation = innovation_guilds }
	}
	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	cost_gold = 950
	province_modifier = {
		monthly_income = 1.25
		stationed_elephant_cavalry_toughness_mult = 0.10
		stationed_elephant_cavalry_damage_mult = 0.10
	}
	on_complete = { creator_mandala_built_regular_building_piety_effect = yes }
	next_building = elephant_pens_06
	ai_value = {
		base = 6
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
	}
}

elephant_pens_06 = {
	construction_time = slow_construction_time
	can_construct_potential = {
		building_elephant_pens_requirement_terrain = yes
	}
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		scope:holder.culture = { has_innovation = innovation_guilds }
	}
	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	cost_gold = 1450
	province_modifier = {
		monthly_income = 1.5
		stationed_elephant_cavalry_toughness_mult = 0.12
		stationed_elephant_cavalry_damage_mult = 0.12
	}
	on_complete = { creator_mandala_built_regular_building_piety_effect = yes }
	next_building = elephant_pens_07
	ai_value = {
		base = 5
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
	}
}

elephant_pens_07 = {
	construction_time = slow_construction_time
	can_construct_potential = {
		building_elephant_pens_requirement_terrain = yes
	}
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		scope:holder.culture = { has_innovation = innovation_cranes }
	}
	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	cost_gold = 2050
	province_modifier = {
		monthly_income = 1.75
		stationed_elephant_cavalry_toughness_mult = 0.14
		stationed_elephant_cavalry_damage_mult = 0.14
	}
	on_complete = { creator_mandala_built_regular_building_piety_effect = yes }
	next_building = elephant_pens_08
	ai_value = {
		base = 4
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
	}
}

elephant_pens_08 = {
	construction_time = slow_construction_time
	can_construct_potential = {
		building_elephant_pens_requirement_terrain = yes
	}
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		scope:holder.culture = { has_innovation = innovation_cranes }
	}
	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	cost_gold = 2850
	province_modifier = {
		monthly_income = 2.0
		stationed_elephant_cavalry_toughness_mult = 0.16
		stationed_elephant_cavalry_damage_mult = 0.16
	}
	on_complete = { creator_mandala_built_regular_building_piety_effect = yes }
	ai_value = {
		base = 3
		ai_general_building_modifier = yes
		directive_to_build_economy_modifier = yes
		ai_economical_building_preference_modifier = yes
	}
}
