mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Fixes a few RPD painting bugs
Changes RPD colors to be consistent with pipe painter & default pipes. Makes the RPD properly update its neighbors on painting. Offloads the neighbor updating logic from pipe_painter to a pipe proc. Fixes #6783
This commit is contained in:
@@ -29,37 +29,9 @@
|
||||
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_icon()
|
||||
|
||||
if(istype(A,/obj/machinery/atmospherics/pipe/simple))
|
||||
var/obj/machinery/atmospherics/pipe/simple/pipe = A
|
||||
|
||||
if(pipe.node1)
|
||||
pipe.node1.update_icon()
|
||||
if(pipe.node2)
|
||||
pipe.node2.update_icon()
|
||||
else if(istype(A,/obj/machinery/atmospherics/pipe/manifold))
|
||||
var/obj/machinery/atmospherics/pipe/manifold/pipe = A
|
||||
|
||||
if(pipe.node1)
|
||||
pipe.node1.update_icon()
|
||||
if(pipe.node2)
|
||||
pipe.node2.update_icon()
|
||||
if(pipe.node3)
|
||||
pipe.node3.update_icon()
|
||||
else if(istype(A,/obj/machinery/atmospherics/pipe/manifold4w))
|
||||
var/obj/machinery/atmospherics/pipe/manifold4w/pipe = A
|
||||
|
||||
if(pipe.node1)
|
||||
pipe.node1.update_icon()
|
||||
if(pipe.node2)
|
||||
pipe.node2.update_icon()
|
||||
if(pipe.node3)
|
||||
pipe.node3.update_icon()
|
||||
if(pipe.node4)
|
||||
pipe.node4.update_icon()
|
||||
|
||||
P.update_node_icon() //updates the neighbors
|
||||
|
||||
/obj/item/device/pipe_painter/attack_self(mob/user as mob)
|
||||
mode = input("Which colour do you want to use?","Pipe painter") in modes
|
||||
|
||||
Reference in New Issue
Block a user