[feat] TTS
# Conflicts: # Content.Client/Options/UI/Tabs/AudioTab.xaml.cs # Content.Client/Preferences/UI/HumanoidProfileEditor.xaml # Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs # Content.Server/Database/ServerDbBase.cs # Content.Server/Entry/EntryPoint.cs # Content.Server/Humanoid/Systems/HumanoidAppearanceSystem.cs # Content.Server/IoC/ServerContentIoC.cs # Content.Server/VoiceMask/VoiceMaskSystem.cs # Resources/Prototypes/Entities/Mobs/Species/base.yml
This commit is contained in:
@@ -190,6 +190,10 @@ namespace Content.Server.Database
|
||||
if (Enum.TryParse<Gender>(profile.Gender, true, out var genderVal))
|
||||
gender = genderVal;
|
||||
|
||||
var voice = profile.Voice;
|
||||
if (voice == string.Empty)
|
||||
voice = SharedHumanoidAppearanceSystem.DefaultSexVoice[sex];
|
||||
|
||||
// ReSharper disable once ConditionalAccessQualifierIsNonNullableAccordingToAPIContract
|
||||
var markingsRaw = profile.Markings?.Deserialize<List<string>>();
|
||||
|
||||
@@ -210,6 +214,7 @@ namespace Content.Server.Database
|
||||
profile.CharacterName,
|
||||
profile.FlavorText,
|
||||
profile.Species,
|
||||
voice,
|
||||
profile.Age,
|
||||
sex,
|
||||
gender,
|
||||
@@ -260,6 +265,7 @@ namespace Content.Server.Database
|
||||
profile.Markings = markings;
|
||||
profile.Slot = slot;
|
||||
profile.PreferenceUnavailable = (DbPreferenceUnavailableMode) humanoid.PreferenceUnavailable;
|
||||
profile.Voice = humanoid.Voice;
|
||||
|
||||
profile.Jobs.Clear();
|
||||
profile.Jobs.AddRange(
|
||||
|
||||
Reference in New Issue
Block a user