[MIRROR] Right-click to remove carbon-copies (#3966)

* Right-click to remove carbon-copies (#57402)

* Right-click to remove carbon-copies

Co-authored-by: mozi_h <die-123-321@web.de>
This commit is contained in:
SkyratBot
2021-03-07 01:58:35 +00:00
committed by GitHub
co-authored by mozi_h
parent 61be6501a4
commit de299e82b3
+8 -2
View File
@@ -17,6 +17,12 @@
icon_state = "[icon_state]_words"
return ..()
/obj/item/paper/carbon/examine()
. = ..()
if(copied || iscopy)
return
. += "<span class='notice'>Right-click to tear off the carbon-copy (you must use both hands).</span>"
/obj/item/paper/carbon/proc/removecopy(mob/living/user)
if(copied || iscopy)
to_chat(user, "<span class='notice'>There are no more carbon copies attached to this paper!</span>")
@@ -38,8 +44,8 @@
C.update_icon_state()
user.put_in_hands(Copy)
/obj/item/paper/carbon/attack_hand(mob/living/user, list/modifiers)
/obj/item/paper/carbon/attack_hand_secondary(mob/user, list/modifiers)
if(loc == user && user.is_holding(src))
removecopy(user)
return
return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
return ..()