Renamed variable to improved clarity
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
"rezervbase": {},
|
||||
"tarkovstreets": {}
|
||||
},
|
||||
"staticItemWeightReduction": {
|
||||
"staticItemWeightAdjustment": {
|
||||
"bigmap": {
|
||||
"5ad5d49886f77455f9731921": 60
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@ public record LootConfig : BaseConfig
|
||||
public required Dictionary<string, Dictionary<string, double>> LooseLootSpawnPointAdjustments { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Reduce weighting of static items per location
|
||||
/// Adjust 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; }
|
||||
[JsonPropertyName("staticItemWeightAdjustment")]
|
||||
public required Dictionary<string, Dictionary<MongoId, double>> StaticItemWeightAdjustment { get; set; }
|
||||
}
|
||||
|
||||
@@ -374,7 +374,7 @@ public class PostDbLoadService(
|
||||
|
||||
protected void ReduceStaticItemWeight()
|
||||
{
|
||||
foreach (var (locationId, itemTplWeightDict) in LootConfig.StaticItemWeightReduction)
|
||||
foreach (var (locationId, itemTplWeightDict) in LootConfig.StaticItemWeightAdjustment)
|
||||
{
|
||||
databaseService
|
||||
.GetLocation(locationId)
|
||||
|
||||
Reference in New Issue
Block a user