From 0cc6e5367c0795cc9dba0aec9d413fb04cc970cb Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 21 Jan 2022 01:57:10 +0100 Subject: [PATCH] [MIRROR] Adds logging to the tippable component [MDB IGNORE] (#10855) * Adds logging to the tippable component (#64210) * Adds logging to the tippable component Headmin wanted it. Logs the tippable component if the tippable mob has an active client (we don't want to log medbot flipping). * better logging * Adds logging to the tippable component Co-authored-by: Seth Scherer --- code/datums/components/tippable.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/datums/components/tippable.dm b/code/datums/components/tippable.dm index f8334970a45..cda77f5365c 100644 --- a/code/datums/components/tippable.dm +++ b/code/datums/components/tippable.dm @@ -116,6 +116,9 @@ CRASH("Tippable component: do_tip() called with QDELETED tipped_mob!") to_chat(tipper, span_warning("You tip over [tipped_mob].")) + if (!isnull(tipped_mob.client)) + tipped_mob.log_message("[key_name(tipped_mob)] has been tipped over by [key_name(tipper)].", LOG_ATTACK) + tipper.log_message("[key_name(tipper)] has tipped over [key_name(tipped_mob)].", LOG_ATTACK) tipped_mob.visible_message( span_warning("[tipper] tips over [tipped_mob]."), span_userdanger("You are tipped over by [tipper]!"),