From 24c93d9df66ad9d9be48c612903d144582dabce9 Mon Sep 17 00:00:00 2001 From: Ghommie <42542238+Ghommie@users.noreply.github.com> Date: Sat, 23 Nov 2019 01:46:59 +0100 Subject: [PATCH] [S] bikehorn fix 2: sound() datum doesn't accept double quotes, my bad. --- code/game/objects/items/clown_items.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/clown_items.dm b/code/game/objects/items/clown_items.dm index adc20039ee..e119473f1c 100644 --- a/code/game/objects/items/clown_items.dm +++ b/code/game/objects/items/clown_items.dm @@ -116,7 +116,7 @@ /obj/item/bikehorn/ComponentInitialize() . = ..() - AddComponent(/datum/component/squeak, list("[honksound]" = 1), 50) //Because list() is using named argument syntax here, we need to wrap the honksound between double quotes to pass it down correctly. + AddComponent(/datum/component/squeak, list(honksound), 50) /obj/item/bikehorn/attack(mob/living/carbon/M, mob/living/carbon/user) SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, moodlet, /datum/mood_event/honk)