Show the station name on spawn (#12128)

This commit is contained in:
Mervill
2022-10-22 14:51:51 -07:00
committed by GitHub
parent ff2fbda804
commit 9c27f8417b
3 changed files with 11 additions and 17 deletions

View File

@@ -209,6 +209,12 @@ namespace Content.Server.GameTicking
_chatManager.DispatchServerMessage(player, Loc.GetString("job-greet-crew-shortages"));
}
if (TryComp(station, out MetaDataComponent? metaData))
{
_chatManager.DispatchServerMessage(player,
Loc.GetString("job-greet-station-name", ("stationName", metaData.EntityName)));
}
// We raise this event directed to the mob, but also broadcast it so game rules can do something now.
PlayersJoinedRoundNormally++;
var aev = new PlayerSpawnCompleteEvent(mob, player, jobId, lateJoin, PlayersJoinedRoundNormally, station, character);