forked from ss220club/BandaStation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TTS to imaginary friend and add multiple overrides support to sel…
…ect tts (ss220club#716) <!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> У силиконов теперь отдельный экшн на смену ттс, а не кнопка в вербе Имагинари френд может говорить и слышать ттс, а также менять его Добавлено разделение оверрайдов на тир и на гендер Отключает у автоматических оповещений ТТС (пока что всех) fixes ss220club#708
- Loading branch information
Showing
11 changed files
with
72 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
modular_bandastation/tts/code/actions/change_tts_actions.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/datum/action/innate/voice_change | ||
name = "Сменить TTS" | ||
desc = "Изменяет TTS с зависимостью от пола и с учетом уровня подписки." | ||
button_icon = 'icons/mob/actions/actions_ai.dmi' | ||
background_icon_state = "bg_revenant" | ||
overlay_icon_state = "bg_revenant_border" | ||
button_icon_state = "voice_changer" | ||
var/overrides | ||
var/list/traits = list() | ||
|
||
/datum/action/innate/voice_change/Activate() | ||
owner.change_tts_seed(owner, overrides, traits) | ||
|
||
/datum/action/innate/voice_change/robotic | ||
traits = list(TTS_TRAIT_ROBOTIZE) | ||
|
||
/datum/action/innate/voice_change/genderless | ||
desc = "Изменяет TTS вне зависимости от пола и с учетом уровня подписки." | ||
overrides = TTS_OVERRIDE_GENDER | ||
|
||
/datum/action/innate/voice_change/genderless/robotic | ||
traits = list(TTS_TRAIT_ROBOTIZE) |
14 changes: 14 additions & 0 deletions
14
modular_bandastation/tts/code/base_seeds/imaginary_friend.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/mob/eye/imaginary_friend/add_tts_component() | ||
AddComponent(/datum/component/tts_component) | ||
|
||
/mob/eye/imaginary_friend/Hear(message, atom/movable/speaker, datum/language/message_language, raw_message, radio_freq, list/spans, list/message_mods, message_range) | ||
. = ..() | ||
speaker.cast_tts(src, raw_message, effect = radio_freq ? /datum/singleton/sound_effect/radio : null) | ||
|
||
/mob/eye/imaginary_friend/setup_friend_from_prefs(datum/preferences/appearance_from_prefs) | ||
. = ..() | ||
AddComponent(/datum/component/tts_component, SStts220.tts_seeds[appearance_from_prefs.read_preference(/datum/preference/text/tts_seed)]) | ||
|
||
/mob/eye/imaginary_friend/Initialize(mapload) | ||
. = ..() | ||
GRANT_ACTION(/datum/action/innate/voice_change/genderless) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters