Method code for $root._display_descendants()

[Turn on line numbering]
arg space, checked, levels, maxlev;
var c, anc, list, id, perms;

id = space + this() + " " + $object_lib.see_perms(this());
for anc in (dict_keys(checked)) {
    if (.has_ancestor(anc))
        return [];

    // [id + "  (above)"];
}
if (.parents().length() > 1)
    id += " (MI)";
list = [id];
space += "  ";
levels++;

// check children
if (!maxlev || maxlev != levels) {
    for c in (.children()) {
        list += c._display_descendants(space, checked, levels, maxlev);
        checked = dict_add(checked, c, 1);
        pause();
    }
}
return list;

["// Created as a part of ColdCore, see: @help Credit"]

the Cold Dark