[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>
This commit is contained in:
SkyratBot
2020-11-02 23:12:59 +01:00
committed by GitHub
parent 730067a7dc
commit 8dcec855fe
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -62,6 +62,7 @@
"<span class='userdanger'>[user] is trying to put [src.name] on you!</span>")
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, "<span class='warning'>You fail to handcuff [C]!</span>")
log_combat(user, C, "failed to handcuff")
else
to_chat(user, "<span class='warning'>[C] doesn't have two hands...</span>")