diff --git a/Content.IntegrationTests/Tests/StoreTests.cs b/Content.IntegrationTests/Tests/StoreTests.cs index 877db1d9a0..3f010245d8 100644 --- a/Content.IntegrationTests/Tests/StoreTests.cs +++ b/Content.IntegrationTests/Tests/StoreTests.cs @@ -79,11 +79,11 @@ public sealed class StoreTests var discountComponent = entManager.GetComponent(pda); Assert.That( discountComponent.Discounts, - Has.Exactly(3).Items, - $"After applying discount total discounted items count was expected to be '3' " + Has.Exactly(6).Items, + $"After applying discount total discounted items count was expected to be '6' " + $"but was actually {discountComponent.Discounts.Count}- this can be due to discount " + $"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 .Where(x => x.IsCostModified) diff --git a/Content.Server/StoreDiscount/Systems/StoreDiscountSystem.cs b/Content.Server/StoreDiscount/Systems/StoreDiscountSystem.cs index 9b4a0481aa..c993c14694 100644 --- a/Content.Server/StoreDiscount/Systems/StoreDiscountSystem.cs +++ b/Content.Server/StoreDiscount/Systems/StoreDiscountSystem.cs @@ -71,7 +71,7 @@ public sealed class StoreDiscountSystem : EntitySystem private IReadOnlyList InitializeDiscounts( IReadOnlyCollection listings, - int totalAvailableDiscounts = 3 + int totalAvailableDiscounts = 6 ) { // Get list of categories with cumulative weights. diff --git a/Resources/Prototypes/Catalog/discount_categories.yml b/Resources/Prototypes/Catalog/discount_categories.yml index 5c512e9009..8e1ef010f8 100644 --- a/Resources/Prototypes/Catalog/discount_categories.yml +++ b/Resources/Prototypes/Catalog/discount_categories.yml @@ -1,7 +1,7 @@ - type: discountCategory id: rareDiscounts # Dirty-cheap items that are rarely used and can be discounted to 0-ish cost to encourage usage. weight: 18 - maxItems: 2 + maxItems: 4 - type: discountCategory id: usualDiscounts # Cheap items that are used not very often. @@ -10,4 +10,4 @@ - type: discountCategory id: veryRareDiscounts # Casually used items that are widely used but can be (rarely) discounted for epic lulz. weight: 2 - maxItems: 1 + maxItems: 2