From cbeeda55daaad09ec01790ffa7b5e1995c6ae71c Mon Sep 17 00:00:00 2001 From: Coffee Date: Wed, 27 Jul 2022 10:54:35 -0400 Subject: [PATCH] Adds logging for when you fail to tip something over (#68712) * adds failed tip logging --- 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 ec586dc3e28..9646e378504 100644 --- a/code/datums/components/tippable.dm +++ b/code/datums/components/tippable.dm @@ -119,6 +119,9 @@ ) if(!do_after(tipper, tip_time, target = tipped_mob)) + if(!isnull(tipped_mob.client)) + tipped_mob.log_message("was attempted to tip over by [key_name(tipper)]", LOG_VICTIM, log_globally = FALSE) + tipper.log_message("failed to tip over [key_name(tipped_mob)]", LOG_ATTACK) to_chat(tipper, span_danger("You fail to tip over [tipped_mob].")) return do_tip(tipped_mob, tipper)