Fix double counting bounties (#21399)

This commit is contained in:
Nemanja
2023-11-04 09:19:23 -04:00
committed by GitHub
parent 7a2a3ce9a7
commit 4a730c5910
2 changed files with 19 additions and 5 deletions

View File

@@ -33,8 +33,15 @@ public sealed partial class StationCargoBountyDatabaseComponent : Component
public float MinBountyTime = 600f;
/// <summary>
/// The maxmium amount of time the bounty lasts before being removed.
/// The maximum amount of time the bounty lasts before being removed.
/// </summary>
[DataField("maxBountyTime"), ViewVariables(VVAccess.ReadWrite)]
public float MaxBountyTime = 905f;
/// <summary>
/// A list of bounty IDs that have been checked this tick.
/// Used to prevent multiplying bounty prices.
/// </summary>
[DataField]
public HashSet<int> CheckedBounties = new();
}