Added new ragfair properties

This commit is contained in:
Chomp
2025-01-20 12:03:24 +00:00
parent 9e42233ca2
commit 5c6515e37f
3 changed files with 7 additions and 2 deletions
@@ -1,7 +1,6 @@
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Hideout;
using Core.Models.Eft.ItemEvent;
using Core.Models.Enums;
using Core.Models.Spt.Config;
@@ -744,6 +744,12 @@ public record RagfairInfo
[JsonPropertyName("offers")]
public List<RagfairOffer>? Offers { get; set; }
[JsonPropertyName("sellSum")]
public double? SellSum { get; set; }
[JsonPropertyName("notSellSum")]
public double? NotSellSum { get; set; }
}
public record Bonus
+1 -1
View File
@@ -111,7 +111,7 @@ namespace Core.Servers
offer.Locked = true;
}
public RagfairOffer GetOffer(string offerId) {
public RagfairOffer? GetOffer(string offerId) {
return _ragfairOfferService.GetOfferByOfferId(offerId);
}