]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Increase syndicate uplink discount amount to 6. (#33950)
authorScarKy0 <106310278+ScarKy0@users.noreply.github.com>
Sat, 21 Dec 2024 02:14:08 +0000 (03:14 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Dec 2024 02:14:08 +0000 (20:14 -0600)
* Increase uplink discounts from 3 to 7

* nevermind, 6

Content.IntegrationTests/Tests/StoreTests.cs
Content.Server/StoreDiscount/Systems/StoreDiscountSystem.cs
Resources/Prototypes/Catalog/discount_categories.yml

index 877db1d9a02d350adf65d18a072bb742461ebc00..3f010245d8936ad176945caba61b1dbff77d3a57 100644 (file)
@@ -79,11 +79,11 @@ public sealed class StoreTests
             var discountComponent = entManager.GetComponent<StoreDiscountComponent>(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)
index 9b4a0481aa2e6fc1bff5541867f17efbe93a98a2..c993c146948a0f7db4630672f643d6bc198dcc1e 100644 (file)
@@ -71,7 +71,7 @@ public sealed class StoreDiscountSystem : EntitySystem
 
     private IReadOnlyList<StoreDiscountData> InitializeDiscounts(
         IReadOnlyCollection<ListingDataWithCostModifiers> listings,
-        int totalAvailableDiscounts = 3
+        int totalAvailableDiscounts = 6
     )
     {
         // Get list of categories with cumulative weights.
index 5c512e9009b8b6a31f1fc3ac915d4d067e63f5a3..8e1ef010f87df604dbc35031136bc270af8542b7 100644 (file)
@@ -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