ff1dfa54ae
* Do a small pass on SPT's config's to reduce warnings and cleanup * Revert * Revert EFT models * Set list as null
152 lines
2.5 KiB
C#
152 lines
2.5 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;
|
|
}
|
|
}
|
|
|
|
public record LostEquipment
|
|
{
|
|
[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;
|
|
}
|
|
}
|