From da9591bfb470f20deadb1fff22c5d03899fd8deb Mon Sep 17 00:00:00 2001 From: sleepyyapril Date: Wed, 15 Jan 2025 20:06:49 -0400 Subject: [PATCH 1/2] AI and Borg naming per character --- .../Humanoid/HumanoidAppearanceSystem.cs | 2 + Content.Client/Lobby/LobbyUIController.cs | 5 +- .../Lobby/UI/HumanoidProfileEditor.xaml | 12 + .../Lobby/UI/HumanoidProfileEditor.xaml.cs | 82 +- .../20250115231723_SiliconNames.Designer.cs | 2118 +++++++++++++++++ .../Postgres/20250115231723_SiliconNames.cs | 38 + .../PostgresServerDbContextModelSnapshot.cs | 8 + .../20250115231715_SiliconNames.Designer.cs | 2041 ++++++++++++++++ .../Sqlite/20250115231715_SiliconNames.cs | 38 + .../SqliteServerDbContextModelSnapshot.cs | 8 + Content.Server.Database/Model.cs | 2 + Content.Server/Database/ServerDbBase.cs | 4 + .../GameTicking/GameTicker.Spawning.cs | 25 +- .../RandomMetadataExcludedComponent.cs | 8 + .../RandomMetadata/RandomMetadataSystem.cs | 6 +- .../Humanoid/HumanoidAppearanceComponent.cs | 6 + .../SharedHumanoidAppearanceSystem.cs | 2 + .../Preferences/HumanoidCharacterProfile.cs | 16 +- .../ui/humanoid-profile-editor.ftl | 2 + .../DeltaV/Entities/Mobs/Player/silicon.yml | 1 + .../Entities/Mobs/Player/silicon.yml | 1 + 21 files changed, 4415 insertions(+), 10 deletions(-) create mode 100644 Content.Server.Database/Migrations/Postgres/20250115231723_SiliconNames.Designer.cs create mode 100644 Content.Server.Database/Migrations/Postgres/20250115231723_SiliconNames.cs create mode 100644 Content.Server.Database/Migrations/Sqlite/20250115231715_SiliconNames.Designer.cs create mode 100644 Content.Server.Database/Migrations/Sqlite/20250115231715_SiliconNames.cs create mode 100644 Content.Server/RandomMetadata/RandomMetadataExcludedComponent.cs diff --git a/Content.Client/Humanoid/HumanoidAppearanceSystem.cs b/Content.Client/Humanoid/HumanoidAppearanceSystem.cs index 7ba6913172..d7c55ea5ed 100644 --- a/Content.Client/Humanoid/HumanoidAppearanceSystem.cs +++ b/Content.Client/Humanoid/HumanoidAppearanceSystem.cs @@ -206,6 +206,8 @@ public override void LoadProfile(EntityUid uid, HumanoidCharacterProfile? profil humanoid.Sex = profile.Sex; humanoid.Gender = profile.Gender; humanoid.DisplayPronouns = profile.DisplayPronouns; + humanoid.StationAiName = profile.StationAiName; + humanoid.CyborgName = profile.CyborgName; humanoid.Age = profile.Age; humanoid.Species = profile.Species; humanoid.SkinColor = profile.Appearance.SkinColor; diff --git a/Content.Client/Lobby/LobbyUIController.cs b/Content.Client/Lobby/LobbyUIController.cs index 7f3ad60c3d..a300e8c054 100644 --- a/Content.Client/Lobby/LobbyUIController.cs +++ b/Content.Client/Lobby/LobbyUIController.cs @@ -20,6 +20,7 @@ using Robust.Shared.Configuration; using Robust.Shared.Map; using Robust.Shared.Prototypes; +using Robust.Shared.Random; using Robust.Shared.Utility; using static Content.Shared.Humanoid.SharedHumanoidAppearanceSystem; using CharacterSetupGui = Content.Client.Lobby.UI.CharacterSetupGui; @@ -38,6 +39,7 @@ public sealed class LobbyUIController : UIController, IOnStateEntered + + + + + +