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": { "settings": {
"adjustBotAppearances": true, "adjustBotAppearances": true,
"enableChristmasHideout": true, "enableChristmasHideout": true,
"enableSanta": true "enableSanta": true,
"enableRundansEvent": true
}, },
"startDay": "13", "startDay": "13",
"startMonth": "12", "startMonth": "12",
@@ -140,6 +140,9 @@ public record SeasonalEventSettings
[JsonPropertyName("disableWaves")] [JsonPropertyName("disableWaves")]
public List<string>? DisableWaves { get; set; } public List<string>? DisableWaves { get; set; }
[JsonPropertyName("enableRundansEvent")]
public bool? EnableRundansEvent { get; set; }
} }
public record ZombieSettings public record ZombieSettings
@@ -514,9 +514,20 @@ public class SeasonalEventService(
AdjustBotAppearanceValues(eventType.Type); AdjustBotAppearanceValues(eventType.Type);
} }
if (eventType.Settings?.EnableRundansEvent ?? false)
{
EnableRunnansEvent(databaseService.GetGlobals());
}
ChangeBtrToTarColaSkin(); ChangeBtrToTarColaSkin();
} }
protected void EnableRunnansEvent(Globals globals)
{
globals.Configuration.RunddansSettings.Active = true;
globals.Configuration.RunddansSettings.ActivePVE = true;
}
private void ChangeBtrToTarColaSkin() private void ChangeBtrToTarColaSkin()
{ {
var btrSettings = databaseService.GetGlobals().Configuration.BTRSettings; var btrSettings = databaseService.GetGlobals().Configuration.BTRSettings;