/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/game/objects/structures/clock.dm
31 строка
778 B
jknpj
Tool Sound/Speed (#25529)
08 фев 2020, 18:07
08 фев 2020, 18:07
f6aae72
Код
Авторство
О чём код?
/obj/structure/clock name = "grandfather clock" desc = "Hickory dickory dock, the mouse ran up the clock, the clock struck one, the mouse was gone, hickory dickory dock." icon = 'icons/obj/objects.dmi' icon_state = "clock" density = 1 anchored = 1 /obj/structure/clock/update_icon() if(anchored) icon_state = "clock" else icon_state = "clock-broken" /obj/structure/clock/examine(mob/user) ..() if(anchored) to_chat(user, "<span class='info'>Station Time: [worldtime2text()]") /obj/structure/clock/attackby(obj/item/weapon/W, mob/user) if(W.is_wrench(user)) if(do_after(user, src, 3 SECONDS)) W.playtoolsound(src, 50) anchored = !anchored update_icon() else return ..() /obj/structure/clock/unanchored anchored = 0 icon_state = "clock-broken"