diff --git a/Content.Server/Ghost/Roles/Components/GhostRoleComponent.cs b/Content.Server/Ghost/Roles/Components/GhostRoleComponent.cs index ef5b4e7436..cdaabd5416 100644 --- a/Content.Server/Ghost/Roles/Components/GhostRoleComponent.cs +++ b/Content.Server/Ghost/Roles/Components/GhostRoleComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Ghost.Roles.Components { public abstract class GhostRoleComponent : Component { - [DataField("name")] private string _roleName = "Unknown"; + [DataField("name")] public string _roleName = "Unknown"; [DataField("description")] private string _roleDescription = "Unknown"; diff --git a/Content.Server/StationEvents/Events/RandomSentience.cs b/Content.Server/StationEvents/Events/RandomSentience.cs index 83c43f088f..f9bcdaabc6 100644 --- a/Content.Server/StationEvents/Events/RandomSentience.cs +++ b/Content.Server/StationEvents/Events/RandomSentience.cs @@ -1,5 +1,6 @@ using System.Linq; using Content.Server.Chat.Managers; +using Content.Server.Ghost.Roles.Components; using Content.Server.Mind.Commands; using Content.Server.StationEvents.Components; using Robust.Shared.Random; @@ -35,6 +36,9 @@ public sealed class RandomSentience : StationEvent MakeSentientCommand.MakeSentient(target.Owner, _entityManager); _entityManager.RemoveComponent(target.Owner); + var comp = _entityManager.AddComponent(target.Owner); + comp.RoleName = _entityManager.GetComponent(target.Owner).EntityName; + comp.RoleDescription = Loc.GetString("station-event-random-sentience-role-description", ("name", comp.RoleName)); groups.Add(target.FlavorKind); } diff --git a/Resources/Locale/en-US/station-events/events/random-sentience.ftl b/Resources/Locale/en-US/station-events/events/random-sentience.ftl index 1ca1f7bd95..42ed237fb4 100644 --- a/Resources/Locale/en-US/station-events/events/random-sentience.ftl +++ b/Resources/Locale/en-US/station-events/events/random-sentience.ftl @@ -16,9 +16,15 @@ random-sentience-event-strength-6 = clown random-sentience-event-strength-7 = low random-sentience-event-strength-8 = AI +## Announcement text + station-event-random-sentience-announcement = Based on { $data }, we believe that some of the station's { $amount -> [1] { $kind1 } [2] { $kind1 } and { $kind2 } [3] { $kind1 }, { $kind2 }, and { $kind3 } *[other] { $kind1 }, { $kind2 }, { $kind3 }, etc. } beings have developed { $strength } level intelligence, and the ability to communicate. + +## Ghost role description + +station-event-random-sentience-role-description = You are a sentient { $name }, brought to life through space magic.