* Added 18 new bounties + tags, couple of balance tweaks * Oops, 2 corn tags. * Fixed another duplicate from merge conflict * Fixed all arbitrage issues * Removed metamorphic glass/manly dorf bounty * Removed manly dorf bounty * Removed manly dorf bounty * Removed manly dorf bounty * Changed hiviz tag, removed commented out bounty * Removed extra line * Change HiViz tag * Removed unused tag * Removed LaceupShoes, changed HiViz * Changed flavor text for fruit bounty * Removed live mouse bounty
36 lines
994 B
C#
36 lines
994 B
C#
using Content.Shared.Cargo;
|
|
|
|
namespace Content.Server.Cargo.Components;
|
|
|
|
/// <summary>
|
|
/// Stores all active cargo bounties for a particular station.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class StationCargoBountyDatabaseComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Maximum amount of bounties a station can have.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public int MaxBounties = 6;
|
|
|
|
/// <summary>
|
|
/// A list of all the bounties currently active for a station.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public List<CargoBountyData> Bounties = new();
|
|
|
|
/// <summary>
|
|
/// Used to determine unique order IDs
|
|
/// </summary>
|
|
[DataField]
|
|
public int TotalBounties;
|
|
|
|
/// <summary>
|
|
/// A list of bounty IDs that have been checked this tick.
|
|
/// Used to prevent multiplying bounty prices.
|
|
/// </summary>
|
|
[DataField]
|
|
public HashSet<string> CheckedBounties = new();
|
|
}
|