* Ported over code for delta-v to fix bounties * Added requested changes * Removed the station arg from "IsBountyComplete". It is unneeded and all calls just use a null value for it anyways
29 lines
758 B
C#
29 lines
758 B
C#
using Content.Server.Station.Systems;
|
|
|
|
namespace Content.Server.Cargo.Components;
|
|
|
|
/// <summary>
|
|
/// This is used for marking containers as
|
|
/// containing goods for fulfilling bounties.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class CargoBountyLabelComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The ID for the bounty this label corresponds to.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public string Id = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Used to prevent recursion in calculating the price.
|
|
/// </summary>
|
|
public bool Calculating;
|
|
|
|
/// <summary>
|
|
/// The Station System to check and remove bounties from
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityUid? AssociatedStationId;
|
|
}
|