using Content.Server.Chat.Managers; using Content.Shared.Roles; using Robust.Shared.IoC; namespace Content.Server.Roles { public class Job : Role { public JobPrototype Prototype { get; } public override string Name { get; } public override bool Antagonist => false; public string? StartingGear => Prototype.StartingGear; public Job(Mind.Mind mind, JobPrototype jobPrototype) : base(mind) { Prototype = jobPrototype; Name = jobPrototype.Name; } public override void Greet() { base.Greet(); if (Mind.TryGetSession(out var session)) { var chat = IoCManager.Resolve(); chat.DispatchServerMessage(session, $"You're a new {Name}. Do your best!"); } } } }