diff --git a/project/assets/configs/seasonalevents.json b/project/assets/configs/seasonalevents.json index 9e91d9fd..a3469876 100644 --- a/project/assets/configs/seasonalevents.json +++ b/project/assets/configs/seasonalevents.json @@ -1306,6 +1306,7 @@ "endMonth": "11", "settings": { "enableSummoning": false, + "removeEntryRequirement": ["laboratory"], "zombieSettings": { "enabled": true, "mapInfectionAmount": { @@ -1346,7 +1347,20 @@ "startDay": "1", "startMonth": "4", "endDay": "2", - "endMonth": "4" + "endMonth": "4", + "setting": { + "removeEntryRequirement": ["laboratory"], + "zombieSettings": { + "enabled": true, + "mapInfectionAmount": { + "laboratory": 100 + }, + "disableBosses": [ + "laboratory" + ], + "disableWaves": [] + } + } } ] } diff --git a/project/src/services/SeasonalEventService.ts b/project/src/services/SeasonalEventService.ts index 680b3257..54e700b7 100644 --- a/project/src/services/SeasonalEventService.ts +++ b/project/src/services/SeasonalEventService.ts @@ -355,6 +355,9 @@ export class SeasonalEventService { if (event.settings?.zombieSettings?.enabled) { this.configureZombies(event.settings?.zombieSettings); } + if (event.settings.removeEntryRequirement) { + this.removeEntryRequirement(event.settings.removeEntryRequirement); + } this.addPumpkinsToScavBackpacks(); this.adjustTraderIcons(event.type); break; @@ -395,6 +398,14 @@ export class SeasonalEventService { } } + protected removeEntryRequirement(locationIds: string[]) { + for (const locationId of locationIds) { + const location = this.databaseService.getLocation(locationId); + location.base.AccessKeys = []; + location.base.AccessKeysPvE = []; + } + } + public givePlayerSeasonalGifts(sessionId: string): void { if (this.currentlyActiveEvents) { const globalConfig = this.databaseService.getGlobals().config;