Increase syndicate uplink discount amount to 6. (#33950)

* Increase uplink discounts from 3 to 7

* nevermind, 6
This commit is contained in:
ScarKy0
2024-12-21 03:14:08 +01:00
committed by GitHub
parent 9a4f9561e6
commit 03a54e90f5
3 changed files with 6 additions and 6 deletions

View File

@@ -79,11 +79,11 @@ public sealed class StoreTests
var discountComponent = entManager.GetComponent<StoreDiscountComponent>(pda); var discountComponent = entManager.GetComponent<StoreDiscountComponent>(pda);
Assert.That( Assert.That(
discountComponent.Discounts, discountComponent.Discounts,
Has.Exactly(3).Items, Has.Exactly(6).Items,
$"After applying discount total discounted items count was expected to be '3' " $"After applying discount total discounted items count was expected to be '6' "
+ $"but was actually {discountComponent.Discounts.Count}- this can be due to discount " + $"but was actually {discountComponent.Discounts.Count}- this can be due to discount "
+ $"categories settings (maxItems, weight) not being realistically set, or default " + $"categories settings (maxItems, weight) not being realistically set, or default "
+ $"discounted count being changed from '3' in StoreDiscountSystem.InitializeDiscounts." + $"discounted count being changed from '6' in StoreDiscountSystem.InitializeDiscounts."
); );
var discountedListingItems = storeComponent.FullListingsCatalog var discountedListingItems = storeComponent.FullListingsCatalog
.Where(x => x.IsCostModified) .Where(x => x.IsCostModified)

View File

@@ -71,7 +71,7 @@ public sealed class StoreDiscountSystem : EntitySystem
private IReadOnlyList<StoreDiscountData> InitializeDiscounts( private IReadOnlyList<StoreDiscountData> InitializeDiscounts(
IReadOnlyCollection<ListingDataWithCostModifiers> listings, IReadOnlyCollection<ListingDataWithCostModifiers> listings,
int totalAvailableDiscounts = 3 int totalAvailableDiscounts = 6
) )
{ {
// Get list of categories with cumulative weights. // Get list of categories with cumulative weights.

View File

@@ -1,7 +1,7 @@
- type: discountCategory - type: discountCategory
id: rareDiscounts # Dirty-cheap items that are rarely used and can be discounted to 0-ish cost to encourage usage. id: rareDiscounts # Dirty-cheap items that are rarely used and can be discounted to 0-ish cost to encourage usage.
weight: 18 weight: 18
maxItems: 2 maxItems: 4
- type: discountCategory - type: discountCategory
id: usualDiscounts # Cheap items that are used not very often. id: usualDiscounts # Cheap items that are used not very often.
@@ -10,4 +10,4 @@
- type: discountCategory - type: discountCategory
id: veryRareDiscounts # Casually used items that are widely used but can be (rarely) discounted for epic lulz. id: veryRareDiscounts # Casually used items that are widely used but can be (rarely) discounted for epic lulz.
weight: 2 weight: 2
maxItems: 1 maxItems: 2