fix the fact that RandomSentience was not actually making a ghost role. Oops!
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Content.Server.Ghost.Roles.Components
|
|||||||
{
|
{
|
||||||
public abstract class GhostRoleComponent : Component
|
public abstract class GhostRoleComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("name")] private string _roleName = "Unknown";
|
[DataField("name")] public string _roleName = "Unknown";
|
||||||
|
|
||||||
[DataField("description")] private string _roleDescription = "Unknown";
|
[DataField("description")] private string _roleDescription = "Unknown";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Content.Server.Chat.Managers;
|
using Content.Server.Chat.Managers;
|
||||||
|
using Content.Server.Ghost.Roles.Components;
|
||||||
using Content.Server.Mind.Commands;
|
using Content.Server.Mind.Commands;
|
||||||
using Content.Server.StationEvents.Components;
|
using Content.Server.StationEvents.Components;
|
||||||
using Robust.Shared.Random;
|
using Robust.Shared.Random;
|
||||||
@@ -35,6 +36,9 @@ public sealed class RandomSentience : StationEvent
|
|||||||
|
|
||||||
MakeSentientCommand.MakeSentient(target.Owner, _entityManager);
|
MakeSentientCommand.MakeSentient(target.Owner, _entityManager);
|
||||||
_entityManager.RemoveComponent<SentienceTargetComponent>(target.Owner);
|
_entityManager.RemoveComponent<SentienceTargetComponent>(target.Owner);
|
||||||
|
var comp = _entityManager.AddComponent<GhostTakeoverAvailableComponent>(target.Owner);
|
||||||
|
comp.RoleName = _entityManager.GetComponent<MetaDataComponent>(target.Owner).EntityName;
|
||||||
|
comp.RoleDescription = Loc.GetString("station-event-random-sentience-role-description", ("name", comp.RoleName));
|
||||||
groups.Add(target.FlavorKind);
|
groups.Add(target.FlavorKind);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,15 @@ random-sentience-event-strength-6 = clown
|
|||||||
random-sentience-event-strength-7 = low
|
random-sentience-event-strength-7 = low
|
||||||
random-sentience-event-strength-8 = AI
|
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 ->
|
station-event-random-sentience-announcement = Based on { $data }, we believe that some of the station's { $amount ->
|
||||||
[1] { $kind1 }
|
[1] { $kind1 }
|
||||||
[2] { $kind1 } and { $kind2 }
|
[2] { $kind1 } and { $kind2 }
|
||||||
[3] { $kind1 }, { $kind2 }, and { $kind3 }
|
[3] { $kind1 }, { $kind2 }, and { $kind3 }
|
||||||
*[other] { $kind1 }, { $kind2 }, { $kind3 }, etc.
|
*[other] { $kind1 }, { $kind2 }, { $kind3 }, etc.
|
||||||
} beings have developed { $strength } level intelligence, and the ability to communicate.
|
} 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user