mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 03:26:31 +01:00
[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:
@@ -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]!"),
|
||||
|
||||
Reference in New Issue
Block a user