mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Randomize tts voice more appropriately (#95272)
## About The Pull Request Adds a helper `SStts.random_tts_voice(gender)` which attempts to pick an appropriate voice for the passed gender ## Why It's Good For The Game Randomization into a completely wrong voice kinda ruins it ## Changelog 🆑 Melbert qol: TTS voice is more appropriately randomized to gender qol: Getting randomized through means such as mulligan toxin randomizes TTS voices /🆑 --------- Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
This commit is contained in:
co-authored by
Watermelon914
parent
0f450388cb
commit
b79743df08
+2
-3
@@ -213,9 +213,8 @@
|
||||
set_wires(new /datum/wires/vending(src))
|
||||
|
||||
if(SStts.tts_enabled)
|
||||
var/static/vendor_voice_by_type = list()
|
||||
if(!vendor_voice_by_type[type])
|
||||
vendor_voice_by_type[type] = pick(SStts.available_speakers)
|
||||
var/static/list/vendor_voice_by_type = list()
|
||||
vendor_voice_by_type[type] ||= SStts.random_tts_voice()
|
||||
voice = vendor_voice_by_type[type]
|
||||
|
||||
slogan_list = splittext(product_slogans, ";")
|
||||
|
||||
Reference in New Issue
Block a user