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

This commit is contained in:
kevinz000
2019-01-20 20:35:14 -08:00
committed by Novacat
parent 2a28a46e1a
commit e105a047e1
2 changed files with 60 additions and 2 deletions

View File

@@ -242,6 +242,8 @@
/proc/isLeap(y)
return ((y) % 4 == 0 && ((y) % 100 != 0 || (y) % 400 == 0))
<<<<<<< HEAD
=======
//Takes a string and a datum
//The string is well, obviously the string being checked
@@ -273,3 +275,12 @@
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)
>>>>>>> bfaaffb... Adds a better debug controller verb that can target all controllers/processes/mc/failsafe/config/etc (#5852)