From bc8c8cdcbdc68a6cf42fbb17006dd3fd9900c63c Mon Sep 17 00:00:00 2001 From: Sometinyprick Date: Thu, 12 Feb 2015 19:09:05 +0000 Subject: [PATCH] Adds a new toy to the arcade machine Adds a pig mask which changes your speech to pigspeak, can be turned on and off. --- code/game/machinery/computer/arcade.dm | 3 ++- code/modules/clothing/masks/miscellaneous.dm | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/computer/arcade.dm b/code/game/machinery/computer/arcade.dm index 7f1f9bdb3ed..bb0ce98a9b5 100644 --- a/code/game/machinery/computer/arcade.dm +++ b/code/game/machinery/computer/arcade.dm @@ -29,7 +29,8 @@ /obj/item/toy/minimeteor = 2, /obj/item/toy/carpplushie = 2, /obj/item/toy/foamblade = 2, - /obj/item/toy/redbutton = 2 + /obj/item/toy/redbutton = 2, + /obj/item/clothing/mask/pig = 2 ) /obj/machinery/computer/arcade/New() diff --git a/code/modules/clothing/masks/miscellaneous.dm b/code/modules/clothing/masks/miscellaneous.dm index 479b461b02a..e76a480d358 100644 --- a/code/modules/clothing/masks/miscellaneous.dm +++ b/code/modules/clothing/masks/miscellaneous.dm @@ -49,6 +49,17 @@ flags = BLOCKHAIR flags_inv = HIDEFACE w_class = 2 + action_button_name = "Toggle Voice Box" + var/voicechange = 0 + +/obj/item/clothing/mask/pig/attack_self(mob/user) + voicechange = !voicechange + user << "You turn the voice box [voicechange ? "on" : "off"]!" + +/obj/item/clothing/mask/pig/speechModification(message) + if(voicechange) + message = pick("Oink!","Squeeeeeeee!","Oink Oink!") + return message /obj/item/clothing/mask/horsehead name = "horse head mask"