Moved christmasLootBoostAmount into config

This commit is contained in:
Chomp
2025-12-26 13:38:19 +00:00
committed by Archangel
parent b0fb0594a3
commit 60290dda2e
3 changed files with 6 additions and 2 deletions
@@ -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 =>
{