Playback device peeve.

This commit is contained in:
Ghommie
2020-02-01 06:18:22 +01:00
parent 133da9bdef
commit ef3789eeb2
+3 -2
View File
@@ -25,12 +25,13 @@
listening = FALSE
languages = message_language
say("The recorded message is '[recorded]'.", language = message_language)
next_activate = max(round(length(recorded) * 0.5), 3 SECONDS)
/obj/item/assembly/playback/activate()
if(recorded == "") // Why say anything when there isn't anything to say
. = ..()
if(!. || !recorded) // Why say anything when there isn't anything to say
return FALSE
say("[recorded]", language = languages) // Repeat the message in the language it was said in
return TRUE
/obj/item/assembly/playback/proc/record()
if(!secured || holder)