mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
# Description Showing some love to our hard-working couriers. This cherry-picks the following PRs from delta-v: - https://github.com/DeltaV-Station/Delta-v/pull/1472 - Adds a MailMetrics PDA cartridge for couriers and the LO - https://github.com/DeltaV-Station/Delta-v/pull/1652 - Ports mail tweaks from frontier to delta-v, adding large packages, RPDs (mail cannons), and more mail - https://github.com/DeltaV-Station/Delta-v/pull/1788 - Adding a couple more packages - https://github.com/DeltaV-Station/Delta-v/pull/1925 - Fixing the non-functional "last known location" part of mail descriptions Some mail items, such as the opporozidone syringe and rainbow joints/blunts, had to be disabled because we don't have them (yet?) <details><summary><h1>Media</h1></summary> <p>       </p> </details> --- # Changelog 🆑 - add: The Courier and Logistics Officer now have a new program in their PDA for tracking mail delivery performance, including earnings and percent of packages opened, damaged, or expired. - add: The list of possible mail packages has been greately expanded, and now includes large parcels. - add: The CourierDrobe now offers a rapid mail delivery device, along with capsules for it. --------- Signed-off-by: Adeinitas <147965189+adeinitas@users.noreply.github.com> Co-authored-by: portfiend <109661617+portfiend@users.noreply.github.com> Co-authored-by: byte <50130120+huckleton@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: Adeinitas <147965189+adeinitas@users.noreply.github.com> Co-authored-by: ErhardSteinhauer <65374927+ErhardSteinhauer@users.noreply.github.com> Co-authored-by: Dvir <dvirf01@gmail.com> Co-authored-by: Dvir <39403717+dvir001@users.noreply.github.com> Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> Co-authored-by: Whatstone <whatstone3@gmail.com> Co-authored-by: Danger Revolution! <142105406+DangerRevolution@users.noreply.github.com> Co-authored-by: Milon <plmilonpl@gmail.com> # Conflicts: # Resources/Prototypes/Entities/Objects/Weapons/Guns/Launchers/launchers.yml
112 lines
3.2 KiB
C#
112 lines
3.2 KiB
C#
using System.Threading;
|
|
using Robust.Shared.Audio;
|
|
using Content.Shared.Storage;
|
|
using Content.Shared.Mail;
|
|
|
|
namespace Content.Server.Mail.Components;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class MailComponent : SharedMailComponent
|
|
{
|
|
[DataField]
|
|
public string Recipient = "None";
|
|
|
|
[DataField]
|
|
public string RecipientJob = "None";
|
|
|
|
/// <remarks>
|
|
/// Why do we not use LockComponent?
|
|
/// Because this can't be locked again,
|
|
/// and we have special conditions for unlocking,
|
|
/// and we don't want to add a verb.
|
|
/// </remarks>
|
|
[DataField]
|
|
public bool IsLocked = true;
|
|
|
|
/// <summary>
|
|
/// Is this parcel profitable to deliver for the station?
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The station won't receive any award on delivery if this is false.
|
|
/// This is useful for broken fragile packages and packages that were
|
|
/// not delivered in time.
|
|
/// </remarks>
|
|
[DataField]
|
|
public bool IsProfitable = true;
|
|
|
|
/// <summary>
|
|
/// Is this package considered fragile?
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This can be set to true in the YAML files for a mail delivery to
|
|
/// always be Fragile, despite its contents.
|
|
/// </remarks>
|
|
[DataField]
|
|
public bool IsFragile = false;
|
|
|
|
/// <summary>
|
|
/// Is this package considered priority mail?
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// There will be a timer set for its successful delivery. The
|
|
/// station's bank account will be penalized if it is not delivered on
|
|
/// time. <br/>
|
|
/// <br/>
|
|
/// This is set to false on successful delivery.<br/>
|
|
/// <br/>
|
|
/// This can be set to true in the YAML files for a mail delivery to always be Priority.
|
|
/// </remarks>
|
|
[DataField]
|
|
public bool IsPriority = false;
|
|
|
|
/// <summary>
|
|
/// Whether this parcel is large.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool IsLarge = false;
|
|
|
|
/// <summary>
|
|
/// What will be packaged when the mail is spawned.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<EntitySpawnEntry> Contents = new();
|
|
|
|
/// <summary>
|
|
/// The amount that cargo will be awarded for delivering this mail.
|
|
/// </summary>
|
|
[DataField]
|
|
public int Bounty = 750;
|
|
|
|
/// <summary>
|
|
/// Penalty if the mail is destroyed.
|
|
/// </summary>
|
|
[DataField]
|
|
public int Penalty = -250;
|
|
|
|
/// <summary>
|
|
/// The sound that's played when the mail's lock is broken.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier PenaltySound = new SoundPathSpecifier("/Audio/Machines/Nuke/angry_beep.ogg");
|
|
|
|
/// <summary>
|
|
/// The sound that's played when the mail's opened.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier OpenSound = new SoundPathSpecifier("/Audio/Effects/packetrip.ogg");
|
|
|
|
/// <summary>
|
|
/// The sound that's played when the mail's lock has been emagged.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier EmagSound = new SoundCollectionSpecifier("sparks");
|
|
|
|
/// <summary>
|
|
/// Whether this component is enabled.
|
|
/// Removed when it becomes trash.
|
|
/// </summary>
|
|
public bool IsEnabled = true;
|
|
|
|
public CancellationTokenSource? PriorityCancelToken;
|
|
}
|