Uplink sales (#264)
This commit is contained in:
@@ -94,6 +94,13 @@ public partial class ListingData : IEquatable<ListingData>, ICloneable
|
||||
[DataField("restockTime")]
|
||||
public int RestockTime;
|
||||
|
||||
// WD START
|
||||
[DataField("saleBlacklist")]
|
||||
public bool SaleBlacklist;
|
||||
|
||||
public int SaleAmount;
|
||||
// WD END
|
||||
|
||||
public bool Equals(ListingData? listing)
|
||||
{
|
||||
if (listing == null)
|
||||
@@ -147,6 +154,10 @@ public partial class ListingData : IEquatable<ListingData>, ICloneable
|
||||
ProductEvent = ProductEvent,
|
||||
PurchaseAmount = PurchaseAmount,
|
||||
RestockTime = RestockTime,
|
||||
// WD START
|
||||
SaleBlacklist = SaleBlacklist,
|
||||
SaleAmount = SaleAmount,
|
||||
// WD END
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Dictionary;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.White.Sales;
|
||||
|
||||
namespace Content.Shared.Store;
|
||||
|
||||
@@ -38,4 +39,7 @@ public sealed partial class StorePresetPrototype : IPrototype
|
||||
/// </summary>
|
||||
[DataField("currencyWhitelist", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<CurrencyPrototype>))]
|
||||
public HashSet<string> CurrencyWhitelist { get; private set; } = new();
|
||||
|
||||
[DataField("sales")]
|
||||
public SalesSpecifier Sales { get; private set; } = new(); // WD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user