From 93ee3f3923c4dd218d0948b3764f9eb7aa65da66 Mon Sep 17 00:00:00 2001 From: Matt <116982774+Burzah@users.noreply.github.com> Date: Thu, 30 May 2024 12:14:40 +0000 Subject: [PATCH] Adds logging to buckling (#25631) --- code/game/objects/buckling.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index ae0c851d046..cd285647f84 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -142,10 +142,15 @@ M.visible_message("[M] buckles [M.p_themselves()] to [src].",\ "You buckle yourself to [src].",\ "You hear metal clanking.") + M.create_log(ATTACK_LOG, "Buckles [M.p_themselves()] to [src]", M) + log_attack(M, M, "Buckles themselves to [src]") else M.visible_message("[user] buckles [M] to [src]!",\ "[user] buckles you to [src]!",\ "You hear metal clanking.") + user.create_log(ATTACK_LOG, "[user] has buckled [M] to [src]", M) + M.create_log(DEFENSE_LOG, "[M] has been buckled by [user] to [src]", user) + log_attack(user, M, "Buckled to [src]") M.pulledby?.stop_pulling() /atom/movable/proc/user_unbuckle_mob(mob/living/buckled_mob, mob/user) @@ -155,10 +160,15 @@ M.visible_message("[user] unbuckles [M] from [src].",\ "[user] unbuckles you from [src].",\ "You hear metal clanking.") + user.create_log(ATTACK_LOG, "[user] has unbuckled [M] from [src]", M) + M.create_log(DEFENSE_LOG, "[M] has been unbuckled by [user] from [src]", user) + log_attack(user, M, "Unbuckled from [src]") else M.visible_message("[M] unbuckles [M.p_themselves()] from [src].",\ "You unbuckle yourself from [src].",\ "You hear metal clanking.") + M.create_log(ATTACK_LOG, "Unbuckles [M.p_themselves()] from [src]", M) + log_attack(M, M, "Unbuckles themselves from [src]") add_fingerprint(user) return M