Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Models/Spt/Config/LootConfig.cs
T
2025-10-03 20:33:29 +01:00

31 lines
1.1 KiB
C#

using System.Text.Json.Serialization;
using SPTarkov.Server.Core.Models.Common;
using SPTarkov.Server.Core.Models.Eft.Common;
namespace SPTarkov.Server.Core.Models.Spt.Config;
public record LootConfig : BaseConfig
{
[JsonPropertyName("kind")]
public override string Kind { get; set; } = "spt-loot";
/// <summary>
/// Spawn positions to add into a map, key=mapid
/// </summary>
[JsonPropertyName("looseLoot")]
public required Dictionary<string, Spawnpoint[]> LooseLoot { get; set; }
/// <summary>
/// Loose loot probability adjustments to apply on game start
/// </summary>
[JsonPropertyName("looseLootSpawnPointAdjustments")]
public required Dictionary<string, Dictionary<string, double>> LooseLootSpawnPointAdjustments { get; set; }
/// <summary>
/// Adjust weighting of static items per location
/// // value = percentage of original weight to use
/// </summary>
[JsonPropertyName("staticItemWeightAdjustment")]
public required Dictionary<string, Dictionary<MongoId, double>> StaticItemWeightAdjustment { get; set; }
}