Enable rundans event during Christmas, add config to enable/disable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user