From d7ba08a28c300ff25fc6015ae2e9bea102bbd798 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sun, 25 May 2014 04:43:21 -0400 Subject: [PATCH] Rawwr --- code/__HELPERS/mobs.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index bfbaf29c108..00b7b7603fc 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -109,12 +109,13 @@ Proc for attack log creation, because really why not */ proc/add_logs(mob/target, mob/user, what_done, var/object=null, var/addition=null) + var/list/ignore=list("shaked","CPRed","grabbed","punched") if(ismob(user)) user.attack_log += text("\[[time_stamp()]\] Has [what_done] [target.name][ismob(target) ? "([target.ckey])" : ""][object ? " with [object]" : " "][addition]") if(ismob(target)) target.attack_log += text("\[[time_stamp()]\] Has been [what_done] by [user.name][ismob(user) ? "([user.ckey])" : ""][object ? " with [object]" : " "][addition]") log_attack("[user.name][ismob(user) ? "([user.ckey])" : ""] [what_done] [target.name][ismob(target) ? "([target.ckey])" : ""][object ? " with [object]" : " "][addition]") if(target.client) - if(what_done != ("shaked" && "CPRed" && "grabbed")) - message_admins("[user.name][ismob(user) ? "([user.ckey])" : ""] [what_done] [target.name][ismob(target) ? "([target.ckey])" : ""][object ? " with [object]" : " "][addition](JMP)") + if(what_done in ignore) return + message_admins("[user.name][ismob(user) ? "([user.ckey])" : ""] [what_done] [target.name][ismob(target) ? "([target.ckey])" : ""][object ? " with [object]" : " "][addition](JMP)")