Adds a latejoin radio announcement (#3569)
Co-authored-by: ike709 <sparebytes@protonmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
3
Resources/Locale/en-US/centcomm.ftl
Normal file
3
Resources/Locale/en-US/centcomm.ftl
Normal file
@@ -0,0 +1,3 @@
|
||||
### Automated Centcomm announcements
|
||||
|
||||
latejoin-arrival-announcement = {$character} ({$job}) has arrived at the station!
|
||||
Reference in New Issue
Block a user