country_decisions = {
	increase_papal_influence_of_your_papal_sanctuary_subjects = {
		potential = {
			papacy_active = yes
			can_be_overlord = papal_sanctuary_subject
			has_subject_of_type = papal_sanctuary_subject
			OR = {
				NOT = { has_country_flag = increased_papal_influence_of_papal_sanctuary_subjects }
				had_country_flag = { flag = increased_papal_influence_of_papal_sanctuary_subjects days = 3650 }
			}
		}
		allow = {
			is_papal_controller = yes
			treasury = 250
			dip_power = 100
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Emperor"
				}
				add_curia_treasury = 250
			}
			add_treasury = -250
			add_dip_power = -100
			if = {
				limit = {
					NOT = {
						calc_true_if = {
							all_subject_country = {
								is_subject_of_type = papal_sanctuary_subject
							}
							amount = 5
						}
					}
				}
				every_subject_country = {
					limit = {
						is_subject_of_type = papal_sanctuary_subject
					}
					add_papal_influence = 20
					add_liberty_desire = -5
				}
			}
			else = {
				random_subject_country = {
					limit = {
						is_subject_of_type = papal_sanctuary_subject
					}
					add_papal_influence = 20
					add_liberty_desire = -5
				}
				random_subject_country = {
					limit = {
						is_subject_of_type = papal_sanctuary_subject
					}
					add_papal_influence = 20
					add_liberty_desire = -5
				}
				random_subject_country = {
					limit = {
						is_subject_of_type = papal_sanctuary_subject
					}
					add_papal_influence = 20
					add_liberty_desire = -5
				}
				random_subject_country = {
					limit = {
						is_subject_of_type = papal_sanctuary_subject
					}
					add_papal_influence = 20
					add_liberty_desire = -5
				}
				random_subject_country = {
					limit = {
						is_subject_of_type = papal_sanctuary_subject
					}
					add_papal_influence = 20
					add_liberty_desire = -5
				}
			}
			clr_country_flag = increased_papal_influence_of_papal_sanctuary_subjects
			set_country_flag = increased_papal_influence_of_papal_sanctuary_subjects
		}
		ai_will_do = {
			factor = 1

			modifier = {
				factor = 0
				any_neighbor_country = {
					ROOT = {
						NOT = { dip_tech = PREV }
					}
				}
			}
			modifier = {
				factor = 0
				num_of_loans = 1
			}
			modifier = {
				factor = 0
				is_bankrupt = yes
			}
		}
	}
}