From b16d2148e4d62856fb2ee9d002335ac964063216 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Mon, 5 Feb 2018 01:31:16 -0600 Subject: [PATCH] [MIRROR] Steampunk Watches! (#5293) * Steampunk Watches! (#35187) * Adds steampunk watches * Adds steampunk watches to arcade machines * The steampunk watch can now play a noise! * Steampunk Watches! --- 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 674ecfd565..87abdd68da 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 f7e61c8fda..0c6e9f1d6b 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 */