Add ERT time stats (#31629)

* add jobs for ghost roles

* add job to ToggleableGhostRole

* typo

---------

Co-authored-by: Mota <belochuc@gmail.com>
This commit is contained in:
poeMota
2024-09-02 08:32:49 +03:00
committed by GitHub
parent 738e0cf0df
commit 9a51d37d02
6 changed files with 41 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
using Content.Server.Ghost.Roles.Raffles;
using Content.Server.Ghost.Roles.Raffles;
using Content.Server.Mind.Commands;
using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Server.Ghost.Roles.Components;
@@ -14,7 +15,6 @@ public sealed partial class GhostRoleComponent : Component
[DataField("rules")] private string _roleRules = "ghost-role-component-default-rules";
// TODO ROLE TIMERS
// Actually make use of / enforce this requirement?
// Why is this even here.
// Move to ghost role prototype & respect CCvars.GameRoleTimerOverride
@@ -99,4 +99,11 @@ public sealed partial class GhostRoleComponent : Component
[DataField("raffle")]
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
public GhostRoleRaffleConfig? RaffleConfig { get; set; }
/// <summary>
/// Job the entity will receive after adding the mind.
/// </summary>
[DataField("job")]
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // also FIXME Friends
public ProtoId<JobPrototype>? JobProto = null;
}