###########
## Generic Holy Site Buildings
###########

holy_site_everpreg_grand_temple_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_mines.dds"
	
	#can_construct_potential = {
	#	building_requirement_tribal = no
	#}
	
	#can_construct = {
	#	custom_description = {
	#		text = holy_site_building_trigger
	#		barony = {
	#			is_holy_site_of = scope:holder.faith
	#		}
	#	}
	#	scope:holder = {
	#		culture = {
	#			has_innovation = innovation_crop_rotation
	#		}
	#	}
	#}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = expensive_building_tier_2_cost

	character_modifier = {
		monthly_piety = 0.15
	}	
	county_modifier = {
		development_growth_factor = 0.1
		development_growth = 0.1
	}

	next_building = holy_site_everpreg_grand_temple_02
	
	ai_value = {
		base = 100
	}
	
	#type = special
}

holy_site_everpreg_grand_temple_02 = {

	asset = {
		type = pdxmesh
		name = "building_special_cathedral_pagan_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_cathedral_pagan.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }	
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
		scope:holder = {
			culture = {
				#disabled for now because DEMD is still in flux. When it stablizes, I'll institute an OR between DEMD and manorialism.###
				#has_innovation = innovation_manorialism
			}
		}
	}
	
	is_enabled = {
		custom_description = {
			text = holy_site_building_trigger
			barony = {
				is_holy_site_of = scope:holder.faith
			}
		}
	}
	
	cost_gold = expensive_building_tier_4_cost

	character_modifier = {
		monthly_piety = -0.1
		monthly_dynasty_prestige_mult = 0.05
		heavy_infantry_toughness_mult = 0.1
		heavy_cavalry_toughness_mult = 0.1
	}
	county_modifier = {
		development_growth_factor = 0.25
		development_growth = 0.15
	}

	max_garrison = good_building_max_garrison_tier_1
	garrison_reinforcement_factor = building_garrison_reinforcement_factor_tier_1
	levy = good_building_levy_tier_1
	
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_1
		fort_level = good_building_fort_level_tier_1
	}
	
	ai_value = {
		base = 100
	}
	
	#type = special
}


###

##########
# Atalantean Capital
##########

holy_site_everpreg_capital_01 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_mines.dds"
	
	#can_construct_potential = {
	#	building_requirement_tribal = no
	#}
	
	#can_construct = {
	#	building_requirement_castle_city_church = { LEVEL = 02 }	
	#	barony = title:b_naxos
	#	scope:holder = {
	#		culture = {
	#			has_innovation = innovation_crop_rotation
	#		}
	#		NOT = {
	#			is_target_in_global_variable_list = {
	#				name = unavailable_unique_decisions
	#				target = flag:embrace_everpregatalantian_culture_decision
	#			}
	#		}			
	#	}
	#}
	
	is_enabled = {
		county.duchy.holder = county.holder
	}
	
	show_disabled = yes
	
	cost_gold = expensive_building_tier_3_cost

	character_modifier = {
		monthly_piety_gain_mult = 0.1
		monthly_lifestyle_xp_gain_mult = 0.05
		cultural_head_fascination_mult = 0.05	
	}
	max_garrison = good_building_max_garrison_tier_1
	garrison_reinforcement_factor = building_garrison_reinforcement_factor_tier_1
	county_modifier = {
		development_growth_factor = 0.1
		development_growth = 0.1
	}

	next_building = holy_site_everpreg_capital_02
	
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_1
		fort_level = good_building_fort_level_tier_1
	}

	
	ai_value = {
		base = 100
	}
	
	#type = duchy_capital
}

holy_site_everpreg_capital_02 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_doges_palace.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }	
		barony = title:b_naxos
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
			NOT = {
				is_target_in_global_variable_list = {
					name = unavailable_unique_decisions
					target = flag:embrace_everpregatalantian_culture_decision
				}
			}			
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
	}
	
	show_disabled = yes
	
	cost_gold = expensive_building_tier_6_cost

	character_modifier = {
		monthly_piety_gain_mult = -0.1
		monthly_lifestyle_xp_gain_mult = 0.1
		cultural_head_fascination_mult = 0.1	
	}
	max_garrison = good_building_max_garrison_tier_3
	garrison_reinforcement_factor = building_garrison_reinforcement_factor_tier_3
	county_modifier = {
		development_growth_factor = 0.2
		development_growth = 0.2
	}

	next_building = holy_site_everpreg_capital_03
	
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_2
		fort_level = good_building_fort_level_tier_2
	}

	
	ai_value = {
		base = 100
	}
	
	#type = duchy_capital
}

holy_site_everpreg_capital_03 = {
	construction_time = very_slow_construction_time

	type_icon = "icon_structure_doges_palace.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
	}
	
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }	
		barony = title:b_naxos
		scope:holder = {
			culture = {
				has_innovation = innovation_crop_rotation
			}
			NOT = {
				is_target_in_global_variable_list = {
					name = unavailable_unique_decisions
					target = flag:embrace_everpregatalantian_culture_decision
				}
			}			
		}
	}
	
	is_enabled = {
		county.duchy.holder = county.holder
	}
	
	show_disabled = yes
	
	cost_gold = expensive_building_tier_8_cost

	character_modifier = {
		monthly_piety_gain_mult = -0.2
		monthly_lifestyle_xp_gain_mult = 0.15
		cultural_head_fascination_mult = 0.15	
	}
	max_garrison = good_building_max_garrison_tier_7
	garrison_reinforcement_factor = building_garrison_reinforcement_factor_tier_7
	levy = good_building_levy_tier_7	
	county_modifier = {
		development_growth_factor = 0.4
		development_growth = 0.4
	}
	
	province_modifier = {
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_3
	}

	
	ai_value = {
		base = 100
	}
	
	#type = duchy_capital
}


######



##########
# Kollur Diamond Mines
##########

everpreg_pearl_mines_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	construction_time = slow_construction_time

	type_icon = "icon_structure_mines.dds"

	#can_construct_potential = {
	#	building_requirement_tribal = no
	#	building_requirement_castle_city_church = { LEVEL = 01 }
	#	culture = {
	#		has_innovation = innovation_crop_rotation
	#	}
	#}
	
	#cost_gold = expensive_building_tier_3_cost
	
	province_modifier = {
		monthly_income = special_mine_building_tax_tier_1
	}
	county_modifier = {
		tax_mult = 0.15
		development_growth_factor = 0.05
	}
	
	next_building = everpreg_pearl_mines_02
	
	ai_value = {
		base = 100
	}
	
	#type = special
}

everpreg_pearl_mines_02 = {

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	construction_time = slow_construction_time

	type_icon = "icon_structure_mines.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 02 }
		culture = {
			#disabled for now because DEMD is still in flux. When it stablizes, I'll institute an OR between DEMD and manorialism.###
			#has_innovation = innovation_manorialism
		}
	}
	
	cost_gold = expensive_building_tier_4_cost
	
	province_modifier = {
		monthly_income = special_mine_building_tax_tier_2
		defender_holding_advantage = normal_building_advantage_tier_1
		fort_level = good_building_fort_level_tier_1		
	}
	county_modifier = {
		tax_mult = 0.2
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_pearl_mines_03
	
	ai_value = {
		base = 100
	}
	
	#type = special
}

everpreg_pearl_mines_03 = {

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	construction_time = slow_construction_time

	type_icon = "icon_structure_mines.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 03 }
		culture = {
			###Find the DEMD equivalent and make an or statement here.
			#has_innovation = innovation_windmills
		}
	}
	
	cost_gold = expensive_building_tier_5_cost
	
	province_modifier = {
		monthly_income = special_mine_building_tax_tier_3
		defender_holding_advantage = normal_building_advantage_tier_2
		fort_level = good_building_fort_level_tier_2		
	}
	county_modifier = {
		tax_mult = 0.25
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_pearl_mines_04
	
	ai_value = {
		base = 100
	}
	
	#type = special
}

everpreg_pearl_mines_04 = {

	asset = {
		type = pdxmesh
		name = "building_special_mines_mesh"
	}

	construction_time = slow_construction_time

	type_icon = "icon_structure_mines.dds"

	can_construct_potential = {
		building_requirement_tribal = no
	}
	can_construct = {
		building_requirement_castle_city_church = { LEVEL = 04 }
		culture = {
			###Find the DEMD equivalent and make an or statement here.
			#has_innovation = innovation_cranes
		}
	}
	
	cost_gold = expensive_building_tier_6_cost
	
	province_modifier = {
		monthly_income = special_mine_building_tax_tier_4
		defender_holding_advantage = normal_building_advantage_tier_3
		fort_level = good_building_fort_level_tier_3		
	}
	county_modifier = {
		tax_mult = 0.30
		development_growth_factor = 0.20
	}
	
	ai_value = {
		base = 100
	}
	
	#type = special
}



##########
# Palace of Grottos
##########

everpreg_palace_of_grottos_01 = {

	asset = {
		type = pdxmesh
		name = "building_special_palace_of_aachen_mesh"
	}

	construction_time = very_slow_construction_time

	type_icon = "icon_structure_palace_of_achen.dds"
	
	#can_construct_potential = {
	#	building_requirement_tribal = no
	#}
	
	show_disabled = yes
	
	cost_gold = 15000

	character_modifier = {
		powerful_vassal_opinion = 5
		clergy_opinion = 5
		monthly_prestige_gain_per_happy_powerful_vassal_add = 0.1
		monthly_dynasty_prestige_mult = 0.05
	}
	
	county_modifier = {
		development_growth = 0.15
	}
	
	ai_value = {
		base = 100
	}
	
	#type = special
}


##########
# Temples of Plenty
##########

### Desert ###

everpreg_desert_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }

	next_building = everpreg_desert_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desert_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_desert_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desert_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_desert_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desert_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_desert_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desert_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_desert_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_desert_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desert_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_desert_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desert_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}


### Desert Mountains ###

everpreg_desertmountains_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_desertmountains_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}






everpreg_desertmountains_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_desertmountains_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desertmountains_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_desertmountains_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desertmountains_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_desertmountains_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desertmountains_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_desertmountains_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_desertmountains_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desertmountains_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_desertmountains_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_desertmountains_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}



### Drylands ###

everpreg_drylands_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }	
	
	next_building = everpreg_drylands_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}






everpreg_drylands_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_drylands_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_drylands_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_drylands_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_drylands_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_drylands_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_drylands_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_drylands_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_drylands_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_drylands_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_drylands_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_drylands_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}










### Farmlands ###

everpreg_farmlands_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_farmlands_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}






everpreg_farmlands_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_farmlands_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_farmlands_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_farmlands_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_farmlands_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_farmlands_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_farmlands_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_farmlands_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_farmlands_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_farmlands_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_farmlands_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_farmlands_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}






### Floodplains ###

everpreg_floodplains_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_floodplains_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}








everpreg_floodplains_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_floodplains_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_floodplains_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_floodplains_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_floodplains_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_floodplains_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_floodplains_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_floodplains_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_floodplains_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_floodplains_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_floodplains_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_floodplains_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}








### Forest ###

everpreg_forest_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_forest_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}









everpreg_forest_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_forest_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_forest_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_forest_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_forest_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_forest_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_forest_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_forest_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_forest_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_forest_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_forest_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_forest_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}







### Hills ###

everpreg_hills_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_hills_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}










everpreg_hills_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_hills_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_hills_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_hills_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_hills_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_hills_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_hills_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_hills_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_hills_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_hills_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_hills_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_hills_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}








### Mountains ###

everpreg_mountains_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_mountains_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}











everpreg_mountains_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_mountains_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_mountains_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_mountains_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_mountains_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_mountains_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_mountains_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_mountains_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_mountains_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_mountains_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_mountains_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_mountains_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}





### Oasis ###

everpreg_oasis_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_oasis_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}














everpreg_oasis_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_oasis_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_oasis_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_oasis_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_oasis_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_oasis_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_oasis_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_oasis_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_oasis_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_oasis_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_oasis_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_oasis_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}





### Plains ###

everpreg_plains_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_plains_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}















everpreg_plains_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_plains_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_plains_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_plains_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_plains_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_plains_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_plains_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_plains_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_plains_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_plains_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_plains_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_plains_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}







### Steppe ###

everpreg_steppe_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_steppe_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}














everpreg_steppe_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_steppe_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_steppe_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_steppe_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_steppe_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_steppe_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_steppe_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_steppe_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_steppe_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_steppe_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_steppe_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_steppe_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}





### Taiga ###

everpreg_taiga_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_taiga_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}












everpreg_taiga_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_taiga_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_taiga_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_taiga_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_taiga_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_taiga_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_taiga_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_taiga_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_taiga_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_taiga_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_taiga_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_taiga_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}












### Wetlands ###

everpreg_wetlands_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }

	next_building = everpreg_wetlands_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}








everpreg_wetlands_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_wetlands_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_wetlands_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_wetlands_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_wetlands_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_wetlands_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_wetlands_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_wetlands_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_wetlands_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_wetlands_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_wetlands_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_wetlands_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}



### Jungle ###

everpreg_jungle_temple_01 = {
	construction_time = standard_construction_time

	#can_construct_potential = {
	#	has_building_or_higher = city_01
	#}

	#can_construct_showing_failures_only = {
	#	building_requirement_tribal = no
	#}

	#cost_gold = normal_building_tier_1_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.05
	}

	#add_character_modifier = {
	#	modifier = pilgrimage_disdainful_towards_faiths_modifier
	#	years = 10
	#}

	#if = {
	#	limit = {
	#		NOT = { has_character_modifier = everpreg_basictemple_modifier }
	#	}

	# scope:holder = {
	# 	add_character_modifier = everpreg_basictemple_modifier
	# 	character_modifier = {
	# 		everpreg_basictemple_modifier = yes
	# 	}
	# }
	
	next_building = everpreg_jungle_temple_02

	type_icon = "icon_building_guild_halls.dds"
	
	ai_value = {
		base = 500
		modifier = {
			add = 500
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}








everpreg_jungle_temple_02 = {
	construction_time = standard_construction_time

	can_construct_potential = {
		OR = {
			has_building_or_higher = city_01
			has_building_or_higher = castle_01
			has_building_or_higher = temple_01
		}
		culture = {
			has_innovation = innovation_crop_rotation
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_2_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.1
	}
	
	next_building = everpreg_jungle_temple_03
	ai_value = {
		base = 0
		modifier = {
			add = 9
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_jungle_temple_03 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_3_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_1
	}
	county_modifier = {
		development_growth_factor = 0.15
	}
	
	next_building = everpreg_jungle_temple_04
	ai_value = {
		base = 0
		modifier = {
			add = 8
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_jungle_temple_04 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_02
			has_building_or_higher = castle_02
			has_building_or_higher = temple_02
		}
		culture = {
			has_innovation = innovation_manorialism
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_4_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_2
	}
	county_modifier = {
		development_growth_factor = 0.2
	}
	
	next_building = everpreg_jungle_temple_05
	ai_value = {
		base = 0
		modifier = {
			add = 7
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_jungle_temple_05 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_5_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_3
	}
	county_modifier = {
		development_growth_factor = 0.25
	}

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

everpreg_jungle_temple_06 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_03
			has_building_or_higher = castle_03
			has_building_or_higher = temple_03
		}
		culture = {
			has_innovation = innovation_windmills
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_6_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_4
	}
	county_modifier = {
		development_growth_factor = 0.3
	}
	
	next_building = everpreg_jungle_temple_07
	ai_value = {
		base = 0
		modifier = {
			add = 5
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_jungle_temple_07 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}

	cost_gold = normal_building_tier_7_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_5
	}
	county_modifier = {
		development_growth_factor = 0.35
	}
	
	next_building = everpreg_jungle_temple_08
	ai_value = {
		base = 0
		modifier = {
			add = 4
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}

everpreg_jungle_temple_08 = {
	construction_time = standard_construction_time

	can_construct = {
		OR = {
			has_building_or_higher = city_04
			has_building_or_higher = castle_04
			has_building_or_higher = temple_04
		}
		culture = {
			has_innovation = innovation_cranes
		}
	}

	can_construct_showing_failures_only = {
		building_requirement_tribal = no
	}
	
	cost_gold = normal_building_tier_8_cost
	
	province_modifier = {
		monthly_income = normal_building_tax_tier_6
	}
	county_modifier = {
		development_growth_factor = 0.4
	}
	
	ai_value = {
		base = 0
		modifier = {
			add = 3
			scope:holder = {
				has_government = republic_government
			}
		}
	}
}