mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 16:09:15 +00:00
* Initial merge * Map files * dme mon ami * Cult span renames * updatepaths * AltClick renamed to click_alt * beefman hair color stuff * bye bye beefman viro * get_all_gear * Updated mentor refresh verb * bloodsucker rack atom_deconstruct * removed LateInitialize from nanites machines * brain trauama now calls parent on_lose * readme * greyscale fulp edit * arrival sound fulp edit * tgui routes fulp edit * build.js fulp edit * fulpui-patches * Missed a couple of shuttles * tgui files * Map updates * tgui tweaks and screenshots * fixed typo * halloween beacon texture * Vault piggy banks * beacon icon fr * Selene cargo chat console * selene labour shuttle * Photobooths! * Moved photobooth button on selene * Theia updates * Reset maps.txt * Order consoles * Ports TG's #82906, fixes plasma cutters * Theia vault piggy bank * CLICK_ACTION_SUCCESS for coffin alt clicking
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
/obj/item/paper/carbon
|
|
name = "sheet of carbon"
|
|
icon_state = "paper_stack"
|
|
inhand_icon_state = "paper"
|
|
show_written_words = FALSE
|
|
var/copied = FALSE
|
|
|
|
/obj/item/paper/carbon/update_icon_state()
|
|
if(copied)
|
|
icon_state = "paper"
|
|
else
|
|
icon_state = "paper_stack"
|
|
if(get_total_length())
|
|
icon_state = "[icon_state]_words"
|
|
return ..()
|
|
|
|
/obj/item/paper/carbon/examine()
|
|
. = ..()
|
|
if(copied)
|
|
return
|
|
. += span_notice("Right-click to tear off the carbon-copy (you must use both hands).")
|
|
|
|
/obj/item/paper/carbon/click_alt(mob/living/user)
|
|
if(!copied)
|
|
to_chat(user, span_notice("Take off the carbon copy first."))
|
|
return CLICK_ACTION_BLOCKING
|
|
return CLICK_ACTION_SUCCESS
|
|
|
|
/obj/item/paper/carbon/proc/removecopy(mob/living/user)
|
|
if(copied)
|
|
to_chat(user, span_notice("There are no more carbon copies attached to this paper!"))
|
|
return
|
|
|
|
var/obj/item/paper/carbon/copy = copy(/obj/item/paper/carbon_copy, loc.drop_location(), FALSE)
|
|
copy.name = "\improper Copy - [name]"
|
|
to_chat(user, span_notice("You tear off the carbon-copy!"))
|
|
copied = TRUE
|
|
update_icon_state()
|
|
user.put_in_hands(copy)
|
|
|
|
/obj/item/paper/carbon/attack_hand_secondary(mob/user, list/modifiers)
|
|
. = ..()
|
|
if(. == SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN)
|
|
return
|
|
|
|
if(loc == user && user.is_holding(src))
|
|
removecopy(user)
|
|
return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
|
|
|
|
/obj/item/paper/carbon_copy
|
|
icon_state = "cpaper"
|