mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-27 18:12:00 +00:00
About The Pull Request Completely removes item_color and the clusterfuck of bad programming it caused. In places where item_color was used for entirely unique purposes it was split off and renamed to a new var on that typepath only, or refactored so it wasn't needed In places where item_color was used as a dye color, it was converted to the new dye_color var In places where item_color was used as the worn overlay it was removed and instead now icon_state is always used as the clothing overlay. A new mob_overlay_icon var was added for manually setting where the mob overlay icon path is for specific items. Moved some mob overlay files relating to clothing to their own directory as well for organization purposes. Totally refactors washing machines, instead of the horrible abortion that was iterating through the typepath it now uses a registry of dye results. Some bonus functionality to come out of this: the washing machine now supports arbitrary dye colors. Why It's Good For The Game It's been 4 years since the "this should be deprecated soonish" comment was added, and this var is a shitpile of confusion if you just trace the usage of it. Changelog cl add: Washing machines now support arbitrary dye color add: Washing machines now dye nearly every item. refactor: lots of backend changes to clothing overlays, report any issues /cl
59 lines
2.2 KiB
Plaintext
59 lines
2.2 KiB
Plaintext
/obj/item/documents
|
|
name = "secret documents"
|
|
desc = "\"Top Secret\" documents."
|
|
icon = 'icons/obj/bureaucracy.dmi'
|
|
icon_state = "docs_generic"
|
|
item_state = "paper"
|
|
throwforce = 0
|
|
w_class = WEIGHT_CLASS_TINY
|
|
throw_range = 1
|
|
throw_speed = 1
|
|
layer = MOB_LAYER
|
|
pressure_resistance = 2
|
|
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF
|
|
|
|
/obj/item/documents/nanotrasen
|
|
desc = "\"Top Secret\" Nanotrasen documents, filled with complex diagrams and lists of names, dates and coordinates."
|
|
icon_state = "docs_verified"
|
|
|
|
/obj/item/documents/syndicate
|
|
desc = "\"Top Secret\" documents detailing sensitive Syndicate operational intelligence."
|
|
|
|
/obj/item/documents/syndicate/red
|
|
name = "red secret documents"
|
|
desc = "\"Top Secret\" documents detailing sensitive Syndicate operational intelligence. These documents are verified with a red wax seal."
|
|
icon_state = "docs_red"
|
|
|
|
/obj/item/documents/syndicate/blue
|
|
name = "blue secret documents"
|
|
desc = "\"Top Secret\" documents detailing sensitive Syndicate operational intelligence. These documents are verified with a blue wax seal."
|
|
icon_state = "docs_blue"
|
|
|
|
/obj/item/documents/syndicate/mining
|
|
desc = "\"Top Secret\" documents detailing Syndicate plasma mining operations."
|
|
|
|
/obj/item/documents/photocopy
|
|
desc = "A copy of some top-secret documents. Nobody will notice they aren't the originals... right?"
|
|
var/forgedseal = 0
|
|
var/copy_type = null
|
|
|
|
/obj/item/documents/photocopy/New(loc, obj/item/documents/copy=null)
|
|
..()
|
|
if(copy)
|
|
copy_type = copy.type
|
|
if(istype(copy, /obj/item/documents/photocopy)) // Copy Of A Copy Of A Copy
|
|
var/obj/item/documents/photocopy/C = copy
|
|
copy_type = C.copy_type
|
|
|
|
/obj/item/documents/photocopy/attackby(obj/item/O, mob/user, params)
|
|
if(istype(O, /obj/item/toy/crayon/red) || istype(O, /obj/item/toy/crayon/blue))
|
|
if (forgedseal)
|
|
to_chat(user, "<span class='warning'>You have already forged a seal on [src]!</span>")
|
|
else
|
|
var/obj/item/toy/crayon/C = O
|
|
name = "[C.crayon_color] secret documents"
|
|
icon_state = "docs_[C.crayon_color]"
|
|
forgedseal = C.crayon_color
|
|
to_chat(user, "<span class='notice'>You forge the official seal with a [C.crayon_color] crayon. No one will notice... right?</span>")
|
|
update_icon()
|