Renamed variable to improved clarity
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user