VAT_law_can_be_applied = {
	if = {
		limit = {
			NOT = {
				check_variable = {
					current_law_pope_vote = current_law_secretary_vote
				}
			}
		}
		check_variable = {
			curia_law_vote_value > 59
		}
	}
	else_if = {
		limit = {
			check_variable = {
				current_law_pope_vote = 0
			}
		}
		always = no
	}
	else = {
		check_variable = {
			curia_law_vote_value > 35
		}
	}
}

VAT_can_introduce_a_bill = {
	custom_trigger_tooltip = {
		tooltip = vat_do_not_have_active_voite_for_law
		NOT = {
			has_active_mission = VAT_curia_law_voting_mission
			has_active_mission = VAT_curia_law_additional_voting_mission
		}
	}
	custom_trigger_tooltip = {
		tooltip = vat_opposition_do_not_prepare_law
		NOT = {
			has_active_mission = VAT_curia_law_opposition_suggest
		}
	}
	
	custom_trigger_tooltip = {
		tooltip = vat_do_not_intoduce_law_with_decision
		NOT = {
			has_decision = VAT_cancel_law_reformed_papal_police
			has_decision = VAT_cancel_law_priority_to_small_business
			has_decision = VAT_cancel_law_papal_guard_terror
			has_decision = VAT_cancel_law_priority_to_big_industry
		}
	}
	VAT_Conclave = {
		is_country_leader = no
	}
}

VAT_is_law_by_traditionalists = {
	OR = {
		check_variable = { current_law = 1 }
		check_variable = { current_law = 5 }
		check_variable = { current_law = 6 }
		check_variable = { current_law = 7 }
		check_variable = { current_law = 10 }
	}
}
VAT_is_law_by_reformists = {
	OR = {
		check_variable = { current_law = 2 }
		check_variable = { current_law = 3 }
		check_variable = { current_law = 8 }
		check_variable = { current_law = 9 }
		check_variable = { current_law = 11 }
	}
}


VAT_traditionalists_dominate = {
	power_balance_value = {
		id = VAT_curia_bop
		value > 0.05
	}
}
VAT_reformists_dominate = {
	power_balance_value = {
		id = VAT_curia_bop
		value < -0.05
	}
}

VAT_is_catholic_country = {
	OR = {
		original_tag = SPR
		original_tag = POR
		original_tag = FRA
		#original_tag = BEL #because of the Netherlands
		original_tag = POL
		original_tag = HUN
		original_tag = AUS
		original_tag = CZE
		original_tag = IRE
		original_tag = MEX
		original_tag = CEA
		original_tag = COL
		original_tag = PRU
		original_tag = BRA
		original_tag = ARG
		original_tag = CHL
		original_tag = URG
		original_tag = PAR
		original_tag = CUB
		original_tag = COG
		original_tag = SUR
		original_tag = PHI
	}
}

VAT_is_catholic_state = {
	OR = {
		is_core_of = ITA
		is_core_of = POR
		is_core_of = SPR
		is_core_of = FRA
		is_core_of = BEL
		is_core_of = AUS
		is_core_of = SWI #Есть католики
		is_core_of = POL
		is_core_of = LIT
		is_core_of = CZE
		is_core_of = SLO
		is_core_of = SLV
		is_core_of = CRO
		is_core_of = HUN
		is_core_of = MEX
		is_core_of = GUA
		is_core_of = ELS
		is_core_of = HON
		is_core_of = NIC
		is_core_of = COS
		is_core_of = PAN
		is_core_of = COL
		is_core_of = VEN
		is_core_of = ECU
		is_core_of = PRU
		is_core_of = BOL
		is_core_of = CHL
		is_core_of = ARG
		is_core_of = PAR
		is_core_of = URG
		is_core_of = BRA
		is_core_of = GYA
		is_core_of = SUR
		is_core_of = CAY
		is_core_of = CUB
		is_core_of = HAI
		is_core_of = JAM
		is_core_of = HAI
		is_core_of = DOM
		is_core_of = PUE
		is_core_of = GDL
		is_core_of = BAS
		is_core_of = TRI
		is_core_of = CRC
		is_core_of = PHI
	}
}


VAT_trigger_country_not_exists = {
	OR = {
		exists = no
		is_in_faction_with = VAT
		is_subject_of = VAT
	}
}

VAT_trigger_vatican_or_subject_controls_core_state = {
	any_core_state = {
		controller = {
			OR = {
				tag = VAT
				is_subject_of = VAT
			}
		}
	}
}

VAT_trigger_odd_yugoslavia = {
	NOT = {
		has_war_with = YUG
	}
	YUG = {
		is_puppet = no
		exists = yes
		has_capitulated = no
		any_controlled_state = {
			is_core_of = CRO
		}
	}
}

VAT_check_odd_german_relations_visible = {
	has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
	NOT = {
		has_completed_focus = VAT_betrayal_of_the_century
	}
	GER = {
		exists = yes
		has_capitulated = no
		is_puppet = no
	}
}

VAT_check_odd_reich_balkans_influence_visible = {
	is_in_faction_with = VAT
	is_puppet = no
	has_capitulated = no
}