Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Models/Spt/Config/LootConfig.cs
T
Chomp 6e2286ca5b Added system to allow adjustment of static spawn weights via config
reduced `Power substation utility cabin key` on customs to 60% of original weight
2025-10-03 20:28:39 +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>
/// Reduce weighting of static items per location
/// // value = percentage of original weight to use
/// </summary>
[JsonPropertyName("staticItemWeightReduction")]
public required Dictionary<string, Dictionary<MongoId, double>> StaticItemWeightReduction { get; set; }
}