Merge pull request #1436 from yogstation13/upstream-merge-38697

[MIRROR] Improves machine overload logging
This commit is contained in:
Nich
2018-06-25 18:42:12 +02:00
committed by GitHub

View File

@@ -555,6 +555,9 @@ GLOBAL_LIST_INIT(blacklisted_malf_machines, typecacheof(list(
/datum/action/innate/ai/ranged/overload_machine/proc/detonate_machine(obj/machinery/M)
if(M && !QDELETED(M))
var/turf/T = get_turf(M)
message_admins("[ADMIN_LOOKUPFLW(usr)] overloaded [M.name] at [ADMIN_VERBOSEJMP(T)].")
log_game("[key_name(usr)] overloaded [M.name] at [AREACOORD(T)].")
explosion(get_turf(M), 0, 2, 3, 0)
if(M) //to check if the explosion killed it before we try to delete it
qdel(M)