mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-10 00:43:14 +00:00
* [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>
46 lines
1.2 KiB
Plaintext
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"
|