gw_great_work_crypta_01 = {
	construction_time = gw_great_work_construction_time

	type_icon = "icon_structure_petra.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
		building_great_work_requirement = yes
	}

	is_enabled = {
		county.holder = {
			custom_description = {
				text = "is_king_or_emperor"
				highest_held_title_tier >= tier_kingdom
			}
		}
	}

	can_construct_showing_failures_only = {
		culture = {
			has_innovation = innovation_burhs
		}
	}
	
	show_disabled = yes

	next_building = gw_great_work_crypta_02
	
	cost_gold = gw_great_work_construction_cost_01
	
	character_modifier = {
		intrigue = gw_great_work_value_01_very_small
		monthly_piety = gw_great_work_modifier_01_large
		owned_hostile_scheme_success_chance_add = gw_great_work_value_01_very_large
		enemy_hostile_scheme_success_chance_add = gw_great_work_value_01_very_large_negative
		dynasty_opinion = gw_great_work_value_01_huge
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

gw_great_work_crypta_02 = {
	construction_time = gw_great_work_construction_time

	type_icon = "icon_structure_petra.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
		building_great_work_requirement = yes
	}

	is_enabled = {
		county.holder = {
			custom_description = {
				text = "is_king_or_emperor"
				highest_held_title_tier >= tier_kingdom
			}
		}
	}

	can_construct_showing_failures_only = {
		culture = {
			has_innovation = innovation_castle_baileys
		}
	}
	
	show_disabled = yes

	next_building = gw_great_work_crypta_03
	
	cost_gold = gw_great_work_construction_cost_02
	
	character_modifier = {
		intrigue = gw_great_work_value_02_very_small
		monthly_piety = gw_great_work_modifier_02_large
		owned_hostile_scheme_success_chance_add = gw_great_work_value_02_very_large
		enemy_hostile_scheme_success_chance_add = gw_great_work_value_02_very_large_negative
		dynasty_opinion = gw_great_work_value_02_huge
	}

	ai_value = {
		base = 100
	}
	
	type = special
}

gw_great_work_crypta_03 = {
	construction_time = gw_great_work_construction_time

	type_icon = "icon_structure_petra.dds"
	
	can_construct_potential = {
		building_requirement_tribal = no
		building_great_work_requirement = yes
	}

	is_enabled = {
		county.holder = {
			custom_description = {
				text = "is_king_or_emperor"
				highest_held_title_tier >= tier_kingdom
			}
		}
	}

	can_construct_showing_failures_only = {
		culture = {
			has_innovation = innovation_royal_armory
		}
	}
	
	show_disabled = yes
	
	cost_gold = gw_great_work_construction_cost_03
	
	character_modifier = {
		intrigue = gw_great_work_value_03_very_small
		monthly_piety = gw_great_work_modifier_03_large
		owned_hostile_scheme_success_chance_add = gw_great_work_value_03_very_large
		enemy_hostile_scheme_success_chance_add = gw_great_work_value_03_very_large_negative
		dynasty_opinion = gw_great_work_value_03_huge
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}