﻿ddm_open_manager_decision = {
    picture = { reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" }
    decision_group_type = ddm_domain_management_group
    desc = ddm_open_manager_decision_desc
    selection_tooltip = ddm_open_manager_decision_tooltip

    # The Office is a household/dynasty tool as well as a land-distribution tool. Keep it available to
    # the human player even while unlanded or below ducal rank; individual landed workflows retain their
    # own validity checks.
    is_shown = {
        is_alive = yes
        is_ai = no
        exists = dynasty
    }
    is_valid_showing_failures_only = {
        is_alive = yes
        is_ai = no
        exists = dynasty
    }
    effect = {
        hidden_effect = {
            ddm_initialize_settings_effect = yes
            ddm_prepare_dashboard_effect = yes
            set_variable = { name = ddm_ui_page value = flag:overview }
            set_variable = { name = ddm_ui_open value = yes }
        }
    }
    ai_check_interval = 0
}
