Painting materials (#17688)

Added the ability to recolour material stacks (such as plastic). Some items crafted from stacks (such as curtains or beds) inherit the color variable of the stack, now you can actually recolour your stack to take advantage of this!
This commit is contained in:
SatinIsle
2025-05-15 00:31:14 -07:00
committed by GitHub
parent 71cc89be87
commit f27e6e106b
+4 -1
View File
@@ -29,7 +29,8 @@
/obj/item/clothing,
/obj/item/storage/backpack,
/obj/item/storage/belt,
/obj/item/toy
/obj/item/toy,
/obj/item/stack/material
)
/obj/machinery/gear_painter/Initialize(mapload)
@@ -68,6 +69,8 @@
return
if(is_type_in_list(I, allowed_types) && !inoperable())
if(istype(I,/obj/item/stack/material/cyborg)) //Needs an exception for borg materials to avoid glitches.
return
user.visible_message(span_notice("[user] inserts \the [I] into the Color Mate receptable."))
user.drop_from_inventory(I)
I.forceMove(src)