mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-29 02:51:41 +00:00
These are the files with just tiny tweaks. Mostly modify an object's attackby so it does "return ..()" instead of "..()". If there are other things in this commit, the PR's description will explain them.
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
|
|
/obj/item/device/pipe_painter
|
|
name = "pipe painter"
|
|
icon = 'icons/obj/bureaucracy.dmi'
|
|
icon_state = "labeler1"
|
|
item_state = "flight"
|
|
flags = NOBLUDGEON
|
|
var/list/modes = list(
|
|
"grey" = rgb(255,255,255),
|
|
"red" = rgb(255,0,0),
|
|
"blue" = rgb(0,0,255),
|
|
"cyan" = rgb(0,256,249),
|
|
"green" = rgb(30,255,0),
|
|
"yellow" = rgb(255,198,0),
|
|
"purple" = rgb(130,43,255)
|
|
)
|
|
var/mode = "grey"
|
|
|
|
materials = list(MAT_METAL=5000, MAT_GLASS=2000)
|
|
|
|
/obj/item/device/pipe_painter/afterattack(atom/A, mob/user, proximity_flag)
|
|
//Make sure we only paint adjacent items
|
|
if(!proximity_flag)
|
|
return
|
|
|
|
if(!istype(A,/obj/machinery/atmospherics/pipe))
|
|
return
|
|
|
|
var/obj/machinery/atmospherics/pipe/P = A
|
|
P.color = modes[mode]
|
|
P.pipe_color = modes[mode]
|
|
P.stored.color = modes[mode]
|
|
user.visible_message("<span class='notice'>[user] paints \the [P] [mode].</span>","<span class='notice'>You paint \the [P] [mode].</span>")
|
|
P.update_node_icon() //updates the neighbors
|
|
|
|
/obj/item/device/pipe_painter/attack_self(mob/user)
|
|
mode = input("Which colour do you want to use?","Pipe painter") in modes
|
|
|
|
/obj/item/device/pipe_painter/examine()
|
|
..()
|
|
usr << "It is set to [mode]."
|