Merge pull request #6506 from Citadel-Station-13/upstream-merge-37411

[MIRROR] Improves logging/messaging for singularities.
This commit is contained in:
deathride58
2018-04-27 09:30:18 +00:00
committed by GitHub
2 changed files with 8 additions and 4 deletions
@@ -128,11 +128,13 @@
/obj/singularity/proc/admin_investigate_setup()
var/turf/T = get_turf(src)
var/area/A = get_area(T)
last_warning = world.time
var/count = locate(/obj/machinery/field/containment) in urange(30, src, 1)
if(!count)
message_admins("A singulo has been created without containment fields active ([x],[y],[z])",1)
investigate_log("was created. [count?"":"<font color='red'>No containment fields were active</font>"]", INVESTIGATE_SINGULO)
message_admins("A singulo has been created without containment fields active at [A] [ADMIN_COORDJMP(T)].")
investigate_log("was created at [A] [COORD(T)]. [count?"":"<font color='red'>No containment fields were active</font>"]", INVESTIGATE_SINGULO)
/obj/singularity/proc/dissipate()
if(!dissipate)