Minor paper ECS and stamps (#7394)

Co-authored-by: fishfish458 <fishfish458>
This commit is contained in:
Fishfish458
2022-04-08 17:37:22 -06:00
committed by GitHub
parent eac154ca1b
commit ddf2d8815b
23 changed files with 450 additions and 133 deletions

View File

@@ -12,6 +12,7 @@ namespace Content.Server.Cargo;
public sealed partial class CargoSystem
{
[Dependency] private readonly PaperSystem _paperSystem = default!;
private void InitializeTelepad()
{
SubscribeLocalEvent<CargoTelepadComponent, PowerChangedEvent>(OnTelepadPowerChange);
@@ -114,12 +115,13 @@ public sealed partial class CargoSystem
MetaData(printed).EntityName = val;
paper.SetContent(Loc.GetString(
_paperSystem.SetContent(printed, Loc.GetString(
"cargo-console-paper-print-text",
("orderNumber", data.OrderNumber),
("requester", data.Requester),
("reason", data.Reason),
("approver", data.Approver)));
("approver", data.Approver)),
paper);
// attempt to attach the label
if (TryComp<PaperLabelComponent>(product, out var label))