Various improvements to job greetings. (#4777)

This commit is contained in:
Vera Aguilera Puerto
2021-10-06 13:51:11 +02:00
committed by GitHub
parent eac2fd3cf0
commit 419edc710d
24 changed files with 53 additions and 1 deletions

View File

@@ -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"));
}
}
}