Various improvements to job greetings. (#4777)
This commit is contained in:
committed by
GitHub
parent
eac2fd3cf0
commit
419edc710d
@@ -1,6 +1,7 @@
|
||||
using Content.Server.Chat.Managers;
|
||||
using Content.Shared.Roles;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Localization;
|
||||
|
||||
namespace Content.Server.Roles
|
||||
{
|
||||
@@ -26,7 +27,16 @@ namespace Content.Server.Roles
|
||||
if (Mind.TryGetSession(out var session))
|
||||
{
|
||||
var chat = IoCManager.Resolve<IChatManager>();
|
||||
chat.DispatchServerMessage(session, $"You're a new {Name}. Do your best!");
|
||||
chat.DispatchServerMessage(session, Loc.GetString("job-greet-introduce-job-name", ("jobName", Name)));
|
||||
|
||||
if(Prototype.RequireAdminNotify)
|
||||
chat.DispatchServerMessage(session, Loc.GetString("job-greet-important-disconnect-admin-notify"));
|
||||
|
||||
chat.DispatchServerMessage(session, Loc.GetString("job-greet-supervisors-warning", ("jobName", Name), ("supervisors", Prototype.Supervisors)));
|
||||
|
||||
if(Prototype.JoinNotifyCrew && Mind.CharacterName != null)
|
||||
chat.DispatchStationAnnouncement(Loc.GetString("job-greet-join-notify-crew", ("jobName", Name), ("characterName", Mind.CharacterName)),
|
||||
Loc.GetString("job-greet-join-notify-crew-announcer"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user