# possible - filters out achivements on game start so we dont have to check everything all the 
#time
## happened - checks if achivement happened
#
###########################
## BULGARIA ACHIEVEMENTS ##
###########################

unique_id = BftB_Mod_BUL_achievements

01_BUL_unity_makes_strength = { #Unity Makes Strength
    possible = {
        # classic triggers used in all vanilla achievements
        difficulty > 1
        has_start_date < 1936.01.02
        has_any_custom_difficulty_setting = no
		
        #game_rules_allow_achievements = yes
		custom_trigger_tooltip = {
			tooltip = mod_is_ironman		
			is_ironman = yes
		}
		original_tag = BUL
    }
 
    happened = {
	
		
		#custom_trigger_tooltip = { tooltip = nov_abzats }
	
		BUL = {
		
			has_capitulated = no
			custom_trigger_tooltip = { tooltip = nov_abzats }
			#starting states:
			#controls_state = 48
			#controls_state = 212
			#controls_state = 801
			#controls_state = 211
			
			#claimed states:
			controls_state = 106
			controls_state = 970
			controls_state = 803
			controls_state = 77
			controls_state = 971
			controls_state = 184
			controls_state = 731
		}
    } 
}

02_BUL_shopska_salata = { #Shopska Salata
	
	possible = {
		# classic triggers used in all vanilla achievements
        difficulty > 1
        has_start_date < 1936.01.02
        has_any_custom_difficulty_setting = no
		
        #game_rules_allow_achievements = yes
		custom_trigger_tooltip = {
			tooltip = mod_is_ironman		
			is_ironman = yes
		}
		original_tag = BUL
	}
	
	happened = {
		BUL = {
			all_neighbor_country = {
				is_puppet_of = BUL
			}
		}
	}
}

03_BUL_rematch = { #Rematch
	
	possible = {
		# classic triggers used in all vanilla achievements
        difficulty > 1
        has_start_date < 1936.01.02
        has_any_custom_difficulty_setting = no
		
        #game_rules_allow_achievements = yes
		custom_trigger_tooltip = {
			tooltip = mod_is_ironman		
			is_ironman = yes
		}
		original_tag = BUL
	}
	
	happened = {
		count_triggers = {
			amount = 2
			SER = { has_war_with = BUL }
			YUG = { has_war_with = BUL }
			ROM = { has_war_with = BUL }
			TUR = { has_war_with = BUL }
			GRE = { has_war_with = BUL }
		}
	}
}

04_BUL_the_centre_of_orthodox_faith = { #The Centre of Orthodox Faith
	
	possible = {
		# classic triggers used in all vanilla achievements
        difficulty > 1
        has_start_date < 1936.01.02
        has_any_custom_difficulty_setting = no
		
        #game_rules_allow_achievements = yes
		custom_trigger_tooltip = {
			tooltip = mod_is_ironman		
			is_ironman = yes
		}
		original_tag = BUL
	}
	
	happened = {
		has_completed_focus = BUL_restore_the_bulgarian_patriarchate
		OR = {
			BUL = { owns_state = 797 }
			any_other_country = {
				is_puppet_of  = BUL
				owns_state = 797
			}
		}
		OR = {
			BUL = { owns_state = 219 }
			any_other_country = {
				is_puppet_of  = BUL
				owns_state = 219
			}
		}
		48 = {
			is_owned_and_controlled_by = BUL
		}
	}
}

05_BUL_the_return_of_the_tsar = { #The Return of the Tsar
	
	possible = {
		# classic triggers used in all vanilla achievements
        difficulty > 1
        has_start_date < 1936.01.02
        has_any_custom_difficulty_setting = no
		
        #game_rules_allow_achievements = yes
		custom_trigger_tooltip = {
			tooltip = mod_is_ironman		
			is_ironman = yes
		}
		original_tag = BUL
	}
	
	happened = {
		BUL = {
			has_country_leader = {
				character = BUL_boris_iii
				ruling_only = yes
			}
		}
		ITA = { is_puppet_of = BUL owns_state = 735 }
	}
}

06_BUL_in_memory_of_general_vazov = { #In Memory of General Vazov
	
	possible = {
		# classic triggers used in all vanilla achievements
        difficulty > 1
        has_start_date < 1936.01.02
        has_any_custom_difficulty_setting = no
		
        #game_rules_allow_achievements = yes
		custom_trigger_tooltip = {
			tooltip = mod_is_ironman		
			is_ironman = yes
		}
		original_tag = BUL
	}
	
	happened = {
		BUL = {
			any_unit_leader = {
				skill > 5
				has_trait = infantry_leader
				average_stats > 5
			}
		}
	}
}

07_BUL_bulgaria_on_three_oceans = { #Bulgaria on Three Oceans
	
	possible = {
		# classic triggers used in all vanilla achievements
        difficulty > 1
        has_start_date < 1936.01.02
        has_any_custom_difficulty_setting = no
		
        #game_rules_allow_achievements = yes
		custom_trigger_tooltip = {
			tooltip = mod_is_ironman		
			is_ironman = yes
		}
		original_tag = BUL
	}
	
	happened = {
		custom_trigger_tooltip = {
			tooltip = BUL_has_abolished_monarchy_tt
			BUL = {
				BUL_has_abolished_monarchy = no
			}		
		}
		count_triggers = {
			amount = 3
			any_other_country = {
				is_puppet_of = BUL
				any_owned_state = {
					is_on_continent = asia
				}
			}
			any_other_country = {
				is_puppet_of = BUL
				any_owned_state = {
					is_on_continent = middle_east
				}
			}
			any_other_country = {
				is_puppet_of = BUL
				any_owned_state = {
					is_on_continent = africa
				}
			}
			any_other_country = {
				is_puppet_of = BUL
				any_owned_state = {
					is_on_continent = north_america
				}
			}
			any_other_country = {
				is_puppet_of = BUL
				any_owned_state = {
					is_on_continent = south_america
				}
			}
			any_other_country = {
				is_puppet_of = BUL
				any_owned_state = {
					is_on_continent = australia
				}
			}
		}
	}
}