Improvements to debug verbs del-all and spawn.

Long paths are shortened, del-all got filter like spawn had.
Long lists of paths are cached.
This commit is contained in:
Rastaf.zero
2013-03-17 17:49:35 +04:00
parent 805e6344ad
commit b8a0032f61
2 changed files with 80 additions and 13 deletions
+4 -6
View File
@@ -714,12 +714,9 @@ var/global/floorIsLava = 0
if(!check_rights(R_SPAWN)) return
var/list/types = typesof(/atom)
var/list/matches = new()
for(var/path in types)
if(findtext("[path]", object))
matches += path
var/list/matches = get_fancy_list_of_types()
if (!isnull(object) && object!="")
matches = filter_fancy_list(matches, object)
if(matches.len==0)
return
@@ -731,6 +728,7 @@ var/global/floorIsLava = 0
chosen = input("Select an atom type", "Spawn Atom", matches[1]) as null|anything in matches
if(!chosen)
return
chosen = matches[chosen]
new chosen(usr.loc)