Adds canned laughter (#19405)

* adds canned laughter

* fixes issues
This commit is contained in:
PKPenguin321
2016-07-21 10:10:46 +02:00
committed by AnturK
parent 45faceb8da
commit 04dd716ef0
8 changed files with 29 additions and 1 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ Clown
/obj/item/weapon/stamp/clown = 1,
/obj/item/weapon/reagent_containers/spray/waterflower = 1,
/obj/item/weapon/reagent_containers/food/snacks/grown/banana = 1,
/obj/item/device/megaphone/clown = 1
/obj/item/device/megaphone/clown = 1,
/obj/item/weapon/reagent_containers/food/drinks/soda_cans/canned_laughter = 1
)
backpack = /obj/item/weapon/storage/backpack/clown
@@ -110,6 +110,27 @@
. = 1
..()
/datum/reagent/consumable/laughter
name = "Laughter"
id = "laughter"
description = "Some say that this is the best medicine, but recent studies have proven that to be untrue."
metabolization_rate = INFINITY
color = "#FF4DD2"
/datum/reagent/consumable/laughter/on_mob_life(mob/living/M)
M.emote("laugh")
var/laughnum = rand(1,2)
if(M.gender == MALE)
if(laughnum == 1)
playsound(get_turf(M), 'sound/voice/human/manlaugh1.ogg', 50, 1)
if(laughnum == 2)
playsound(get_turf(M), 'sound/voice/human/manlaugh2.ogg', 50, 1)
else if(M.gender == FEMALE)
playsound(get_turf(M), 'sound/voice/human/womanlaugh.ogg', 65, 1)
else//non-binary gender just sounds like a man
playsound(get_turf(M), 'sound/voice/human/manlaugh1.ogg', 50, 1)
..()
/datum/reagent/consumable/potato_juice
name = "Potato Juice"
id = "potato"