﻿# These buildings are only for showing background graphics, e.g. the walls around holdings

# No Walls
walls_00 = {
	is_graphical_background = yes

	asset = {
		type = pdxmesh
		name = "western_walls_00_mesh"
	}
	
	is_enabled = {
		is_county_capital = no
		fort_level < 1
	}
}

# Any city that must be sieged gets the basic walls
walls_01 = {
	is_graphical_background = yes

	asset = {
		type = pdxmesh
		names = {
			"western_walls_01_a_mesh"
			"western_walls_01_b_mesh"
		}
	}	
	asset = {
		type = pdxmesh
		names = {
			"mena_walls_01_a_mesh"
			"mena_walls_01_b_mesh"

		}
		graphical_regions = { graphical_mena }
	}
	
	is_enabled = {
		OR = {
			is_county_capital = yes
			fort_level > 0
		}
		NOR = {
			has_building_or_higher = "curtain_walls_02"
			has_building_or_higher = "hill_forts_02"
			has_building_or_higher = "ramparts_02"
			has_building_or_higher = "watchtowers_02"
			has_building_or_higher = "theodosian_walls_01"
			has_building_or_higher = "walls_of_benin_01"
			has_building_or_higher = "walls_of_genoa_01"
			has_building_or_higher = "aurelian_walls_01"
		}
	}
}

# Here the Fort Level building chains take control of the visuals
walls_02 = {
	is_graphical_background = yes

	asset = {
		type = pdxmesh
		names = {
			"western_walls_02_a_mesh"
			"western_walls_02_a_mesh"
		}
	}
	
	asset = {
		type = pdxmesh
		graphical_regions = { graphical_mena }
		names = {
			"mena_walls_02_a_mesh"
			"mena_walls_02_a_mesh"
		}
	}
	
	is_enabled = {
		OR = {
			has_building_or_higher = "curtain_walls_02"
			has_building_or_higher = "hill_forts_02"
			has_building_or_higher = "ramparts_02"
			has_building_or_higher = "watchtowers_02"
		}
		NOR = {
			has_building_or_higher = "curtain_walls_03"
			has_building_or_higher = "hill_forts_03"
			has_building_or_higher = "ramparts_03"
			has_building_or_higher = "watchtowers_03"
			has_building_or_higher = "theodosian_walls_01"
			has_building_or_higher = "walls_of_benin_01"
			has_building_or_higher = "walls_of_genoa_01"
			has_building_or_higher = "aurelian_walls_01"
		}
	}
}

walls_03 = {
	is_graphical_background = yes

	asset = {
		type = pdxmesh
		names = {
			"western_walls_03_a_mesh"
			"western_walls_03_a_mesh"
		}
	}
	
	asset = {
		type = pdxmesh
		graphical_regions = { graphical_mena graphical_india }
		names = {
			"mena_walls_04_a_mesh"
			"mena_walls_04_a_mesh"
		}
	}
	
	is_enabled = {
		OR = {
			has_building_or_higher = "curtain_walls_03"
			has_building_or_higher = "hill_forts_03"
			has_building_or_higher = "ramparts_03"
			has_building_or_higher = "watchtowers_03"
			has_building_or_higher = "walls_of_benin_01"
			has_building_or_higher = "walls_of_genoa_01"
			has_building_or_higher = "aurelian_walls_01"
		}
		NOR = {
			has_building_or_higher = "curtain_walls_06"
			has_building_or_higher = "hill_forts_06"
			has_building_or_higher = "ramparts_06"
			has_building_or_higher = "watchtowers_06"
			has_building_or_higher = "theodosian_walls_01"
		}
	}
}

walls_04 = {
	is_graphical_background = yes

	asset = {
		type = pdxmesh
		names = {
			"western_walls_04_a_mesh"
			"western_walls_04_a_mesh"
		}
	}
	
	asset = {
		type = pdxmesh
		graphical_regions = { graphical_mena graphical_india }
		names = {
			"mena_walls_04_a_mesh"
			"mena_walls_04_a_mesh"
		}
	}
	
	is_enabled = {
		OR = {
			has_building_or_higher = "curtain_walls_06"
			has_building_or_higher = "hill_forts_06"
			has_building_or_higher = "ramparts_06"
			has_building_or_higher = "watchtowers_06"
			has_building_or_higher = "theodosian_walls_01"
		}
	}
}