namespace = xeno_deficit

# 3_61 D2 — monthly guarded starters (custom resources get no engine-side deficit starter).
country_event = {
	id = xeno_deficit.10
	hide_window = yes
	is_triggered_only = yes
	trigger = {
		xeno_is_xenomorph_hive_country = yes
		has_actual_deficit = { RESOURCE = xenomorph_eggs }
		NOT = { has_country_flag = xeno_sit_eggs_active }
	}
	immediate = {
		start_situation = { type = situation_xenomorph_empty_clutch_reserves target = this }
	}
}

country_event = {
	id = xeno_deficit.11
	hide_window = yes
	is_triggered_only = yes
	trigger = {
		xeno_is_xenomorph_hive_country = yes
		has_actual_deficit = { RESOURCE = xenomorph_offspring }
		NOT = { has_country_flag = xeno_sit_offspring_active }
	}
	immediate = {
		start_situation = { type = situation_xenomorph_immature_brood_collapse target = this }
	}
}

# Default (bankruptcy) events — fired by on_progress_complete.
country_event = {
	id = xeno_deficit.1
	title = xeno_deficit.1.name
	desc = xeno_deficit.1.desc
	picture = GFX_evt_deficit
	force_open = yes
	is_triggered_only = yes
	immediate = {
		country_defaulted_effect = yes
		add_resource = { xenomorph_eggs = @xeno_bailout_base }
	}
	option = { name = xeno_deficit.1.a }
}

country_event = {
	id = xeno_deficit.2
	title = xeno_deficit.2.name
	desc = xeno_deficit.2.desc
	picture = GFX_evt_deficit
	force_open = yes
	is_triggered_only = yes
	immediate = {
		country_defaulted_effect = yes
		add_resource = { xenomorph_offspring = @xeno_bailout_base }
	}
	option = { name = xeno_deficit.2.a }
}
