unique_id = custom_ukrainian_achievements

cua_own_western_ukraine = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		89 = { is_owned_and_controlled_by = UKR }
		91 = { is_owned_and_controlled_by = UKR }
		93 = { is_owned_and_controlled_by = UKR }
		987 = { is_owned_and_controlled_by = UKR }
	}
}

cua_own_transcarpathian_ukraine = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		73 = { is_owned_and_controlled_by = UKR }
	}
}

cua_own_bukovina_and_bujak = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		80 = { is_owned_and_controlled_by = UKR }
		766 = { is_owned_and_controlled_by = UKR }
	}
}

cua_own_crimea = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		137 = { is_owned_and_controlled_by = UKR }
		986 = { is_owned_and_controlled_by = UKR }
	}
}

cua_own_kuban = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		234 = { is_owned_and_controlled_by = UKR }
	}
}

cua_crimean_tatars_autonomy = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		CRI = { is_subject_of = UKR }
	}
}

cua_restore_kievan_rus = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		OR = {
			has_global_flag = form_kievan_rus_flag
			has_global_flag = form_east_slavic_empire_flag
		}
	}
}

cua_galician_offence = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		date < 1938.1.1
		UKR = { has_completed_focus = UKR_ultimatum_to_Poland }
		89 = { is_controlled_by = UKR }
		91 = { is_controlled_by = UKR }
		93 = { is_controlled_by = UKR }
		987 = { is_controlled_by = UKR }
	}
}

cua_no_partitions = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		OR = {
			tag = UKR
			tag = POL
		}
		OR = {
			UKR = {
				has_country_flag = UKR_united_with_poland
				is_puppet = no
			}
			POL = {
				has_country_flag = UKR_united_with_poland
				is_puppet = no
			}
		}
		GER = {
			OR = {
				exists = no
				is_subject = yes
				has_capitulated = yes
			}
		}
		SOV = {
			OR = {
				exists = no
				is_subject = yes
				has_capitulated = yes
			}
		}
	}
}

cua_radioactive_ash = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { has_country_flag = cua_radioactive_ash_flag }
	}
}

cua_istanbul_control = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		OR = {
			797 = {
				is_controlled_by = UKR
			}
			any_other_country = {
				is_subject_of = UKR
				controls_state = 797
			}
		}	
	}
}

cua_back_to_back = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
		is_historical_focus_on = yes
		game_rules_allow_achievements = yes
	}
	happened = {
		tag = UKR
		date > 1941.1.1
		UKR = {
			has_government = democratic
			is_in_faction_with = POL
			has_capitulated = no
		}
		POL = { has_capitulated = no }
	}
}

cua_makhnovists_in_washington = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
	}
	happened = {
		tag = DKR
		DKR = { has_government = neutrality }
		361 = {
			is_controlled_by = DKR
		}
	}
}

cua_steppen_storm = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
	}
	happened = {
		tag = DKR
		DKR = {
			has_government = neutrality
			has_country_flag = cua_steppen_storm_flag
		}
	}
}

cua_brain_drain = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
		has_dlc = "La Resistance"
	}
	happened = {
		tag = DKR
		DKR = {
			has_government = neutrality
			has_country_flag = cua_brain_drain_flag
		}
	}
}

cua_green_variant = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
	}
	happened = {
		tag = DKR
		has_government = neutrality
		DKR = {
			NOT = { has_completed_focus = DKR_legacy_of_makhno }
			DKR_otaman_zelenyi = { is_country_leader = yes }
		}
		OR = {
			219 = { is_controlled_by = DKR }
			64 = { is_controlled_by = DKR }
		}
	}
}

cua_sorokins_boys = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_government = communism
			UKR_nikita_khrushchev = { is_country_leader = yes } 
			has_character = SOV_iosif_stalin
		}
	}
}

cua_crimean_independent = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = CRI
		CRI = { 
			is_subject = no
		}
	}
}

cua_restore_crimean_khanate = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = CRI
		CRI = { 
			is_puppet = no
			has_country_flag = cua_restore_crimean_khanate_flag 
		}
	}
}
cua_highway_of_life = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = CRI
		CRI = { 
			has_country_flag = CRI_north_crimean_canal_is_built 
		}
	}
}
cua_drang_nach_westen = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
	}
	happened = {
		tag = UKR
		UKR = {
			has_government = fascism
			has_completed_focus = UKR_orientation_on_germany
			oun_strong_power_of_melnyk_trigger = yes
		}
		GER = {
			OR = {
				has_completed_focus = GER_oppose_hitler
				has_completed_focus = GER_oppose_hitler_ww
			}
			has_government = fascism
			OR = {
				is_puppet_of = UKR
				is_in_faction_with = UKR
			}	
		}	
	}
}
cua_the_lost_regiment = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		983 = { is_owned_and_controlled_by = UKR }
	}
}
cua_presov = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		984 = { is_owned_and_controlled_by = UKR }
	}
}
cua_transcurzonia = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		834 = { is_owned_and_controlled_by = UKR }
	}
}
cua_emperor_of_europe = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
	}
	happened = {
		tag = UKR
		UKR = { has_completed_focus = UKR_monarchy }
		2 = {
			is_controlled_by = UKR
		}	
	}
}
cua_reverse_register = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
	}
	happened = {
		tag = UKR
		POL = { is_subject_of = UKR }
		UKR = { 
			has_completed_focus = UKR_pressure_on_the_opposition 
			received_expeditionary_forces = {
				sender = POL
				value > 0
			}
		}
	}
}
cua_pavlo_dovgopadskyi = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
	}
	happened = {
		tag = UKR
		date > 1945.1.1
		UKR = { 
			has_completed_focus = UKR_constitution_reform 
			has_country_leader = { character = UKR_pavlo_skoropadskyi ruling_only = yes }
			is_puppet = no
			OR = {
				is_in_faction = no
				is_faction_leader = yes
			}
		}
	}
}
cua_panslavic_socialism = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
	}
	happened = {
		tag = UKR
		UKR = { 
			has_completed_focus = UKR_world_of_cyril_and_methodius 
			has_government = communism
			has_country_flag = cua_panslavic_socialism_flag
		}
	}
}
cua_peace_skyes = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_start_date < 1936.01.02
	}
	happened = {
		tag = UKR
		UKR = { 
			NOT = { has_country_flag = UKR_have_any_war_flag }
		}
		89 = { is_owned_and_controlled_by = UKR }
		91 = { is_owned_and_controlled_by = UKR }
		93 = { is_owned_and_controlled_by = UKR }
		987 = { is_owned_and_controlled_by = UKR }
		73 = { is_owned_and_controlled_by = UKR }
		766 = { is_owned_and_controlled_by = UKR }
		80 = { is_owned_and_controlled_by = UKR }
		137 = { is_owned_and_controlled_by = UKR }
		986 = { is_owned_and_controlled_by = UKR }
	}
}
cua_true_federation = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		SOV = {
			is_subject_of = UKR
		}
	}
}
cua_moscow_pride = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_country_flag = cua_moscow_pride_flag
		}
	}
}
cua_win_of_white = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = CRM
		CRM = { 
			NOT = { has_government = communism }
			is_puppet = no
			has_completed_focus = CRM_we_win
			NOT = { has_country_flag = cua_win_of_white_flag }
		}
	}
}
cua_red_fortress = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = CRM
		CRM = { 
			has_government = communism
			has_completed_focus = CRM_project_of_TaSSR
			has_country_flag = cua_red_fortress_flag
		}
		
	}
}
cua_marx_mazlakh = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_government = communism
			has_country_leader = { character = UKR_serhiy_mazlakh ruling_only = yes }
			is_power_balance_in_range = {
				id = UKR_power_balance
				range = UKR_party_total_control_range
			}
		}
		SOV = {
			OR = {
				exists = no
				is_subject_of = UKR	
			}	
		}
		
	}
}
cua_two_plus_two_is_three = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_government = communism
			has_completed_focus = UKR_state_plan
			has_country_flag = cua_two_plus_two_is_three_flag
		}
	}
}
cua_savior_for_party = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_government = communism
			has_completed_focus = UKR_savior_for_party
		}
	}
}
cua_help_did_not_come = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_government = communism
			has_completed_focus = UKR_war_answer_for_dksr
			has_country_flag = cua_help_did_not_come_flag
		}
	}
}
cua_red_champion = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_government = communism
			has_country_flag = cua_red_champion_flag
		}
	}
}
cua_two_countries_four_crowns = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_country_flag = UKR_dual_habsburg_monarchy
		}
		HUN = {
			has_completed_focus = HUN_invite_the_habsburg_prince
			is_in_faction_with = UKR
		}
		has_global_flag = form_austria_hungary_flag
	}
}
cua_yellow_volga = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		236 = { 
			is_owned_and_controlled_by = UKR
			infrastructure > 4
		}
		217 = { 
			is_owned_and_controlled_by = UKR
			infrastructure > 4
		}
		265 = { 
			is_owned_and_controlled_by = UKR
			infrastructure > 4
		}
		829 = { 
			is_owned_and_controlled_by = UKR
			infrastructure > 4
		}
		239 = { 
			is_owned_and_controlled_by = UKR
			infrastructure > 4
		}
		401 = { 
			is_owned_and_controlled_by = UKR
			infrastructure > 4
		}
	}
}
cua_northern_shield = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_completed_focus = UKR_berestia
		}
		94 = { is_owned_and_controlled_by = UKR }
		204 = { is_owned_and_controlled_by = UKR }
	}
}
cua_master_of_compromises = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_government = fascism
			has_completed_focus = UKR_regional_leader
			has_completed_focus = UKR_united_ukraine
			has_completed_focus = UKR_military_police
		}
	}
}
cua_ukrainian_rainbow = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			OR = {
				has_country_flag = UKR_crimson_ukraine_integrated
				has_subject = KUB
			}
			OR = {
				has_country_flag = UKR_green_ukraine_integrated
				has_subject = ZKL
			}
			OR = {
				has_country_flag = UKR_gray_ukraine_integrated
				has_subject = SKL
			}
			has_country_flag = UKR_yellow_ukraine_integrated
		}
	}
}
cua_king_of_the_hill = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_country_flag = UKR_bop_hetman_is_retired
		}
	}
}
cua_handyman = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
		has_dlc = "Arms Against Tyranny"
	}
	happened = {
		tag = UKR
		UKR = {
			mio:UKR_sgc_organization = { 
				has_mio_size > 4
			}
			mio:UKR_dob_organization = { 
				has_mio_size > 4
			}
			mio:UKR_zaz_organization = { 
				has_mio_size > 4
			}
		}
		
	}
}
cua_order_at_borders = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_completed_focus = UKR_order_on_russia
			num_subjects > 5
		}
		SOV = {
			OR = {
				exists = no
				is_puppet = yes
			}
		}
	}
}
cua_phoenix = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_completed_focus = UKR_liberation
			NOT = { has_government = communism }
		}
	}
}
cua_shadow_kurin = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
		has_dlc = "La Resistance"
	}
	happened = {
		tag = UKR
		UKR = {
			num_of_operatives > 4
		}
	}
}
cua_stronghold_of_feminism = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_completed_focus = UKR_womens_suffrage
			has_completed_focus = UKR_women_army_support
			UKR_olga_petliura = {
				is_hired_as_advisor = yes
			}
			UKR_milena_rudnytska = {
				is_hired_as_advisor = yes
			}
			UKR_kristina_sushko = {
				is_field_marshal = yes
				is_assigned = yes
			}
		}
	}
}
cua_democracy_at_arms = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_completed_focus = UKR_begin_stabilisation
			NOT = { has_completed_focus = UKR_appeal_to_conservatives }
			NOT = { has_completed_focus = UKR_appeal_to_nationalists }
		}
	}
}
cua_junta_and_comrades = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_completed_focus = UKR_pillar_of_europe
			UKR_military_junta = {
				is_country_leader = yes 
			}
		}
	}
}
cua_pagan_kings = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_completed_focus = UKR_native_faith
		}
		454 = { is_controlled_by = UKR }
	}
}
cua_big_entente = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_completed_focus = UKR_new_alliances
			is_major = yes
			is_in_faction_with = ENG
			is_in_faction_with = FRA
		}
	}
}
cua_under_one_flag = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_country_flag = UKR_form_great_ukraine_decision_flag
		}
	}
}
cua_blame_beavers = {
	possible = {
		difficulty > 1
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_country_flag = UKR_all_dams_are_built
		}
	}
}
cua_rurikids_can_into_space = {
	possible = {
		difficulty > 1
		has_start_date < 1936.01.02
		has_any_custom_difficulty_setting = no
	}
	happened = {
		tag = UKR
		UKR = { 
			has_country_flag = UKR_restore_of_rurikids
			is_special_project_completed = sp:sp_rocket_interceptor
		}
	}
}