@base_council_agenda_cost = 7000

agenda_dark_matter_breakthrough = {
	agenda_cost = @base_council_agenda_cost

	potential = {
		is_dark_consortium_empire = yes
	}

	allow = {
		num_researched_techs_of_tier = {
			tier = 5
			value > 0
		}
		custom_tooltip = {
			fail_text = "agenda_dark_matter_breakthrough_techs_obsolete"
			OR = {
				NOR = {
					has_tech_option = tech_dark_matter_deflector
					has_technology = tech_dark_matter_deflector
				}
				NOR = {
					has_tech_option = tech_dark_matter_power_core
					has_technology = tech_dark_matter_power_core
				}
				NOR = {
					has_tech_option = tech_dark_matter_propulsion
					has_technology = tech_dark_matter_propulsion
				}
			}
		}
	}

	init_effect = {
		hidden_effect = {
			if = {
				limit = {
					NOT = { has_country_flag = civic_dark_consortium_locked }
				}

				custom_tooltip = council_agenda_agenda_dark_matter_breakthrough_init_effect_desc
				set_country_flag = civic_dark_consortium_locked
			}
		}
	}

	effect = {
		custom_tooltip = council_agenda_agenda_dark_matter_breakthrough_effect_desc
		hidden_effect = {
			random_list = {
				1 = {
					modifier = {
						factor = 0
						OR = {
							has_tech_option = tech_dark_matter_deflector
							has_technology = tech_dark_matter_deflector
						}
					}
					add_research_option = tech_dark_matter_deflector
				}
				1 = {
					modifier = {
						factor = 0
						OR = {
							has_tech_option = tech_dark_matter_power_core
							has_technology = tech_dark_matter_power_core
						}
					}
					add_research_option = tech_dark_matter_power_core
				}
				1 = {
					modifier = {
						factor = 0
						OR = {
							has_tech_option = tech_dark_matter_propulsion
							has_technology = tech_dark_matter_propulsion
						}
					}
					add_research_option = tech_dark_matter_propulsion
				}
			}
		}
	}
}
