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