mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-22 05:25:15 +01:00
Adds TTS to the game. Players can select their own voices in preferences. (#74775)
Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com> Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com> Co-authored-by: Iamgoofball <iamgoofball@gmail.com> Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com> Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
payment_department = ACCOUNT_SRV
|
||||
light_power = 0.7
|
||||
light_range = MINIMUM_USEFUL_LIGHT_RANGE
|
||||
voice_filter = "aderivative"
|
||||
|
||||
/// Is the machine active (No sales pitches if off)!
|
||||
var/active = 1
|
||||
@@ -185,7 +186,6 @@
|
||||
/// used for narcing on underages
|
||||
var/obj/item/radio/sec_radio
|
||||
|
||||
|
||||
/**
|
||||
* Initialize the vending machine
|
||||
*
|
||||
@@ -208,6 +208,12 @@
|
||||
. = ..()
|
||||
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)
|
||||
voice = vendor_voice_by_type[type]
|
||||
|
||||
if(build_inv) //non-constructable vending machine
|
||||
build_inventories()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user