mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 13:05:36 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user