Adds a new toy to the arcade machine

Adds a pig mask which changes your speech to pigspeak, can be turned on
and off.
This commit is contained in:
Sometinyprick
2015-02-12 19:09:05 +00:00
parent 8f1603b3e4
commit bc8c8cdcbd
2 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -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()
@@ -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 << "<span class='notice'>You turn the voice box [voicechange ? "on" : "off"]!</span>"
/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"