d375879a3a
* 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>
31 lines
706 B
C#
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; }
|
|
}
|