﻿je_dual_monarchy = {
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	group = je_group_historical_content

	complete = {
		cultural_acceptance_base = { target = cu:hungarian value >= acceptance_status_5 }
	}

	on_complete = {
		trigger_event = {
			id = dual_monarchy.1
		}
	}

	fail = {
		cu:hungarian = {
			culture_secession_progress = {
				target = ROOT
				value > 0.5
			}
		}
	}

	on_fail = {
		set_variable = dual_monarchy_fail
		trigger_event = {
			id = dual_monarchy.1
		}
	}

	invalid = {
		OR = {
			custom_tooltip = {
				text = austria_hunary_invalid
				NOT = {
					any_scope_state = {
						state_region = {
							is_homeland = cu:hungarian
						}
					}
				}
			}
			NOT = {
				this = c:AUS
			}
		}
	}

	weight = 100
	should_be_pinned_by_default = yes
}