﻿REPLACE:je_australia_aus = {
	icon = "gfx/interface/icons/event_icons/waving_flag.dds"

	group = je_group_historical_content

	is_shown_when_inactive = {
		OR = {
			country_has_primary_culture = cu:australian
			country_has_primary_culture = cu:polynesian
		}
		is_subject = yes
	}

	possible = {
		has_technology_researched = nationalism
	}

	scripted_button = je_australia_unite_aus_button

	complete = {
		calc_true_if = {
			amount >= 7
			owns_entire_state_region = STATE_NEW_SOUTH_WALES
			owns_entire_state_region = STATE_VICTORIA
			owns_entire_state_region = STATE_TASMANIA
			owns_entire_state_region = STATE_QUEENSLAND
			owns_entire_state_region = STATE_SOUTH_AUSTRALIA
			owns_entire_state_region = STATE_WESTERN_AUSTRALIA
			owns_entire_state_region = STATE_NORTHERN_TERRITORY
			owns_entire_state_region = STATE_NORTH_ISLAND
			owns_entire_state_region = STATE_SOUTH_ISLAND
		}
	}

	on_complete = {
		trigger_event = { id = can_aus.7 }
	}

	invalid = {
		is_subject = no
	}

	should_be_pinned_by_default = yes
}

REPLACE:je_australia_gbr = {
	icon = "gfx/interface/icons/event_icons/waving_flag.dds"

	group = je_group_historical_content

	is_shown_when_inactive = {
		any_subject_or_below = {
			OR = {
				country_has_primary_culture = cu:australian
				country_has_primary_culture = cu:polynesian
			}
			count >= 2
		}
		NOT = {
			OR = {
				country_has_primary_culture = cu:australian
				country_has_primary_culture = cu:polynesian
			}
		}
	}

	possible = {
		has_technology_researched = nationalism
	}

	scripted_button = je_australia_unite_aus_button

	complete = {
		any_subject_or_below = {
			calc_true_if = {
				amount >= 7
				owns_entire_state_region = STATE_NEW_SOUTH_WALES
				owns_entire_state_region = STATE_VICTORIA
				owns_entire_state_region = STATE_TASMANIA
				owns_entire_state_region = STATE_QUEENSLAND
				owns_entire_state_region = STATE_SOUTH_AUSTRALIA
				owns_entire_state_region = STATE_WESTERN_AUSTRALIA
				owns_entire_state_region = STATE_NORTHERN_TERRITORY
				owns_entire_state_region = STATE_NORTH_ISLAND
				owns_entire_state_region = STATE_SOUTH_ISLAND
			}
		}
	}

	on_complete = {
		trigger_event = { id = can_aus.8 }
	}

	weight = 100

	should_be_pinned_by_default = yes
}