﻿# Auto-generated by DI Updater Tool. Do not edit.
DI_court_position_available = {
    scope = character
    is_valid = {
        switch = {
            trigger = scope:court_position_type
            court_position_type:archer_captain_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:armorer_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:b_deep_lake_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_eastwatch_by_the_sea_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_greenguard_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_greyguard_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_hoarfrost_hill_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_icemark_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_long_barrow_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_oakenshield_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_queensgate_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_rimegate_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_sable_hall_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_sentinel_stand_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_stonedoor_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_the_nightfort_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_the_shadow_tower_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_the_torches_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_westwatch_by_the_bridge_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:b_woodswatch_by_the_pool_keeper = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:bloodrider_court_position = {
                has_dlc_feature = royal_court
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:bodyguard_court_position = {
                has_dlc_feature = royal_court
            }
            court_position_type:bookmaker_court_position = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:camelry_captain_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:camp_cook_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:camp_priest_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:champion_court_position = {
                has_dlc_feature = royal_court
            }
            court_position_type:charioteer_court_position = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:chief_engineer_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:chief_forager_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:chronicler_court_position = {
                has_dlc_feature = legends
            }
            court_position_type:court_artificer_court_position = {
                has_dlc_feature = royal_court
            }
            court_position_type:court_brahmin_court_position = {
                has_dlc_feature = all_under_heaven
            }
            court_position_type:court_guru_court_position = {
                has_dlc_feature = all_under_heaven
            }
            court_position_type:court_poet_court_position = {
                OR = {
                    has_dlc_feature = all_under_heaven
                    has_dlc_feature = royal_court
                }
            }
            court_position_type:court_scholar_court_position = {
                has_dlc_feature = legacy_of_persia
            }
            court_position_type:court_tutor_court_position = {
                has_dlc_feature = royal_court
            }
            court_position_type:elephantry_captain_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:executioner_court_position = {
                has_dlc_feature = royal_court
            }
            court_position_type:food_taster_court_position = {
                has_dlc_feature = royal_court
            }
            court_position_type:gaoler_court_position = {
                has_dlc_feature = royal_court
            }
            court_position_type:head_groom_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:head_porter_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:heavy_cavalry_captain_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:heavy_infantry_captain_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:horse_archer_captain_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:household_guard_court_position = {
                has_dlc_feature = royal_court
            }
            court_position_type:huntperson_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:kennelperson_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:khlon_glan_court_position = {
                has_dlc_feature = all_under_heaven
            }
            court_position_type:lady_in_waiting_court_position = {
                has_dlc_feature = royal_court
                any_owned_story = {
                    story_type = DI_misc_variables_story
                    has_variable = DI_char_spawner_female
                }
            }
            court_position_type:laureate_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:light_cavalry_captain_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:light_infantry_captain_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:master_bard_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:master_of_arms_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:master_of_spoils_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:master_thief_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:nw_septon = {
                NOT = {
                    any_owned_story = {
                        story_type = DI_misc_variables_story
                        has_variable = DI_char_spawner_female
                    }
                }
            }
            court_position_type:person_haggler_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:pike_captain_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:quartermaster_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:royal_architect_court_position = {
                has_dlc_feature = royal_court
            }
            court_position_type:second_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:septa_court_position = {
                any_owned_story = {
                    story_type = DI_misc_variables_story
                    has_variable = DI_char_spawner_female
                }
            }
            court_position_type:stooge_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            court_position_type:wet_nurse_court_position = {
                has_dlc_feature = wards_and_wardens
                any_owned_story = {
                    story_type = DI_misc_variables_story
                    has_variable = DI_char_spawner_female
                }
            }
            court_position_type:witness_camp_officer = {
                has_dlc_feature = roads_to_power
            }
            fallback = { always = yes }
        }
        DI_court_position_availability_override = yes
    }
}

DI_court_position_category_county_sgui = {
    scope = character
    saved_scopes = { court_position_type }
    is_valid = { DI_court_position_category_county = yes }
}

DI_court_position_category_duchy_sgui = {
    scope = character
    saved_scopes = { court_position_type }
    is_valid = { DI_court_position_category_duchy = yes }
}

DI_court_position_category_kingdom_sgui = {
    scope = character
    saved_scopes = { court_position_type }
    is_valid = { DI_court_position_category_kingdom = yes }
}

DI_court_position_category_empire_sgui = {
    scope = character
    saved_scopes = { court_position_type }
    is_valid = { DI_court_position_category_empire = yes }
}

DI_court_position_category_landless_adventurer_sgui = {
    scope = character
    saved_scopes = { court_position_type }
    is_valid = { DI_court_position_category_landless_adventurer = yes }
}

DI_court_position_category_other_sgui = {
    scope = character
    saved_scopes = { court_position_type }
    is_valid = { DI_court_position_category_other = yes }
}
