[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 <supernovaa41@gmx.com>
This commit is contained in:
SkyratBot
2022-01-21 01:57:10 +01:00
committed by GitHub
parent 065460c620
commit 0cc6e5367c
+3
View File
@@ -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]!"),