mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Red, green, blue and yellow paint now work on pipes.
This commit is contained in:
@@ -1196,6 +1196,29 @@ obj/machinery/atmospherics/pipe/attackby(var/obj/item/weapon/W as obj, var/mob/u
|
|||||||
return ..()
|
return ..()
|
||||||
if (istype(src, /obj/machinery/atmospherics/pipe/vent))
|
if (istype(src, /obj/machinery/atmospherics/pipe/vent))
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
|
// ===== Handle paints =====
|
||||||
|
if(istype(W, /obj/item/weapon/reagent_containers/glass/paint/red))
|
||||||
|
src.color = "red"
|
||||||
|
user << "\red You paint the pipe red."
|
||||||
|
update_icon()
|
||||||
|
return 1
|
||||||
|
if(istype(W, /obj/item/weapon/reagent_containers/glass/paint/blue))
|
||||||
|
src.color = "blue"
|
||||||
|
user << "\red You paint the pipe blue."
|
||||||
|
update_icon()
|
||||||
|
return 1
|
||||||
|
if(istype(W, /obj/item/weapon/reagent_containers/glass/paint/green))
|
||||||
|
src.color = "green"
|
||||||
|
user << "\red You paint the pipe green."
|
||||||
|
update_icon()
|
||||||
|
return 1
|
||||||
|
if(istype(W, /obj/item/weapon/reagent_containers/glass/paint/yellow))
|
||||||
|
src.color = "yellow"
|
||||||
|
user << "\red You paint the pipe yellow."
|
||||||
|
update_icon()
|
||||||
|
return 1
|
||||||
|
|
||||||
if (!istype(W, /obj/item/weapon/wrench))
|
if (!istype(W, /obj/item/weapon/wrench))
|
||||||
return ..()
|
return ..()
|
||||||
var/turf/T = src.loc
|
var/turf/T = src.loc
|
||||||
|
|||||||
Reference in New Issue
Block a user