has_enough_slots_for_add_CIC_relative = {
	custom_trigger_tooltip = {
		tooltip = TT_TRIGGER_ENOUGH_BUILDING_SLOTS
		if = { 
			limit = { num_of_civilian_factories < 30 }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = no
				}
			}			
		}
		if = {
			limit = { AND = { num_of_civilian_factories > 29 num_of_civilian_factories < 50 } }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 1
					include_locked = no
				}
			}
		}
		if = {
			limit = { AND = { num_of_civilian_factories > 49 num_of_civilian_factories < 70 } }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 2
					include_locked = no
				}
			}
		}
		if = {
			limit = { AND = { num_of_civilian_factories > 69 num_of_civilian_factories < 90 } }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 3
					include_locked = no
				}
			}
		}
		if = {
			limit = { AND = { num_of_civilian_factories > 89 num_of_civilian_factories < 110 } }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 4
					include_locked = no
				}
			}
		}
		if = {
			limit = { AND = { num_of_civilian_factories > 109 num_of_civilian_factories < 130 } }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 5
					include_locked = no
				}
			}
		}
		if = {
			limit = { AND = { num_of_civilian_factories > 129 num_of_civilian_factories < 150 } }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 6
					include_locked = no
				}
			}
		}
		if = {
			limit = { AND = { num_of_civilian_factories > 149 num_of_civilian_factories < 170 } }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 7
					include_locked = no
				}
			}
		}
		if = {
			limit = { AND = { num_of_civilian_factories > 169 num_of_civilian_factories < 190 } }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 8
					include_locked = no
				}
			}
		}
		if = {
			limit = { AND = { num_of_civilian_factories > 189 } }
			any_owned_state = {
				free_building_slots = {
					building = industrial_complex
					size > 9
					include_locked = no
				}
			}
		}
	}
}