Replaces AI-controlled Maint Drones with AI-controlled Borg Shells

This commit is contained in:
Neerti
2019-04-06 05:06:14 -04:00
committed by VirgoBot
parent 974c6d8433
commit 1d59d8683c
29 changed files with 12407 additions and 275 deletions

View File

@@ -1549,4 +1549,29 @@ var/mob/dview/dview_mob = new
/proc/IsValidSrc(datum/D)
if(istype(D))
return !QDELETED(D)
return FALSE
<<<<<<< HEAD
return FALSE
=======
return FALSE
//gives us the stack trace from CRASH() without ending the current proc.
/proc/stack_trace(msg)
CRASH(msg)
/datum/proc/stack_trace(msg)
CRASH(msg)
// \ref behaviour got changed in 512 so this is necesary to replicate old behaviour.
// If it ever becomes necesary to get a more performant REF(), this lies here in wait
// #define REF(thing) (thing && istype(thing, /datum) && (thing:datum_flags & DF_USE_TAG) && thing:tag ? "[thing:tag]" : "\ref[thing]")
/proc/REF(input)
if(istype(input, /datum))
var/datum/thing = input
if(thing.datum_flags & DF_USE_TAG)
if(!thing.tag)
thing.datum_flags &= ~DF_USE_TAG
stack_trace("A ref was requested of an object with DF_USE_TAG set but no tag: [thing]")
else
return "\[[url_encode(thing.tag)]\]"
return "\ref[input]"
>>>>>>> 6a2cd30... Replaces AI-controlled Maint Drones with AI-controlled Borg Shells (#6025)