AIs can finally play the voxtest5 announcement. Coming straight from the renowned scifi novel I Have No Mouth, And I Must Scream by Harlan Ellison. Now you too can be peak silicon edginess incarnate. (#30342)

This commit is contained in:
DeityLink
2021-08-27 15:08:36 +02:00
committed by GitHub
parent b2a30f00dc
commit f0524b9f8d

View File

@@ -206,6 +206,10 @@ var/VOX_AVAILABLE_VOICES = list(
if(!message || announcing_vox > world.time)
return
var/exception = FALSE
if (message == "voxtest5")// Not sure how many words exactly it's counting in that one but more than 30 for sure and the decimal might also hinder the count
exception = TRUE
var/list/words = splittext(trim(message), " ")
var/list/incorrect_words = list()
@@ -224,7 +228,7 @@ var/VOX_AVAILABLE_VOICES = list(
var/wordlen = 1
if(word in vox_wordlen)
wordlen=vox_wordlen[word]
if(total_word_len+wordlen>50)
if(!exception && (total_word_len+wordlen>50))
to_chat(src, "<span class='notice'>There are too many words in this announcement.</span>")
return
total_word_len+=wordlen