Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Models/Spt/Config/HealthConfig.cs
T
DrakiaXYZ d375879a3a Fix post-raid health (#661)
* Fix post-raid health
- Re-add death penalty for limbs
- Correctly set body part HP to 1 for cursed death only
- Use the server profile body part max HP for calculating penalties
- Never modify the body part max HP on the profile
- Remove ResetMaxLimbHp as it's unnecessary if we never update max HP elsewhere

* Formatting

* Remove unnecessary null coalescing

* Stupid formatting

---------

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
2025-10-26 08:47:40 +00:00

31 lines
706 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("blacked")]
public double Blacked { get; set; }
[JsonPropertyName("death")]
public double Death { get; set; }
}
public record HealthSave
{
[JsonPropertyName("health")]
public bool Health { get; set; }
}