using Content.Shared.Cargo; namespace Content.Server.Cargo.Components; /// /// Stores all active cargo bounties for a particular station. /// [RegisterComponent] public sealed class StationCargoBountyDatabaseComponent : Component { /// /// Maximum amount of bounties a station can have. /// [DataField("maxBounties"), ViewVariables(VVAccess.ReadWrite)] public int MaxBounties = 3; /// /// A list of all the bounties currently active for a station. /// [DataField("bounties"), ViewVariables(VVAccess.ReadWrite)] public List Bounties = new(); /// /// Used to determine unique order IDs /// [DataField("totalBounties")] public int TotalBounties; /// /// A poor-man's weighted list of the durations for how long /// each bounty will last. /// [DataField("bountyDurations")] public List BountyDurations = new() { TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(7.5f), TimeSpan.FromMinutes(7.5f), TimeSpan.FromMinutes(7.5f), TimeSpan.FromMinutes(10), TimeSpan.FromMinutes(10), TimeSpan.FromMinutes(10), TimeSpan.FromMinutes(10), TimeSpan.FromMinutes(10), TimeSpan.FromMinutes(15) }; }