#my_casus_belli = {
#	potential = { ... }		# trigger to make some CBs invalid for certain types of countries; this = attacker (CB owner); default: { always = yes }
#	is_valid = { ... }		# trigger, evaluated daily to check if CB should be created or destroyed automatically, does not affect CBs granted via script;
#								# this = attacker (CB owner), from = defender (target country); default: { always = yes }
#	destroy_if = { ... }	# trigger, evaluated daily to destroy CBs that have been granted via script ahead of expiration date;
#								# this = attacker (CB owner), from = defender (target country); default: { always = no }
#	show_notification = no/yes	# optional (default = yes), flag to control whether this CB will generate a notification (to avoid duplicate 
# 								# notification when a claim CB is generated)
#}

#ű߾ս
cb_open_border = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = {
		has_authority = auth_xilin_mind #ϣ۹
	}
	is_valid = {
		from = {
				has_country_flag  = f_refuse_open_border_to_xilin #ܾϣ鿪ű߾
	      has_closed_borders = prev	      
		}
	}
}

#ϣ,ϣжԵĹҽΪʹӹ
cb_xilin_subjugation = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = {
		has_authority = auth_xilin_mind #ϣ۹
	}
	is_valid = { 
		from = {   
	      can_xilin_subjugation = yes
		}
	}	
}

#ս(Ӵų)ųĹҽֱӳΪϣĸӹ
cb_xilin_liberate = {
	 show_in_diplomacy = yes
	 show_notification = yes
	 potential = {
		  has_authority = auth_xilin_mind #ϣ۹
	 }
	 is_valid = { 
		 from = {   
	      need_xilin_liberate = yes
	      #ֳϵ
	      any_system_within_border = {
						any_planet = { 
								is_colony = yes
						}
						root = { has_claim = prev }
				}
		 }
	 }	
}


#ϣĳͽ䣬ͽϣĹ
cb_xilin_discipline = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = {
		has_authority = auth_xilin_mind #ϣ۹
	}
	is_valid = {
		from = {
				need_xilin_punish = yes
		}
	}
}

#(ˣ)
cb_evil = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = {
		has_authority = auth_xilin_mind #ϣ۹
	}
	is_valid = {
		from = { 
	      has_country_flag  = f_evil_country   #Ŀа
		}
	}
}