chamdeb_bul = {
	BUL_a_royal_visit  = { #Tsar Boris visits a random location in Bulgaria

		priority = 50

		icon = eng_ally_imperialist_coup

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_stability < 0.5
			}
			modifier = {
				factor = 10
				has_stability < 0.3
			}
			modifier = {
				factor = 10
				has_stability < 0.2
			}
		}

		allowed = { 
			always = yes
		}

		available = {
			NOT = { has_country_flag = BUL_internal_affairs_ongoing_flag }
			has_completed_focus = BUL_power_to_the_tsar
		}

		days_remove = 7

		days_re_enable = 120

		visible = {
			always = yes
		}

		cost = BUL_faction_interaction_cost_standard

		complete_effect = {
			set_country_flag = BUL_internal_affairs_ongoing_flag
		}

		modifier = {
			political_power_gain = -0.5
		}

		remove_effect = {
			hidden_effect = {
				random_list =  {
					70 = {
					}
					20 = {
						set_country_flag = BUL_a_royal_visit_extra_success_flag
					}
					10 = {
						set_country_flag = BUL_a_royal_visit_failure_flag
					}
				}
			}
			country_event = { id = bftb_bulgaria_tsar_boris.1 }
			clr_country_flag = BUL_internal_affairs_ongoing_flag
		}
	}


########    ###     ######  ######## ####  #######  ##    ##     ######   #######   #######  ########  
##         ## ##   ##    ##    ##     ##  ##     ## ###   ##    ##    ## ##     ## ##     ## ##     ## 
##        ##   ##  ##          ##     ##  ##     ## ####  ##    ##       ##     ## ##     ## ##     ## 
######   ##     ## ##          ##     ##  ##     ## ## ## ##    ##       ##     ## ##     ## ########  
##       ######### ##          ##     ##  ##     ## ##  ####    ##       ##     ## ##     ## ##        
##       ##     ## ##    ##    ##     ##  ##     ## ##   ###    ##    ## ##     ## ##     ## ##        
##       ##     ##  ######     ##    ####  #######  ##    ##     ######   #######   #######  ##        


	BUL_cooperation_zveno_speech  = { #ZVENO Allow/Support faction speech

		priority = 42

		icon = GFX_decision_bul_speech_zveno

		ai_will_do = {
			base = 4
			modifier = {
				factor = 0.1
				has_country_flag = BUL_zveno_joint_act_flag
			}
		}

		allowed = { 
			original_tag = BUL
		}

		available = {
			NOT = { has_country_flag = BUL_internal_affairs_ongoing_flag }
			NOT = { has_country_flag = BUL_zveno_bolstered_flag }
		}

		days_remove = BUL_faction_days_remove_very_low

		days_re_enable = BUL_faction_days_reenable_low

		cancel_trigger = {
			hidden_trigger = {
				OR = {
					has_country_flag = BUL_zveno_destroyed_flag
					has_country_flag = BUL_zveno_coup_flag
				}
			}
		}

		cancel_effect = {
			clr_country_flag = BUL_internal_affairs_ongoing_flag
		}

		visible = {
			has_completed_focus = BUL_cooperate_with_the_zveno
			has_country_flag = BUL_factions_unlocked_flag
			NOT = { has_country_flag = BUL_zveno_bolstered_flag }
			NOT = { has_country_flag = BUL_disposed_of_zveno_generals_flag }
			NOT = { has_country_flag = BUL_zveno_integrated_flag }
			NOT = { has_country_flag = BUL_zveno_destroyed_flag }
		}

		cost = BUL_faction_interaction_cost_standard

		complete_effect = {
			set_country_flag = BUL_internal_affairs_ongoing_flag
			if = {
				limit = {
					has_country_flag = BUL_discredited_zveno_flag
				}
				clr_country_flag = BUL_discredited_zveno_flag
			}
		}

		remove_effect = {
			unlock_decision_tooltip = BUL_cooperation_zveno_joint_act
			BUL_zveno_low_loyalty_increase_effect = yes
			BUL_zveno_low_popularity_increase_effect = yes
			set_country_flag = BUL_speech_zveno_flag
			clr_country_flag = BUL_internal_affairs_ongoing_flag
			custom_effect_tooltip = BUL_cooperation_faction_speech_cd_tt
		}
	}
}