From 9beea968f24860b91c3d2a9dc70628691e491294 Mon Sep 17 00:00:00 2001 From: Lzimann Date: Tue, 12 Jul 2016 10:16:05 -0300 Subject: [PATCH] Medals are no longer instant to pin --- code/modules/clothing/under/ties.dm | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/code/modules/clothing/under/ties.dm b/code/modules/clothing/under/ties.dm index 48f6eb4c3fa..4a6d1145c61 100644 --- a/code/modules/clothing/under/ties.dm +++ b/code/modules/clothing/under/ties.dm @@ -100,12 +100,19 @@ if(M.w_uniform) var/obj/item/clothing/under/U = M.w_uniform - if(U.attachTie(src, user, 0)) //Attach it, do not notify the user of the attachment - if(user == M) - user << "You attach [src] to [U]." - else - user.visible_message("[user] pins \the [src] on [M]'s chest.", \ - "You pin \the [src] on [M]'s chest.") + var/delay = 20 + if(user == M) + delay = 0 + else + user.visible_message("[user] is trying to pin [src] on [M]'s chest." \ + "You try to pin [src] on [M]'s chest.") + if(do_after(user, delay, target = M)) + if(U.attachTie(src, user, 0)) //Attach it, do not notify the user of the attachment + if(user == M) + user << "You attach [src] to [U]." + else + user.visible_message("[user] pins \the [src] on [M]'s chest.", \ + "You pin \the [src] on [M]'s chest.") else user << "Medals can only be pinned on jumpsuits!" else ..()