on_actions = {
	##ПЕРВАЯ ВОЙНА ВАТИКАНА И ИТАЛИИ - МИР
	# on_state_control_changed = {
	# 	effect = {
	# 		if = {
	# 			limit = {
	# 				tag = VAT
	# 				OR = {
	# 					VAT = { controls_state = 157 }
	# 					RIM = { controls_state = 157 }
	# 				}
	# 				NOT = { has_completed_focus = VAT_first_win }
	# 			}
	# 			VAT = {
	# 				white_peace = ITA
	# 				annex_country = {
	# 					target = RIM
	# 					transfer_troops = yes
	# 				}
	# 				add_state_core = 157
	# 				add_state_core = 2
					
	# 				transfer_state = 157
	# 				#complete_national_focus = VAT_first_win
	# 				country_event = { days = 4 id = vat.2 }
	# 				country_event = { days = 6 id = vat.12 }
	# 				add_stability = -0.5
	# 				add_popularity = {
	# 					ideology = fascism
	# 					popularity = 0.2
	# 				}
	# 				add_popularity = {
	# 					ideology = communism
	# 					popularity = 0.2
	# 				}
	# 			}
	# 			RIM = {
	# 				remove_state_core = 2
	# 				remove_state_core  = 157
	# 			}
	# 			ITA = {
	# 				load_focus_tree = "generic_focus"
	# 				add_ideas = VAT_disloyal_army
	# 				delete_unit_template_and_units = {
	# 					division_template = "Divisione di Fanteria"
	# 					disband = yes #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Divisione Alpina"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Camicie Nere"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Divisione Celere"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Reggimento di Cavalleria"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Divisione Coloniale"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Divisione Ascari Libica"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Divisione Ascari Eritrea"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Divisione Ascari Somala"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Banda Indigena Irregolare"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Truppe Irregolari a Cavallo"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Banda Irregolare Libica"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Banda Irregolare Eritrea"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				delete_unit_template_and_units = {
	# 					division_template = "Banda Irregolare Somala"
	# 					disband = no #will refund equipment and manpower
	# 				}
	# 				load_oob = "Italy_lost"
	# 			}
				
	# 			news_event = vat_news.1
	# 		}
	# 	}
	# }

	on_startup = {
		effect = {
			VAT = {
				promote_character = {
					character = VAT_Curia
					ideology = constitutional_theocratic_monarchy
				}
				promote_character = {
					character = VAT_empty_character
					ideology = fascism_ideology
				}
			}
		}
	}

	##СМЕРТЬ ПИЯ XI
	on_daily = { 
		effect = {
			if = { 
				limit = { 
					date > 1939.2.10
					
				}
				VAT = { 
					country_event = {
						id = vat.6
					}
				}			
			}
		}
	}

	on_weekly_ITA = { 
		effect = {
			if = { 
				limit = { 
					VAT = {
						has_completed_focus = VAT_organize_cells_among_religious_fanatics
						NOT = { has_completed_focus = VAT_start_operation_return_to_rome }
					}
				} 
				2 = { set_demilitarized_zone = yes }
				157 = { set_demilitarized_zone = yes }
			}
		}
	}

	on_capitulation = {
		effect = {
			if = {
				limit = {
					tag = TOS
				}
				VAT = {
					TOS = {
						every_owned_state = {
							limit = {
								is_controlled_by = VAT
							}
							transfer_state_to = VAT
						}
						transfer_units_fraction = {
							target = VAT
							navy_ratio = 1
						}
					}
					white_peace = TOS
					add_equipment_to_stockpile = {
						type = infantry_equipment_1
						amount = 1500
						producer = ITA
					}
					add_equipment_to_stockpile = {
						type = support_equipment
						amount = 100
						producer = ITA
					}
					add_equipment_to_stockpile = {
						type = artillery_equipment
						amount = 75
						producer = ITA
					}
					add_popularity = {
						ideology = communism
						popularity = 0.05
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.05
					}
				}
			}
			else_if = {
				limit = {
					tag = LBV
				}
				VAT = {
					LBV = {
						every_owned_state = {
							limit = {
								is_controlled_by = VAT
							}
							transfer_state_to = VAT
						}
						transfer_units_fraction = {
							target = VAT
							navy_ratio = 1
						}
					}
					white_peace = LBV
					add_equipment_to_stockpile = {
						type = infantry_equipment_1
						amount = 1500
						producer = ITA
					}
					add_equipment_to_stockpile = {
						type = support_equipment
						amount = 100
						producer = ITA
					}
					add_equipment_to_stockpile = {
						type = artillery_equipment
						amount = 75
						producer = ITA
					}
					add_popularity = {
						ideology = communism
						popularity = 0.1
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.02
					}
				}
			}
			else_if = {
				limit = {
					tag = SPM
				}
				VAT = {
					SPM = {
						every_owned_state = {
							limit = {
								is_controlled_by = VAT
							}
							transfer_state_to = VAT
						}
						transfer_units_fraction = {
							target = VAT
							navy_ratio = 1
						}
					}
					white_peace = SPM
					# delete_unit_template_and_units = {
					# 	division_template = "Marine Militia"
					# 	disband = no #will refund equipment and manpower
					# }
					add_equipment_to_stockpile = {
						type = infantry_equipment_1
						amount = 1500
						producer = ITA
					}
					add_equipment_to_stockpile = {
						type = support_equipment
						amount = 100
						producer = ITA
					}
					add_equipment_to_stockpile = {
						type = artillery_equipment
						amount = 75
						producer = ITA
					}
					add_popularity = {
						ideology = communism
						popularity = 0.03
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.03
					}
				}
			}
			else_if = {
				limit = {
					tag = ITA
				}
				ITA = {
					transfer_navy = {
						target = VAT
					}
				}
				VAT = {
					white_peace = ITA
					annex_country = {
						target = ITA
						transfer_troops = no
					}
					add_equipment_to_stockpile = {
						type = infantry_equipment_1
						amount = 1500
						producer = ITA
					}
					add_equipment_to_stockpile = {
						type = support_equipment
						amount = 100
						producer = ITA
					}
					add_equipment_to_stockpile = {
						type = artillery_equipment
						amount = 75
						producer = ITA
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.1
					}
					country_event = vat.10
				}
			}
		}
	}

	# on_capitulation = {
	# 	effect = {
	# 		if = {
	# 			limit = {
	# 				tag = YUG
	# 			}
	# 		}
	# 		if = {
	# 			limit = {
	# 				CRO = {
	# 					NOT = {
	# 						is_puppet_of = VAT
	# 					}
	# 				}
	# 			}
	# 			set_autonomy = {
	# 				target = CRO
	# 				autonomous_state = autonomy_collaboration_government
	# 				end_wars = no
	# 				end_civil_wars = no
	# 			}
	# 		}
	# 		CRO = {
	# 			set_cosmetic_tag = CRO_VAT_diocese
	# 		}
	# 	}
	# }

	on_declare_war = {
		effect = {
			if = {
				limit = {
					FROM = { has_country_flag = VAT_rear_resistance_organised }
					tag = VAT
				}
				FROM = { add_ideas = VAT_rear_resistance }
			}
		}
	}

	on_ruling_party_change = { #В ваниле косметиг тег Болгарии зависит от правящей партии и меняется в подобном on_action
		effect = {
			if = {
				limit = { original_tag = BUL }
				if = {
					limit = { has_autonomy_state = autonomy_vatican_diocese }
					set_cosmetic_tag = BUL_VAT_diocese
				}
			}
		}
	}
	
}