Moved christmasLootBoostAmount into config
This commit is contained in:
@@ -9933,7 +9933,8 @@
|
||||
"enableChristmasHideout": true,
|
||||
"enableSanta": true,
|
||||
"enableRundansEvent": true,
|
||||
"enableKhorvodEvent": true
|
||||
"enableKhorvodEvent": true,
|
||||
"christmasLootBoostAmount": 0.03
|
||||
},
|
||||
"startDay": "13",
|
||||
"startMonth": "12",
|
||||
|
||||
@@ -149,6 +149,9 @@ public record SeasonalEventSettings
|
||||
|
||||
[JsonPropertyName("enableKhorvodEvent")]
|
||||
public bool? EnableKhorvodEvent { get; set; }
|
||||
|
||||
[JsonPropertyName("christmasLootBoostAmount")]
|
||||
public double? ChristmasLootBoostAmount { get; set; }
|
||||
}
|
||||
|
||||
public record ZombieSettings
|
||||
|
||||
@@ -545,7 +545,7 @@ public class SeasonalEventService(
|
||||
// Raise the chance on christmas related spawns ever so slightly
|
||||
if (location.Value.LooseLoot is not null)
|
||||
{
|
||||
const double christmasLootBoost = 0.03;
|
||||
var christmasLootBoost = eventType.Settings?.ChristmasLootBoostAmount ?? 0.03;
|
||||
|
||||
location.Value.LooseLoot.AddTransformer(looselootData =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user