gw_great_work_walls_01 = {
	construction_time = gw_great_work_construction_time

	type_icon = "icon_structure_visby_ringmur.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_walls_02
	
	cost_gold = gw_great_work_construction_cost_01

	county_modifier = {
		monthly_county_control_change_add = gw_great_work_modifier_01_very_small
		fort_level = gw_great_work_value_01_small
		garrison_size = gw_great_work_modifier_01_very_small
		defender_advantage = gw_great_work_value_01_very_large
		hostile_raid_time = gw_great_work_modifier_01
	}
	
	character_modifier = {
		defender_advantage = gw_great_work_value_01
		hostile_raid_time = gw_great_work_modifier_01_very_small
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

gw_great_work_walls_02 = {
	construction_time = gw_great_work_construction_time

	type_icon = "icon_structure_visby_ringmur.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_walls_03
	
	cost_gold = gw_great_work_construction_cost_02

	county_modifier = {
		monthly_county_control_change_add = gw_great_work_modifier_02_very_small
		fort_level = gw_great_work_value_02_small
		garrison_size = gw_great_work_modifier_02_very_small
		defender_advantage = gw_great_work_value_02_very_large
		hostile_raid_time = gw_great_work_modifier_02
	}

	character_modifier = {
		defender_advantage = gw_great_work_value_02
		hostile_raid_time = gw_great_work_modifier_02_very_small
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}

gw_great_work_walls_03 = {
	construction_time = gw_great_work_construction_time

	type_icon = "icon_structure_visby_ringmur.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

	county_modifier = {
		monthly_county_control_change_add = gw_great_work_modifier_03_very_small
		fort_level = gw_great_work_value_03_small
		garrison_size = gw_great_work_modifier_03_very_small
		defender_advantage = gw_great_work_value_03_very_large
		hostile_raid_time = gw_great_work_modifier_03
	}

	character_modifier = {
		defender_advantage = gw_great_work_value_03
		hostile_raid_time = gw_great_work_modifier_03_very_small
	}
	
	ai_value = {
		base = 100
	}
	
	type = special
}
