mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user