mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user