fix typing and propNames

This commit is contained in:
CWX
2025-04-10 17:42:22 +01:00
parent b2ff419f61
commit ffda6b9ce1
2 changed files with 8 additions and 6 deletions
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using SPTarkov.Server.Core.Models.Enums;
using SPTarkov.Server.Core.Utils.Json.Converters;
namespace SPTarkov.Server.Core.Models.Eft.Common.Tables;
@@ -371,28 +372,29 @@ public enum PinLockState
public record UpdBuff
{
[JsonPropertyName("Rarity")]
[JsonPropertyName("rarity")]
public string? Rarity
{
get;
set;
}
[JsonPropertyName("BuffType")]
public string? BuffType
[JsonPropertyName("buffType")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public BuffType? BuffType
{
get;
set;
}
[JsonPropertyName("Value")]
[JsonPropertyName("value")]
public double? Value
{
get;
set;
}
[JsonPropertyName("ThresholdDurability")]
[JsonPropertyName("thresholdDurability")]
public double? ThresholdDurability
{
get;
@@ -39,7 +39,7 @@ public record RepairKitsInfo
/// amount of units to reduce kit by
/// </summary>
[JsonPropertyName("count")]
public int? Count
public float? Count
{
get;
set;