Skip to content

Commit

Permalink
fix bounty arbitrage test (#2651)
Browse files Browse the repository at this point in the history
* fix bounty arbitrage test

* fishie

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
  • Loading branch information
deltanedas authored Jan 8, 2025
1 parent 1bf680f commit 7bcce16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Content.IntegrationTests/Tests/CargoTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public async Task NoCargoBountyArbitrageTest()
var cargo = entManager.System<CargoSystem>();

var bounties = protoManager.EnumeratePrototypes<CargoBountyPrototype>().ToList();
bounties.RemoveAll(bounty => bounty.SkipArbitrage); // DeltaV

await server.WaitAssertion(() =>
{
Expand Down
6 changes: 6 additions & 0 deletions Content.Shared/Cargo/Prototypes/CargoBountyPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public sealed partial class CargoBountyPrototype : IPrototype
/// </summary>
[DataField]
public string IdPrefix = "NT";

/// <summary>
/// DeltaV: Skips this bounty for the cargo bounty arbitrage test.
/// </summary>
[DataField]
public bool SkipArbitrage;
}

[DataDefinition, Serializable, NetSerializable]
Expand Down
2 changes: 2 additions & 0 deletions Resources/Prototypes/Catalog/Bounties/bounties.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
id: BountyBrain
reward: 12500
description: bounty-description-brain
skipArbitrage: true # DeltaV - arena mob crate has mobs with brain
entries:
- name: bounty-item-brain
amount: 1
Expand Down Expand Up @@ -74,6 +75,7 @@
reward: 12500
description: bounty-description-carp
idPrefix: CC
skipArbitrage: true # DeltaV - arena mob crate has mobs with brain
entries:
- name: bounty-item-carp
amount: 1
Expand Down

0 comments on commit 7bcce16

Please sign in to comment.