Gives blind people a chat message when someone tries to handcuff them (#63192)

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
Tom
2021-12-02 13:47:07 -08:00
committed by GitHub
co-authored by Ghom
parent 24169f0d80
commit aea7875fd0
+4 -3
View File
@@ -59,9 +59,10 @@
if(!C.handcuffed)
if(C.canBeHandcuffed())
C.visible_message(span_danger("[user] is trying to put [src.name] on [C]!"), \
span_userdanger("[user] is trying to put [src.name] on you!"))
C.visible_message(span_danger("[user] is trying to put [name] on [C]!"), \
span_userdanger("[user] is trying to put [name] on you!"))
if(C.is_blind())
to_chat(C, span_userdanger("You feel someone grab your wrists, the cold metal of [name] starting to dig into your skin!"))
playsound(loc, cuffsound, 30, TRUE, -2)
log_combat(user, C, "attempted to handcuff")
if(do_mob(user, C, 30, timed_action_flags = IGNORE_SLOWDOWNS) && C.canBeHandcuffed())