Enable rundans event during Christmas, add config to enable/disable

This commit is contained in:
Chomp
2025-12-12 13:51:49 +00:00
parent 4390948ff0
commit 63c15f233e
3 changed files with 16 additions and 1 deletions
@@ -9929,7 +9929,8 @@
"settings": {
"adjustBotAppearances": true,
"enableChristmasHideout": true,
"enableSanta": true
"enableSanta": true,
"enableRundansEvent": true
},
"startDay": "13",
"startMonth": "12",
@@ -140,6 +140,9 @@ public record SeasonalEventSettings
[JsonPropertyName("disableWaves")]
public List<string>? DisableWaves { get; set; }
[JsonPropertyName("enableRundansEvent")]
public bool? EnableRundansEvent { get; set; }
}
public record ZombieSettings
@@ -514,9 +514,20 @@ public class SeasonalEventService(
AdjustBotAppearanceValues(eventType.Type);
}
if (eventType.Settings?.EnableRundansEvent ?? false)
{
EnableRunnansEvent(databaseService.GetGlobals());
}
ChangeBtrToTarColaSkin();
}
protected void EnableRunnansEvent(Globals globals)
{
globals.Configuration.RunddansSettings.Active = true;
globals.Configuration.RunddansSettings.ActivePVE = true;
}
private void ChangeBtrToTarColaSkin()
{
var btrSettings = databaseService.GetGlobals().Configuration.BTRSettings;