Изменение отображения скидок в аплинке (#266)

* Better sales

* Sale item restrictions
This commit is contained in:
Aviu00
2023-08-04 16:00:49 +03:00
committed by Aviu00
parent b34ade60d8
commit 0c098d9c53
5 changed files with 65 additions and 2 deletions

View File

@@ -95,10 +95,15 @@ public partial class ListingData : IEquatable<ListingData>, ICloneable
public int RestockTime;
// WD START
[DataField("saleLimit")]
public int SaleLimit;
[DataField("saleBlacklist")]
public bool SaleBlacklist;
public int SaleAmount;
public Dictionary<string, FixedPoint2> OldCost = new();
// WD END
public bool Equals(ListingData? listing)
@@ -155,8 +160,10 @@ public partial class ListingData : IEquatable<ListingData>, ICloneable
PurchaseAmount = PurchaseAmount,
RestockTime = RestockTime,
// WD START
SaleLimit = SaleLimit,
SaleBlacklist = SaleBlacklist,
SaleAmount = SaleAmount,
OldCost = OldCost,
// WD END
};
}