Files
SPT-Server-Build/Libraries/Core/Models/Spt/Config/PmcChatResponse.cs
T
2025-02-07 19:36:17 +00:00

66 lines
1.2 KiB
C#

using System.Text.Json.Serialization;
namespace Core.Models.Spt.Config;
public record PmcChatResponse : BaseConfig
{
[JsonPropertyName("kind")]
public string Kind
{
get;
set;
} = "spt-pmcchatresponse";
[JsonPropertyName("victim")]
public ResponseSettings Victim
{
get;
set;
}
[JsonPropertyName("killer")]
public ResponseSettings Killer
{
get;
set;
}
}
public record ResponseSettings
{
[JsonPropertyName("responseChancePercent")]
public double ResponseChancePercent
{
get;
set;
}
[JsonPropertyName("responseTypeWeights")]
public Dictionary<string, double> ResponseTypeWeights
{
get;
set;
}
[JsonPropertyName("stripCapitalisationChancePercent")]
public double StripCapitalisationChancePercent
{
get;
set;
}
[JsonPropertyName("allCapsChancePercent")]
public double AllCapsChancePercent
{
get;
set;
}
[JsonPropertyName("appendBroToMessageEndChancePercent")]
public double AppendBroToMessageEndChancePercent
{
get;
set;
}
}