mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Merge pull request #1436 from yogstation13/upstream-merge-38697
[MIRROR] Improves machine overload logging
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user