mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
* 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
31 lines
778 B
Plaintext
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" |