From 0f0cbb1df59c397327ea9ef8993c784f999440ac Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 10 Feb 2025 11:00:57 +0000 Subject: [PATCH] Applied `IMinMaxValue` to MinMax --- Libraries/Core/Models/Common/MinMax.cs | 3 ++- Libraries/Core/Models/Spt/Config/RepairConfig.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/Models/Common/MinMax.cs b/Libraries/Core/Models/Common/MinMax.cs index a2e0d96a..91a4c8ee 100644 --- a/Libraries/Core/Models/Common/MinMax.cs +++ b/Libraries/Core/Models/Common/MinMax.cs @@ -1,8 +1,9 @@ +using System.Numerics; using System.Text.Json.Serialization; namespace Core.Models.Common; -public record MinMax +public record MinMax where T : IMinMaxValue { public MinMax(T min, T max) { diff --git a/Libraries/Core/Models/Spt/Config/RepairConfig.cs b/Libraries/Core/Models/Spt/Config/RepairConfig.cs index 87585a79..a07ba56d 100644 --- a/Libraries/Core/Models/Spt/Config/RepairConfig.cs +++ b/Libraries/Core/Models/Spt/Config/RepairConfig.cs @@ -1,5 +1,6 @@ using System.Text.Json.Serialization; using Core.Models.Common; +using Core.Models.Eft.Common.Tables; namespace Core.Models.Spt.Config; @@ -229,7 +230,7 @@ public record BonusValues * What dura is buff active between (min max of current max) */ [JsonPropertyName("activeDurabilityPercentMinMax")] - public MinMax ActiveDurabilityPercentMinMax + public MinMax ActiveDurabilityPercentMinMax { get; set;