nuclear_deterrence_category = {

  reveal_nuke = {
    icon = -
    priority = 10
    visible = {
      has_country_flag = has_nukes_but_hidden
    }
    available = {
        hidden_effect = {
      has_country_flag = has_nukes_but_hidden
        }
    }
    fire_only_once = yes
    days_remove = 0
    cost = 0
    complete_effect = {
        add_ideas = nuclear_state_idea
        set_country_flag = nukes_declared
        hidden_effect = {
      news_event = { hours = 6 id = news.1000 }
      }
    }
  }

##############################################

  nuclear_surrender_ultimatum = {
  icon = -
  target = yes
  allowed = { always = yes }
  available = {
    has_country_flag = nukes_declared
    FROM = {
    is_major = no
    has_stability < 0.9
    has_war_support < 0.9
    }
    num_of_nukes > 9
  }
  fire_only_once = no
  cost = 100
  target_trigger = {
  OR = {
  has_wargoal_against = FROM
  has_war_with = FROM
    }
  }
  complete_effect = {
    ROOT = {
    add_named_threat = {
      threat = 25
      name = nd_annex
      }
    }
    annex_country = {
    target = FROM
        }
      }
    }
  
##############################################

nuclear_blackmail_show = {
icon = -
visible = { NOT = { has_country_flag = show_blackmail_decisions }}
complete_effect = { set_country_flag = show_blackmail_decisions }
}

##############################################

nuclear_blackmail_hide = {
icon = -
visible = { has_country_flag = show_blackmail_decisions }
complete_effect = { clr_country_flag = show_blackmail_decisions }
}

##############################################

nuclear_blackmail = {
    icon = oppression
    state_target = yes
    on_map_mode = map_only
    target_trigger = {
        FROM = {
            is_capital = yes
            owner = {
                NOT = { tag = ROOT }
                NOT = { is_major = yes }
            }
        }
    }

    visible = { has_country_flag = show_blackmail_decisions }
    available = {
      has_country_flag = nukes_declared
      num_of_nukes > 2
      }
    cost = 50
    ai_will_do = { factor = 0 }

    complete_effect = {
        FROM = {
            owner = {
                add_opinion_modifier = {
                    target = ROOT
                    modifier = nuclear_pressure
                }
                give_military_access = ROOT
                give_market_access = ROOT
                ROOT = {
                add_named_threat = {
                    threat = 10
                    name = nd_blackmail
                }
                  }
              }
          }
      }
    }
}