Renamed variable to improved clarity

This commit is contained in:
Chomp
2025-10-03 20:33:29 +01:00
parent b25d0dc148
commit 6311f7a355
3 changed files with 5 additions and 5 deletions
@@ -9,7 +9,7 @@
"rezervbase": {}, "rezervbase": {},
"tarkovstreets": {} "tarkovstreets": {}
}, },
"staticItemWeightReduction": { "staticItemWeightAdjustment": {
"bigmap": { "bigmap": {
"5ad5d49886f77455f9731921": 60 "5ad5d49886f77455f9731921": 60
} }
@@ -22,9 +22,9 @@ public record LootConfig : BaseConfig
public required Dictionary<string, Dictionary<string, double>> LooseLootSpawnPointAdjustments { get; set; } public required Dictionary<string, Dictionary<string, double>> LooseLootSpawnPointAdjustments { get; set; }
/// <summary> /// <summary>
/// Reduce weighting of static items per location /// Adjust weighting of static items per location
/// // value = percentage of original weight to use /// // value = percentage of original weight to use
/// </summary> /// </summary>
[JsonPropertyName("staticItemWeightReduction")] [JsonPropertyName("staticItemWeightAdjustment")]
public required Dictionary<string, Dictionary<MongoId, double>> StaticItemWeightReduction { get; set; } public required Dictionary<string, Dictionary<MongoId, double>> StaticItemWeightAdjustment { get; set; }
} }
@@ -374,7 +374,7 @@ public class PostDbLoadService(
protected void ReduceStaticItemWeight() protected void ReduceStaticItemWeight()
{ {
foreach (var (locationId, itemTplWeightDict) in LootConfig.StaticItemWeightReduction) foreach (var (locationId, itemTplWeightDict) in LootConfig.StaticItemWeightAdjustment)
{ {
databaseService databaseService
.GetLocation(locationId) .GetLocation(locationId)