#希灵帝国mod专用triggers

#附庸国需要改革
#scope:附庸国
subject_need_rebuild_gov = {
		#普通蜂群
		has_authority = auth_hive_mind
		NOT = { has_valid_civic = civic_harmonious }
}

#目标国家是否需要惩戒
#scope:country This:目标国家
need_xilin_punish = {
    #普通国家
		is_country_type = default 
		#侮辱希灵帝国会被惩戒
		#OR = {
				has_country_flag  = f_insult_xilin  #侮辱希灵
				#has_country_flag  = f_rival_of_xilin #对希灵宿敌
		#}
		#不包括邪恶需彻底消灭的国家
		NOR =	{
				    has_country_flag  = f_evil_country #邪恶国家
				    has_valid_civic = civic_fanatic_purifiers #种族洁癖
	      	  has_valid_civic = civic_hive_devouring_swarm #弑杀群蜂
	      	  has_civic = civic_machine_terminator #铁心
		}
}

#目标国家时希灵要征服的国家（成为仆从国）
#scope:country This:目标国家
can_xilin_subjugation = {
		#普通国家
		is_country_type = default 
		#希灵帝国敌对国家将要被征服
		OR = {
				has_country_flag  = f_rival_of_xilin #对希灵宿敌
				has_country_flag  = f_refuse_destroy_claim #窥觑希灵领土
		}
		#不包括邪恶需彻底消灭的国家,也不是侮辱希灵的国家
		NOR =	{
						has_country_flag  = f_insult_xilin  #侮辱希灵
				    has_country_flag  = f_evil_country #邪恶国家
				    has_valid_civic = civic_fanatic_purifiers #种族洁癖
	      	  has_valid_civic = civic_hive_devouring_swarm #弑杀群蜂
	      	  has_civic = civic_machine_terminator #铁心
		}
}

#目标国家是否需要希灵解放
#scope:country
need_xilin_liberate = {
		#普通国家
		is_country_type = default 
		#对希灵敌对的且可以解放的国家
		OR = {
						has_country_flag  = f_insult_xilin #侮辱希灵帝国
	      		has_country_flag  = f_rival_of_xilin #对希灵宿敌
	      		has_valid_civic = civic_fanatic_purifiers #种族洁癖	      		
	      		AND = {
	      	  	 has_country_flag  = f_refuse_open_border_to_xilin #拒绝对希灵开放边境
	      	  	 has_closed_borders = ROOT
	      		}
	      		has_country_flag  = f_refuse_destroy_claim #窥觑希灵领土 
		}
		#思潮是排外或极端权威的国家
		OR = {
				has_ethic = ethic_fanatic_xenophobe
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_authoritarian
		}
}


#目标国家是希灵的敌人
#scope:country ROOT:XILIN_EMPIRE
is_xilin_enemy = {
		OR = {
						has_country_flag  = f_insult_xilin #侮辱希灵帝国
	      		has_country_flag  = f_rival_of_xilin #对希灵宿敌
	      		has_valid_civic = civic_fanatic_purifiers #种族洁癖
	      		has_valid_civic = civic_hive_devouring_swarm #弑杀群蜂
	      		has_civic = civic_machine_terminator #铁心
	      		has_country_flag  = f_evil_country #邪恶国家
	      		AND = {
	      	  	 has_country_flag  = f_refuse_open_border_to_xilin #拒绝对希灵开放边境
	      	  	 has_closed_borders = ROOT
	      		}
	      		has_country_flag  = f_refuse_destroy_claim #窥觑希灵领土 
		}
}