using Content.Shared.Store; namespace Content.Server.Store.Conditions; /// /// Only allows a listing to be purchased a certain amount of times. /// public sealed partial class ListingLimitedStockCondition : ListingCondition { /// /// The amount of times this listing can be purchased. /// [DataField("stock", required: true)] public int Stock; public override bool Condition(ListingConditionArgs args) { return args.Listing.PurchaseAmount < Stock; } }