Files
Bubberstation/code/modules/paperwork/carbonpaper.dm
SkyratBot b1bd40e760 [MIRROR] [MDB Ignore][Bounty][Complete Refactor] Papercode Redux: Too Many Damn Files <Map Conflict Edition> [MDB IGNORE] (#15362)
* [MDB Ignore][Bounty][Complete Refactor] Papercode Redux: Too Many Damn Files <Map Conflict Edition>

* Fixes merge conflicts and compilation errors, alongside fixing the joker card to make it fully functional again

* Fixed a bunch of info variables in map files

* Alright this is why I wanted this merged yesterday

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
2022-08-04 15:50:15 +01:00

46 lines
1.2 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/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"