characters = {
	VAT_Pius_XI = {
		name = VAT_Pius_XI
		portraits = {
			civilian = {
				large = "GFX_portrait_VAT_Pius_XI" #TODO: MAKE THROUGH GFX SPRITE
			}
		}
		country_leader = {
			ideology = papal_state
			expire = "1939.2.10"
			traits = { 
				supreme_pontiff
				vat_graceful_pontiff
				vat_strong_anticommunist
			}
		}
		country_leader = {
			ideology = constitutional_theocratic_monarchy
			expire = "1939.2.10"
			traits = { 
				supreme_pontiff
				vat_graceful_pontiff
				vat_strong_anticommunist
			}
		}
		country_leader = {
			ideology = catholic_integralism
			expire = "1939.2.10"
			traits = { 
				supreme_pontiff
				vat_graceful_pontiff
				vat_strong_anticommunist
			}
		}
	}
	
	VAT_Pius_XII = {
		name = VAT_Eugenio_Pacelli
		portraits = {
			civilian = {
				large = "GFX_portrait_VAT_Pius_XII"
				small = "GFX_portrait_VAT_Pius_XII_advisor_small" #TODO: MAKE THROUGH GFX SPRITE
			}
		}
		country_leader = {
			ideology = papal_state
			expire = "1958.10.9"
			traits = {  
				supreme_pontiff
				vat_skilled_diplomat
				vat_strong_anticommunist
				vat_had_diplomatic_linkes_in_germany
			}
		}
		country_leader = {
			ideology = constitutional_theocratic_monarchy
			expire = "1958.10.9"
			traits = {  
				vat_skilled_diplomat
				vat_strong_anticommunist
				vat_had_diplomatic_linkes_in_germany
			}
		}
		country_leader = {
			ideology = catholic_integralism
			expire = "1958.10.9"
			traits = {  
				supreme_pontiff
				vat_skilled_diplomat
				vat_strong_anticommunist
				vat_had_diplomatic_linkes_in_germany
			}
		}
		advisor = {
			slot = political_advisor
			idea_token = VAT_Pius_XII
			can_be_fired = no

			allowed = { original_tag = VAT }

			available = {
				NOT = { has_country_leader = { character = VAT_Luigi_Maglione ruling_only = yes } }
			}

			visible = {
				NOT = { has_completed_focus = VAT_pius_xii_foc has_country_leader = { character = VAT_Pius_XII ruling_only = yes } }
			}

			# available = {
			# 	NOT = { has_idea = VAT_Luigi_Maglione }
			# 	NOT = { is_country_leader = yes }
			# }
			traits = {
				secretary_of_vatican_links_in_germany
			}

		}
	}

	VAT_Stefan_X = {
		name = VAT_Elia_Dalla_Costa
		portraits = {
			civilian = {
				large = "GFX_portrait_VAT_Stefan_X"
			}
		}
		country_leader = {
			ideology = papal_state
			expire = "1961.12.22"
			traits = {  
				supreme_pontiff
				vat_kind_pope
			}
		}
		country_leader = {
			ideology = constitutional_theocratic_monarchy
			expire = "1961.12.22"
			traits = {  
				supreme_pontiff
				vat_kind_pope
			}
		}
		country_leader = {
			ideology = catholic_integralism
			expire = "1961.12.22"
			traits = {  
				supreme_pontiff
				vat_kind_pope
			}
		}
	}

	VAT_Benedict_XVI = {
		name = VAT_George_Mundelein
		portraits = {
			civilian = {
				large = "GFX_portrait_VAT_Benedict_XVI"
			}
		}
		country_leader = {
			ideology = papal_state
			expire = "1949.10.9"
			traits = {  
				supreme_pontiff
				vat_fearless_modernizer
				vat_sharp_tongued_strategist
				vat_linkes_in_usa
			}
		}
		country_leader = {
			ideology = constitutional_theocratic_monarchy
			expire = "1949.10.9"
			traits = {  
				supreme_pontiff
				vat_fearless_modernizer
				vat_sharp_tongued_strategist
				vat_linkes_in_usa
			}
		}
		country_leader = {
			ideology = catholic_integralism
			expire = "1949.10.9"
			traits = {  
				supreme_pontiff
				vat_fearless_modernizer
				vat_sharp_tongued_strategist
				vat_linkes_in_usa
			}
		}
	}

	VAT_Adrian_VII = {
		name = VAT_Theodor_Innitzer
		portraits = {
			civilian = {
				large = "GFX_portrait_VAT_Adrian_VII"
				#Маленекьий портрет нигде не используется так как Адриан VII не может выйти в ветку Римской Курии
			}
		}
		country_leader = {
			ideology = papal_state
			expire = "1955.10.9"
			traits = {  
				supreme_pontiff
				vat_unyielding_conservative
				vat_strong_anticommunist
			}
		}
		country_leader = {
			ideology = catholic_integralism
			expire = "1955.10.9"
			traits = {  
				supreme_pontiff
				vat_unyielding_conservative
				vat_strong_anticommunist
			}
		}
	}

	VAT_Luigi_Maglione= {
		name = VAT_Luigi_Maglione
		portraits = {
			civilian = {
				large = GFX_portrait_VAT_Luigi_Maglione
				small = GFX_portrait_VAT_Luigi_Maglione_small
			}
		}
		advisor = {
			slot = political_advisor
			idea_token = VAT_Luigi_Maglione
			can_be_fired = no

			allowed = { original_tag = VAT }

			available = {
				NOT = { AND = { 
					has_country_leader = { character = VAT_Pius_XII ruling_only = yes } 
					check_variable = { current_pope = VAT_Pius_XII }
				} }
			}

			visible = {
				NOT = {
					has_idea = VAT_Pius_XII
				}
				NOT = { has_country_leader = { character = VAT_Luigi_Maglione ruling_only = yes } }
			}
			
			# available = {
			# 	NOT = { has_idea = VAT_Pius_XII }
			# 	NOT = { is_country_leader = yes }
			# }
			traits = {
				secretary_of_vatican_links_in_france
			}
		}
		country_leader = {
			ideology = constitutional_theocratic_monarchy
			expire = "1955.10.9"
			traits = {  
				vat_skilled_diplomat
				vat_had_diplomatic_linkes_in_france
			}
		}
	}

	VAT_Conclave = {
		name = VAT_Conclave
		portraits = {
			civilian = {
				large = "GFX_portrait_VAT_Conclave"
			}
		}
		country_leader = {
			ideology = papal_state
			expire = "2000.1.1"
			traits = { vat_sede_vacante }
		}
		# country_leader = {
		# 	ideology = constitutional_theocratic_monarchy
		# 	expire = "2000.1.1"
		# 	traits = {  }
		# }
	}

	VAT_Curia = {
		name = VAT_Curia
		portraits = {
			civilian = {
				large = "GFX_portrait_VAT_Curia"
			}
		}
		country_leader = {
			ideology = constitutional_theocratic_monarchy
			expire = "2000.1.1"
			traits = { vat_collective_leadership }
		}
	}

	VAT_vacant_place = {
		name = VAT_vacant_place
		portraits = {
			civilian = {
				small = "GFX_portrait_VAT_vacant_place_small"
				large = "GFX_portrait_VAT_vacant_place"
			}
		}
		country_leader = {
			ideology = papal_state
		}
		advisor = {
			slot = political_advisor
			idea_token = VAT_vacant_place
			can_be_fired = no

			allowed = { original_tag = VAT }

			visible = {
				NOT = {
					has_idea = VAT_Pius_XII
					has_idea = VAT_Luigi_Maglione
					has_completed_focus = VAT_era_dictatorship_pontificate
					has_completed_focus = VAT_the_prime_cardinal
				}
			}
			
			traits = {
				secretary_of_vatican_vacant_role
			}
		}
	}

	VAT_empty_character = {
		name = VAT_empty_character
		portraits = {
			civilian = {
				#small = "gfx/leaders/VAT/small/vacant_place_small.dds"
				large = "GFX_portrait_VAT_vacant_place"
			}
		}
		country_leader = {
			ideology = fascism_ideology
		}
		country_leader = {
			ideology = marxism
		}
	}

	VAT_Georg_von_Sury_d_Aspremont = {
		name = VAT_Georg_von_Sury_d_Aspremont
		
		portraits = {
			civilian = {
				large = "GFX_portrait_VAT_Georg_von_Sury_d_Aspremont"
			}
		}
		
		corps_commander = {
			traits = { leader_of_swiss_guard old_guard } 
			skill = 1
			attack_skill = 1
			defense_skill = 2
			planning_skill = 1
			logistics_skill = 1
			legacy_id = 0
		}
	}



	##СОВЕТНИКИ
	VAT_Camillo_Serafin = {
		name = VAT_Camillo_Serafin
		
		portraits = {
			civilian = {
				small = "GFX_portrait_VAT_Camillo_Serafin_small"
			}
		}
		
		advisor={
			slot = political_advisor
			idea_token = VAT_Camillo_Serafin
			slot = political_advisor

			allowed = { original_tag = VAT }
			available = { num_of_controlled_states < 2 }
			visible = { num_of_controlled_states < 2 }

			traits = {
				governor_of_vatican
			}
			cost = 75
		}	
	}
	
	VAT_julius_evola = {
		name = VAT_julius_evola
		portraits = {
			army = {
				small = "GFX_portrait_VAT_julius_evola_small"
			}
		}
		advisor = {
			slot = political_advisor
			idea_token = VAT_julius_evola
			allowed = {
				original_tag = VAT
			}
			available = {
				has_country_flag = julius_evola_accepted
			}
			visible = {
				has_country_flag = julius_evola_accepted
			}
			traits = {
				mystic_fascism
			}
			cost = 100
			ai_will_do = {
				base = 1
			}
		}
	}

	VAT_Cesari_Mori = {
		name = VAT_Cesari_Mori
		
		portraits = {
			civilian = {
				small = "GFX_portrait_VAT_Cesari_Mori_small"
			}
		}
		
		advisor = {
			slot = political_advisor
			idea_token = VAT_Cesari_Mori

			allowed = { original_tag = VAT }
			available = { 
				has_completed_focus = VAT_return_cesari_mori 
				NOT = { has_completed_focus = VAT_dominance_of_the_holy_see }
			}
			visible = { has_completed_focus = VAT_opposition_question NOT = { has_completed_focus = VAT_dominance_of_the_holy_see } }

			traits = {
				iron_perfect
			}
			cost = 50

			on_add = {
				owner = {
					hidden_effect = { activate_mission = VAT_cesari_mori_actions_mission }
					subtract_from_variable = {
						mafia_raid_states_cost_var = 5
					}
					#custom_effect_tooltip = vat_cesari_mori_effect_tt
				}
			}
			on_remove = {
				owner = {
					hidden_effect = {
						remove_mission = VAT_cesari_mori_actions_mission
						add_to_variable = {
							mafia_raid_states_cost_var = 5
						}
					}
				}
			}
		}	
	}

	VAT_alcide_de_gasperi = {
		name = ITA_alcide_de_gasperi
		portraits = {
			civilian = {
				small = "GFX_portrait_ITA_alcide_de_gasperi_small"
			}
		}

		advisor = {
			slot = political_advisor
			idea_token = VAT_alcide_de_gasperi
			cost = 75
			allowed = {
				original_tag = VAT
			}
			available = {
				has_completed_focus = VAT_opposition_question
				NOT = { has_completed_focus = VAT_loyal_to_the_pope_vicars }
			}
			visible = {
				has_completed_focus = VAT_start_taking_care_of_things
			}

			traits = {
				radical_fighter
			}

			on_add = {
				#custom_effect_tooltip = vat_alcide_de_gasperi_adding_tt
				subtract_from_variable = {
					vat_opposition_criticize_cost_var = 5
				}
				subtract_from_variable = {
					vat_opposition_raid_cost_var = 5
				}
				subtract_from_variable = {
					vat_opposition_spies_cost_var = 5
				}
				add_to_variable = {
					vat_opposition_power_up_days_timeout_var = 10
				}
			}

			on_remove = {
				add_to_variable = {
					vat_opposition_criticize_cost_var = 5
				}
				add_to_variable = {
					vat_opposition_raid_cost_var = 5
				}
				add_to_variable = {
					vat_opposition_spies_cost_var = 5
				}
				subtract_from_variable = {
					vat_opposition_power_up_days_timeout_var = 10
				}
			}
		}
	}

	VAT_Luigi_Sturzo = {
		name = VAT_Luigi_Sturzo
		portraits = {
			civilian = {
				small = "GFX_portrait_VAT_Luigi_Sturzo_small"
			}
		}

		advisor = {
			slot = political_advisor
			idea_token = VAT_Luigi_Sturzo
			allowed = {
				original_tag = VAT
			}
			available = {
				has_completed_focus = VAT_demussolinization
			}
			visible = {
				has_completed_focus = VAT_extension_of_the_powers_of_the_roman_curia
			}

			cost = 100
			traits = {
				clerical_reformer
			}

			on_add = {
				owner = {
					hidden_effect = {
						activate_mission = VAT_luigi_sturzo_actions_mission
					}
				}
				#custom_effect_tooltip = vat_decreasing_cost_of_support_law_decisions_tt
			}

			on_remove = {
				owner = {
					hidden_effect = {
						remove_mission = VAT_luigi_sturzo_actions_mission
					}
				}
			}
		}
	}

	VAT_dino_grandi = {
		name = ITA_dino_grandi
		portraits = {
			army = {
				small = "GFX_portrait_ITA_dino_grandi_small"
			}
			civilian = {
				large = "GFX_portrait_ITA_dino_grandi"
			}
		}

		advisor = {
			slot = political_advisor
			idea_token = VAT_dino_grandi
			allowed = {
				original_tag = VAT
			}
			available = {
				has_completed_focus = VAT_alliance_with_devils
				NOT = { has_completed_focus = VAT_era_dictatorship_pontificate }
			}
			visible = {
				has_completed_focus = VAT_extension_of_the_powers_of_the_roman_curia
			}
			
			cost = 100
			traits = {
				experienced_bureaucrat_fascist 
			}
			on_add = {
				subtract_from_variable = {
					vat_lobbying_for_the_bill_cost_var = 5
				}
				subtract_from_variable = {
					vat_bribe_cardinals_cost_var = 5
				}
				subtract_from_variable = {
					vat_put_pressure_on_cardinals_cost_var = 5
				}
			}
			on_remove = {
				add_to_variable = {
					vat_lobbying_for_the_bill_cost_var = 5
				}
				add_to_variable = {
					vat_bribe_cardinals_cost_var = 5
				}
				add_to_variable = {
					vat_put_pressure_on_cardinals_cost_var = 5
				}
				ROOT = {
					if = {
						limit = { has_completed_focus = VAT_rebuild_the_roman_curia }
						add_political_power = 50
					}
				}
			}
		}
	}

	VAT_eugene_tisserand = {
		name = VAT_eugene_tisserand
		portraits = {
			civilian = {
				small = "GFX_portrait_VAT_eugene_tisserand_small"
			}
		}

		advisor = {
			slot = political_advisor
			idea_token = VAT_eugene_tisserand
			cost = 100
			allowed = {
				original_tag = VAT
			}
			available = {
				has_idea = VAT_problem_of_orthodox
				NOT = { has_completed_focus = VAT_union_of_the_churchs }
			}
			visible = {
				has_completed_focus = VAT_extension_of_the_powers_of_the_roman_curia
			}

			traits = {
				secretary_of_the_congregation_for_the_eastern_church
			}

			on_add = {
				#custom_effect_tooltip = vat_alcide_de_gasperi_adding_tt
				subtract_from_variable = {
					discussion_of_condition_with_priests_cost_var = 5
				}
				subtract_from_variable = {
					concessions_for_priests_cost_var = 5
				}
				subtract_from_variable = {
					compromisses_between_catolics_and_orthodox_cost_var = 10
				}
			}

			on_remove = {
				add_to_variable = {
					discussion_of_condition_with_priests_cost_var = 5
				}
				add_to_variable = {
					concessions_for_priests_cost_var = 5
				}
				add_to_variable = {
					compromisses_between_catolics_and_orthodox_cost_var = 10
				}
				ROOT = {
					if = {
						limit = { has_completed_focus = VAT_union_of_the_churchs }
						add_political_power = 50
					}
				}
			}
		}
	}

	VAT_pietro_fumasoni_biondi = {
		name = VAT_pietro_fumasoni_biondi
		portraits = {
			civilian = {
				small = "GFX_portrait_VAT_pietro_fumasoni_biondi_small"
			}
		}

		advisor = {
			slot = political_advisor
			idea_token = VAT_pietro_fumasoni_biondi
			cost = 100
			allowed = {
				original_tag = VAT
			}
			available = {
				has_completed_focus = VAT_integration_of_new_lands
			}
			visible = {
				has_completed_focus = VAT_extension_of_the_powers_of_the_roman_curia
			}

			traits = {
				secretary_of_the_congregation_for_the_propagation_of_the_faith
			}

			on_add = {
				subtract_from_variable = { vat_days_of_integration_of_diocese_var = 20 }
				subtract_from_variable = { vat_days_of_create_diocese_var = 10 }
				subtract_from_variable = { vat_days_of_subjugate_ally_var = 20 }
				subtract_from_variable = { vat_days_of_region_integration_var = 30 }
				subtract_from_variable = { vat_cost_of_integration_of_diocese_var = 10 }
			}

			on_remove = {
				add_to_variable = { vat_days_of_integration_of_diocese_var = 20 }
				add_to_variable = { vat_days_of_create_diocese_var = 10 }
				add_to_variable = { vat_days_of_subjugate_ally_var = 20 }
				add_to_variable = { vat_days_of_region_integration_var = 30 }
				add_to_variable = { vat_cost_of_integration_of_diocese_var = 10 }
			}
		}
	}

	VAT_giuseppe_borea = {
		name = ITA_giuseppe_borea
		portraits = {
			army = {
				small = "GFX_portrait_ITA_giuseppe_borea_small"
			}
		}

		advisor = {
			slot = political_advisor
			idea_token = VAT_giuseppe_borea
			allowed = {
				original_tag = VAT
			}
			available = {
				has_completed_focus = VAT_conspiracy_among_the_priests
				ITA = { exists = yes }
			}
			visible = {
				has_completed_focus = VAT_prepare_the_operation_return_to_rome
				NOT = { has_completed_focus = VAT_start_taking_care_of_things }
			}

			cost = 50
			traits = {
				vat_anti_fascist_chaplain
			}
		}		
	}	
}