From 8dcec855fe7b62df4cb76da3213f6f8faa5481dd Mon Sep 17 00:00:00 2001
From: SkyratBot <59378654+SkyratBot@users.noreply.github.com>
Date: Mon, 2 Nov 2020 23:12:59 +0100
Subject: [PATCH] [MIRROR] Adds handcuff attempt and GPS rename logging (#1552)
* Adds handcuff attempt and GPS rename logging (#54742)
* Adds handcuff attempt and GPS rename logging
Co-authored-by: 81Denton <32391752+81Denton@users.noreply.github.com>
---
code/datums/components/gps.dm | 1 +
code/game/objects/items/handcuffs.dm | 2 ++
2 files changed, 3 insertions(+)
diff --git a/code/datums/components/gps.dm b/code/datums/components/gps.dm
index a325eb7ea81..7408b78c721 100644
--- a/code/datums/components/gps.dm
+++ b/code/datums/components/gps.dm
@@ -146,6 +146,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
gpstag = a
. = TRUE
+ log_game("[key_name(usr)] renamed [parentasatom] to \"global positioning system ([gpstag])\".")
parentasatom.name = "global positioning system ([gpstag])"
if("power")
diff --git a/code/game/objects/items/handcuffs.dm b/code/game/objects/items/handcuffs.dm
index 4e39932b2cf..564c3bc2985 100644
--- a/code/game/objects/items/handcuffs.dm
+++ b/code/game/objects/items/handcuffs.dm
@@ -62,6 +62,7 @@
"[user] is trying to put [src.name] on you!")
playsound(loc, cuffsound, 30, TRUE, -2)
+ log_combat(user, C, "attempted to handcuff")
if(do_mob(user, C, 30) && C.canBeHandcuffed())
if(iscyborg(user))
apply_cuffs(C, user, TRUE)
@@ -74,6 +75,7 @@
log_combat(user, C, "handcuffed")
else
to_chat(user, "You fail to handcuff [C]!")
+ log_combat(user, C, "failed to handcuff")
else
to_chat(user, "[C] doesn't have two hands...")