Adds a latejoin radio announcement (#3569)

Co-authored-by: ike709 <sparebytes@protonmail.com>
This commit is contained in:
ike709
2021-03-07 18:15:51 -06:00
committed by GitHub
parent 8204d33a85
commit ac1d06e312
2 changed files with 13 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Threading;
@@ -897,6 +898,15 @@ namespace Content.Server.GameTicking
var job = new Job(data.Mind, jobPrototype);
data.Mind.AddRole(job);
if (lateJoin)
{
_chatManager.DispatchStationAnnouncement(Loc.GetString(
"latejoin-arrival-announcement",
("character", character.Name),
("job", CultureInfo.CurrentCulture.TextInfo.ToTitleCase(job.Name))
));
}
var mob = _spawnPlayerMob(job, character, lateJoin);
data.Mind.TransferTo(mob);

View File

@@ -0,0 +1,3 @@
### Automated Centcomm announcements
latejoin-arrival-announcement = {$character} ({$job}) has arrived at the station!