Applied IMinMaxValue to MinMax<T>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
using System.Numerics;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Core.Models.Common;
|
||||
|
||||
public record MinMax<T>
|
||||
public record MinMax<T> where T : IMinMaxValue<T>
|
||||
{
|
||||
public MinMax(T min, T max)
|
||||
{
|
||||
|
||||
@@ -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<double> ActiveDurabilityPercentMinMax
|
||||
public MinMax<int> ActiveDurabilityPercentMinMax
|
||||
{
|
||||
get;
|
||||
set;
|
||||
|
||||
Reference in New Issue
Block a user