Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
PubliclyExecutedPig committed Feb 16, 2025
2 parents 116d30b + 91adb01 commit bcf0bd6
Show file tree
Hide file tree
Showing 33 changed files with 410,427 additions and 409,828 deletions.
5 changes: 5 additions & 0 deletions Content.Server/Lathe/LatheSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ public void FinishProducing(EntityUid uid, LatheComponent? comp = null, LathePro
{
var result = Spawn(resultProto, Transform(uid).Coordinates);
_stack.TryMergeToContacts(result);
if (comp.CurrentRecipe.PrintTicket)
{
var tickets = Spawn(comp.CurrentRecipe.TicketProtoId, Transform(uid).Coordinates);
_stack.TryMergeToContacts(tickets);
}
}

if (comp.CurrentRecipe.ResultReagents is { } resultReagents &&
Expand Down
6 changes: 6 additions & 0 deletions Content.Shared/Research/Prototypes/LatheRecipePrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ public sealed partial class LatheRecipePrototype : IPrototype, IInheritingProtot
/// </summary>
[DataField]
public EntProtoId? Result;

[DataField]
public bool PrintTicket = false;

[DataField]
public EntProtoId TicketProtoId = "SalvageTicket";

[DataField]
public Dictionary<ProtoId<ReagentPrototype>, FixedPoint2>? ResultReagents;
Expand Down
14 changes: 14 additions & 0 deletions Resources/Changelog/ChangelogStarlight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3461,4 +3461,18 @@ Entries:
id: 479
time: '2025-02-16T17:09:01.000000+00:00'
url: https://github.com/ss14Starlight/space-station-14/pull/331
- author: Rinary
changes:
- message: Added Salvage Ticket Machine.
type: Add
id: 480
time: '2025-02-16T19:27:00.000000+00:00'
url: https://github.com/ss14Starlight/space-station-14/pull/335
- author: Rinary
changes:
- message: Added Salvage Tickets.
type: Add
id: 481
time: '2025-02-16T19:27:00.000000+00:00'
url: https://github.com/ss14Starlight/space-station-14/pull/335

3 changes: 2 additions & 1 deletion Resources/Locale/en-US/_Starlight/store/vendors.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ vendor-medical-dispenser = medical dispenser
vendor-engineering-dispenser = engineering dispenser
vendor-clown-dispenser = HohohonkersVend
vendor-security-dispenser = security dispenser
vendor-fashion-o-mat = Fashion-o-Mat
vendor-fashion-o-mat = Fashion-o-Mat
vendor-salvage-ticket-machine = salvage ticket machine
Loading

0 comments on commit bcf0bd6

Please sign in to comment.