mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[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:
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user