Files
vgstation13/code/game/objects/structures/clock.dm
jknpj f6aae72618 Tool Sound/Speed (#25529)
* Initial work on tool sounds

* Crowbars

* playtoolsound()

* aaaaaaaaaaaaaaaaaaaa

* HERE WE GO AGAIN

* Wrench

* Screwdriver.ogg REDUX, Cuffs

* drilling tools toolspeed is now a multiplier too

* Wirecutter
2020-02-08 09:07:00 -06:00

31 lines
778 B
Plaintext

/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"