mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Adding the ability to paint on floors with brushes, and also the ability to use multiple crayons from a box while floorpainting (#35367)
* Update painting_brush.dm * Update custom_painting_datum.dm * Update code/modules/html_interface/paintTool/custom_painting_datum.dm Sounds good Co-authored-by: jellyveggie2 <78439377+jellyveggie2@users.noreply.github.com> --------- Co-authored-by: jellyveggie2 <78439377+jellyveggie2@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,15 @@
|
||||
|
||||
// Painting with a crayon
|
||||
if (istype(held_item, /obj/item/toy/crayon))
|
||||
for (var/obj/item/weapon/storage/fancy/crayons/box in user.held_items)
|
||||
for (var/crayon in box)
|
||||
var/obj/item/toy/crayon/c = crayon
|
||||
max_strength = PENCIL_STRENGTH_MAX
|
||||
min_strength = PENCIL_STRENGTH_MIN
|
||||
palette += c.mainColour
|
||||
palette += c.shadeColour
|
||||
base_color = c.mainColour
|
||||
|
||||
var/obj/item/toy/crayon/c = held_item
|
||||
max_strength = PENCIL_STRENGTH_MAX
|
||||
min_strength = PENCIL_STRENGTH_MIN
|
||||
|
||||
Reference in New Issue
Block a user