From baa6bba7e0cb03e2ef997849c5be86aac2f0a1ae Mon Sep 17 00:00:00 2001
From: ShiggyDiggyDo <33476624+ShiggyDiggyDo@users.noreply.github.com>
Date: Sun, 4 Feb 2018 09:07:10 +0100
Subject: [PATCH] Steampunk Watches! (#35187)
* Adds steampunk watches
* Adds steampunk watches to arcade machines
* The steampunk watch can now play a noise!
---
code/game/machinery/computer/arcade.dm | 1 +
code/game/objects/items/toys.dm | 26 ++++++++++++++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/code/game/machinery/computer/arcade.dm b/code/game/machinery/computer/arcade.dm
index 674ecfd5651..87abdd68daf 100644
--- a/code/game/machinery/computer/arcade.dm
+++ b/code/game/machinery/computer/arcade.dm
@@ -45,6 +45,7 @@
/obj/item/grenade/chem_grenade/glitter/white = 1,
/obj/item/toy/eightball = 2,
/obj/item/toy/windupToolbox = 2,
+ /obj/item/toy/clockwork_watch = 2,
/obj/item/extendohand/acme = 1)
light_color = LIGHT_COLOR_GREEN
diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm
index f7e61c8fda7..0c6e9f1d6bd 100644
--- a/code/game/objects/items/toys.dm
+++ b/code/game/objects/items/toys.dm
@@ -20,6 +20,7 @@
* Toy xeno
* Kitty toys!
* Snowballs
+ * Clockwork Watches
*/
@@ -1049,6 +1050,31 @@
if(user.dropItemToGround(src))
throw_at(target, throw_range, throw_speed)
+/*
+ * Clockwork Watch
+ */
+
+/obj/item/toy/clockwork_watch
+ name = "steampunk watch"
+ desc = "A stylish steampunk watch made out of thousands of tiny cogwheels."
+ icon = 'icons/obj/clockwork_objects.dmi'
+ icon_state = "dread_ipad"
+ slot_flags = SLOT_BELT
+ w_class = WEIGHT_CLASS_SMALL
+ var/cooldown = 0
+
+/obj/item/toy/clockwork_watch/attack_self(mob/user)
+ if (cooldown < world.time)
+ cooldown = world.time + 1800 //3 minutes
+ user.visible_message("[user] rotates a cogwheel on [src].", "You rotate a cogwheel on [src], it plays a loud noise!", "You hear cogwheels turning.")
+ playsound(src, 'sound/magic/clockwork/ark_activation.ogg', 50, 0)
+ else
+ to_chat(user, "The cogwheels are already turning!")
+
+/obj/item/toy/clockwork_watch/examine(mob/user)
+ ..()
+ to_chat(user, "Station Time: [worldtime2text()]")
+
/*
* Xenomorph action figure
*/