From cfabe7be97940d21ea45195c41ab2d3198f00e42 Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Mon, 23 Jul 2012 10:31:14 +0300 Subject: [PATCH] Re-added deletion logging --- code/game/atom_procs.dm | 5 +++++ code/modules/research/xenoarchaeology/artifacts.dm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/game/atom_procs.dm b/code/game/atom_procs.dm index 96e1da18da9..149058bf099 100644 --- a/code/game/atom_procs.dm +++ b/code/game/atom_procs.dm @@ -1,3 +1,8 @@ +/atom/Del() + var/log_file = file("[time2text(world.timeofday, "deletions/DD-MM-YYYY.txt")]") + log_file << "Atom [name] - [x],[y],[z]" + . = ..() + /atom/proc/MouseDrop_T() return diff --git a/code/modules/research/xenoarchaeology/artifacts.dm b/code/modules/research/xenoarchaeology/artifacts.dm index c262d3cd9d5..3eb716f900c 100644 --- a/code/modules/research/xenoarchaeology/artifacts.dm +++ b/code/modules/research/xenoarchaeology/artifacts.dm @@ -93,7 +93,7 @@ if (get_dist(user, src) > 1) user << "\red You can't reach [src] from here." return - if(istype(user:gloves,/obj/item/clothing/gloves)) + if(ishuman(user) && istype(user:gloves,/obj/item/clothing/gloves)) return ..() for(var/mob/O in viewers(src, null)) O.show_message(text("[] touches [].", user, src), 1)