tributary = {
	can_expand = yes
	joins_overlord_wars = no
	calls_overlord_to_war = yes
	can_do_diplomacy = yes
	
	can_switch_to = {
		vassal protectorate
	}
	
	subject_tax_rate = {
		minerals = 0.25
		energy = 0.25
	}
	
	potential = {
		from = { is_country_type = default }
		 #希灵帝国不能有朝贡国,也不会成为朝贡国
		NOR = {
		   has_authority = auth_xilin_mind
		   from = {  has_authority = auth_xilin_mind  }
		}
	}
	
	effect = {
		if = {
			limit = {
				from = { 	
					is_country_type_with_subjects = no
				}
			}
			set_subject_of = {
				who = none
			}
			break = yes
		}		
		if = {
			limit = {
				from = { 
					has_valid_civic = civic_hive_devouring_swarm
				}
			}
			set_subject_of = {
				who = none
			}
			break = yes
		}			
		if = {
			limit = {
				NOT = { is_same_species = from }
				from = { 
					has_valid_civic = civic_fanatic_purifiers
				}
			}
			set_subject_of = {
				who = none
			}
			break = yes
		}	
		if = {
			limit = {
				from = { 
					is_country_type = awakened_fallen_empire
					has_ethic = ethic_fanatic_materialist
				}
			}
			set_subject_of = {
				who = from
				subject_type = satellite
			}
			break = yes
		}	
		if = {
			limit = {
				from = { 
					is_country_type = awakened_fallen_empire
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			set_subject_of = {
				who = from
				subject_type = dominion
			}
			break = yes
		}
		if = {
			limit = {
				from = { 
					is_country_type = awakened_fallen_empire
					has_ethic = ethic_fanatic_xenophile
				}
			}
			set_subject_of = {
				who = from
				subject_type = signatory
			}
			break = yes
		}
		if = {
			limit = {
				from = { 
					is_country_type = awakened_fallen_empire
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			set_subject_of = {
				who = from
				subject_type = thrall
			}
			break = yes
		}
		#若是希灵帝国附庸转其他帝国附庸
		if = {
			limit = {
				from = { 
					NOT = { has_authority = auth_xilin_mind } #宗主国是希灵帝国
				}
				OR = {
				  has_modifier =  m_xilin_discipline
	   			has_modifier =  m_xilin_servant_vassal
	   			has_modifier =  m_xilin_follower
	   			has_modifier =  m_xilin_blessed
				}
			}
			#移除modifier与flag
	    country_event = { id = xilin_diplomacy.5  }
		}
		if = {
			limit = {
				from = { 
					has_authority = auth_xilin_mind #宗主国是希灵帝国
				}
			}
			set_subject_of = {
				who = none
			}
		}
	}	
}