Adds a better debug controller verb that can target all controllers/processes/mc/failsafe/config/etc (#5852)

This commit is contained in:
kevinz000
2019-01-20 20:35:14 -08:00
committed by Atermonera
parent c1a5c6c084
commit bfaaffb41b
2 changed files with 54 additions and 50 deletions
+8
View File
@@ -273,3 +273,11 @@
for(var/A in value)
if(var_source.vars.Find(A))
. += A
/proc/get_end_section_of_type(type)
var/strtype = "[type]"
var/delim_pos = findlasttext(strtype, "/")
if(delim_pos == 0)
return strtype
return copytext(strtype, delim_pos)