Make role timer tooltips pretty (#19605)
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
This commit is contained in:
@@ -4,14 +4,18 @@ using Content.Server.Mind;
|
||||
using Content.Shared.Mind;
|
||||
using Content.Shared.Roles;
|
||||
using Content.Shared.Roles.Jobs;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Roles.Jobs;
|
||||
|
||||
/// <summary>
|
||||
/// Handles the job data on mind entities.
|
||||
/// </summary>
|
||||
public sealed class JobSystem : SharedJobSystem
|
||||
{
|
||||
[Dependency] private readonly IChatManager _chat = default!;
|
||||
[Dependency] private readonly MindSystem _minds = default!;
|
||||
[Dependency] private readonly SharedRoleSystem _roles = default!;
|
||||
[Dependency] private readonly MindSystem _mind = default!;
|
||||
[Dependency] private readonly RoleSystem _roles = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -23,7 +27,7 @@ public sealed class JobSystem : SharedJobSystem
|
||||
if (args.Silent)
|
||||
return;
|
||||
|
||||
if (!_minds.TryGetSession(mindId, out var session))
|
||||
if (!_mind.TryGetSession(mindId, out var session))
|
||||
return;
|
||||
|
||||
if (!MindTryGetJob(mindId, out _, out var prototype))
|
||||
|
||||
Reference in New Issue
Block a user