Fax stamps (#13010)

* Change captain fax suffix

* Add stamps transmit

* Remove proto dependency

* Add centcom fax address for nuke codes

* Remove centcom address resolve

* Remove centcom id
This commit is contained in:
Morb
2022-12-20 06:44:15 +03:00
committed by GitHub
parent 04896d59bf
commit 6835ab0a04
5 changed files with 40 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using Content.Server.Chat.Systems;
using Content.Server.Communications;
using Content.Server.Fax;
using Content.Server.Paper;
using Content.Server.Station.Components;
@@ -46,8 +45,8 @@ namespace Content.Server.Nuke
return false;
}
var wasSent = false;
var faxes = EntityManager.EntityQuery<FaxMachineComponent>();
var wasSent = false;
foreach (var fax in faxes)
{
if (!fax.ReceiveNukeCodes || !TryGetRelativeNukeCode(fax.Owner, out var paperContent, station))
@@ -55,7 +54,11 @@ namespace Content.Server.Nuke
continue;
}
var printout = new FaxPrintout(paperContent, Loc.GetString("nuke-codes-fax-paper-name"));
var printout = new FaxPrintout(
paperContent,
Loc.GetString("nuke-codes-fax-paper-name"),
"paper_stamp-cent",
new() { Loc.GetString("stamp-component-stamped-name-centcom") });
_faxSystem.Receive(fax.Owner, printout, null, fax);
wasSent = true;