mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-21 07:28:31 +03:00
## Mirror of PR #26160: [Added 18 new bounties to cargo](https://github.com/space-wizards/space-station-14/pull/26160) from <img src="https://avatars.githubusercontent.com/u/10567778?v=4" alt="space-wizards" width="22"/> [space-wizards](https://github.com/space-wizards)/[space-station-14](https://github.com/space-wizards/space-station-14) ###### `4357b9ef08fee0e08c4fdf4eeef714fa8eb38112` PR opened by <img src="https://avatars.githubusercontent.com/u/1471082?v=4" width="16"/><a href="https://github.com/wafehling"> wafehling</a> at 2024-03-15 20:21:21 UTC --- PR changed 19 files with 373 additions and 22 deletions. The PR had the following labels: --- <details open="true"><summary><h1>Original Body</h1></summary> > ## About the PR > I added 18 new bounties to cargo's bounty system, and tweaked a couple values in the existing system. (6 bounties at once instead of 5, reduced # of headsets needed for bounty to a sane number, fixed a couple inconsistencies) > > ## Why / Balance > > Spice things up, add variety, add a bit of balance. For fun! > > ## Technical details > Pretty much just Yaml/Ftl changes, added new bounty info + tags, Tweaked the active bounty count. > > ## Media >  > > - [X] I have added screenshots/videos to this PR showcasing its changes ingame, **or** this PR does not require an ingame showcase > > ## Breaking changes > None! Nothing got removed, and it's all just surface level yaml work. > > **Changelog** > 🆑 > - add: Added 18 new bounties to cargo bounty system. > > </details> --------- Co-authored-by: SimpleStation14 <Unknown> Co-authored-by: VMSolidus <evilexecutive@gmail.com>
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();
|
|
}
|