/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/game/objects/items/devices/pipe_painter.dm
33 строки
1 KB
west3436
Removes metal autoignition (#33504)
13 окт 2022, 01:20
Не верифицирован
13 окт 2022, 01:20
529a5db
Код
Авторство
О чём код?
/obj/item/device/pipe_painter name = "pipe painter" icon = 'icons/obj/bureaucracy.dmi' icon_state = "labeler1" item_state = "flight" var/list/modes = list( "grey", "red", "blue", "cyan", "green", "yellow", "purple" ) var/mode = "grey" /obj/item/device/pipe_painter/afterattack(atom/A, mob/user as mob) if(!istype(A,/obj/machinery/atmospherics/pipe) || istype(A,/obj/machinery/atmospherics/unary/tank) || istype(A,/obj/machinery/atmospherics/unary/vent) || istype(A,/obj/machinery/atmospherics/pipe/simple/heat_exchanging) || istype(A,/obj/machinery/atmospherics/pipe/simple/insulated)) return var/obj/machinery/atmospherics/pipe/P = A if(P.can_be_coloured) P.color = 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() return to_chat(user, "<span class='danger'>\The [P] cannot be painted.</span>") /obj/item/device/pipe_painter/attack_self(mob/user as mob) mode = input("Which colour do you want to use?","Pipe painter") in modes /obj/item/device/pipe_painter/examine(mob/user) ..() to_chat(user, "<span class='info'>It is in [mode] mode.</span>")