ff1dfa54ae
* Do a small pass on SPT's config's to reduce warnings and cleanup * Revert * Revert EFT models * Set list as null
62 lines
950 B
C#
62 lines
950 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPTarkov.Server.Core.Models.Spt.Config;
|
|
|
|
public record HealthConfig : BaseConfig
|
|
{
|
|
[JsonPropertyName("kind")]
|
|
public override string Kind
|
|
{
|
|
get;
|
|
set;
|
|
} = "spt-health";
|
|
|
|
[JsonPropertyName("healthMultipliers")]
|
|
public required HealthMultipliers HealthMultipliers
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[JsonPropertyName("save")]
|
|
public required HealthSave Save
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
|
|
public record HealthMultipliers
|
|
{
|
|
[JsonPropertyName("death")]
|
|
public double Death
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[JsonPropertyName("blacked")]
|
|
public double Blacked
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
|
|
public record HealthSave
|
|
{
|
|
[JsonPropertyName("health")]
|
|
public bool Health
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[JsonPropertyName("effects")]
|
|
public bool Effects
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|