mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Adds a better debug controller verb that can target all controllers/processes/mc/failsafe/config/etc
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user