[S] bikehorn fix 2: sound() datum doesn't accept double quotes, my bad.

This commit is contained in:
Ghommie
2019-11-23 01:46:59 +01:00
parent ac44bfcad2
commit 24c93d9df6
+1 -1
View File
@@ -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)