Skip to content

Commit

Permalink
Update StationGoalPaperSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
EndrAnimet committed May 30, 2024
1 parent f9135ff commit 70530b9
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions Content.Server/Corvax/StationGoal/StationGoalPaperSystem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.Data;
using System.Text.RegularExpressions;
using Content.Server.Corvax.GameTicking;
using Content.Shared.Paper;
using Content.Server.Fax;
using Content.Shared.Fax.Components;
using Content.Server.Station.Systems;
using Content.Shared.Corvax.CCCVars;
using Content.Shared.Random;
Expand Down Expand Up @@ -93,21 +95,25 @@ public bool SendStationGoal(StationGoalPrototype goal)

var stationId = StationIdRegex.Match(meta.EntityName).Groups[1].Value;

var printout = new FaxPrintout(
Loc.GetString("station-goal-fax-paper-header",
("date", DateTime.Now.AddYears(1000).ToString("yyyy MMMM dd")),
("station", string.IsNullOrEmpty(stationId) ? "???" : stationId),
("content", goal.Text)
),
Loc.GetString("station-goal-fax-paper-name"),
"StationGoalPaper"
);

_fax.Receive(uid, printout, null, fax);
var printout = new FaxPrintout(
Loc.GetString("station-goal-fax-paper-header",
("date", DateTime.Now.AddYears(1000).ToString("yyyy MMMM dd")),
("station", string.IsNullOrEmpty(stationId) ? "???" : stationId),
("content", goal.Text)
),
Loc.GetString("station-goal-fax-paper-name"),
null,
null,
"paper_stamp-centcom",
new List<StampDisplayInfo>
{
new() { StampedName = Loc.GetString("stamp-component-stamped-name-centcom"), StampedColor = Color.FromHex("#006600") },
});
_fax.Receive(uid, printout, null, fax);

wasSent = true;
}

return wasSent;
}
}
}

0 comments on commit 70530b9

Please sign in to comment.