Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Models/Spt/Config/LostOnDeathConfig.cs
T
Chris Adamson 457e7cd36c Fix: Killing the client will no longer save your items (#557)
* alt-f4 is for timmys and rats, not chads like Chomp

* peer review fixes

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-08-19 16:39:20 +00:00

82 lines
2.2 KiB
C#

using System.Text.Json.Serialization;
namespace SPTarkov.Server.Core.Models.Spt.Config;
public record LostOnDeathConfig : BaseConfig
{
[JsonPropertyName("kind")]
public override string Kind { get; set; } = "spt-lostondeath";
/// <summary>
/// What equipment in each slot should be lost on death
/// </summary>
[JsonPropertyName("equipment")]
public required LostEquipment Equipment { get; set; }
/// <summary>
/// Should special slot items be removed from quest inventory on death e.g. wifi camera/markers
/// </summary>
[JsonPropertyName("specialSlotItems")]
public bool SpecialSlotItems { get; set; }
/// <summary>
/// Should quest items be removed from quest inventory on death
/// </summary>
[JsonPropertyName("questItems")]
public bool QuestItems { get; set; }
[JsonPropertyName("wipeOnRaidStart")]
public bool WipeOnRaidStart { get; set; }
}
public record LostEquipment
{
[JsonExtensionData]
public Dictionary<string, object> ExtensionData { get; init; } = [];
[JsonPropertyName("ArmBand")]
public bool ArmBand { get; set; }
[JsonPropertyName("Headwear")]
public bool Headwear { get; set; }
[JsonPropertyName("Earpiece")]
public bool Earpiece { get; set; }
[JsonPropertyName("FaceCover")]
public bool FaceCover { get; set; }
[JsonPropertyName("ArmorVest")]
public bool ArmorVest { get; set; }
[JsonPropertyName("Eyewear")]
public bool Eyewear { get; set; }
[JsonPropertyName("TacticalVest")]
public bool TacticalVest { get; set; }
[JsonPropertyName("PocketItems")]
public bool PocketItems { get; set; }
[JsonPropertyName("Backpack")]
public bool Backpack { get; set; }
[JsonPropertyName("Holster")]
public bool Holster { get; set; }
[JsonPropertyName("FirstPrimaryWeapon")]
public bool FirstPrimaryWeapon { get; set; }
[JsonPropertyName("SecondPrimaryWeapon")]
public bool SecondPrimaryWeapon { get; set; }
[JsonPropertyName("Scabbard")]
public bool Scabbard { get; set; }
[JsonPropertyName("Compass")]
public bool Compass { get; set; }
[JsonPropertyName("SecuredContainer")]
public bool SecuredContainer { get; set; }
}