Fixed infection rate value not applying

This commit is contained in:
Dev 2024-11-04 20:35:35 +00:00
parent 5cc541bc9e
commit 5ed4802d9e
2 changed files with 4 additions and 2 deletions

View File

@ -23207,7 +23207,7 @@
"Woods": 0,
"bigmap": 0,
"factory4": 0,
"laboratory": 100
"laboratory": 0
},
"bot_presets": [
{

View File

@ -438,7 +438,9 @@ export class SeasonalEventService {
protected configureZombies(zombieSettings: IZombieSettings) {
for (const locationKey in zombieSettings.mapInfectionAmount) {
this.databaseService.getLocation(locationKey).base.Events.Halloween2024.InfectionPercentage =
this.databaseService.getLocation(locationKey.toLowerCase()).base.Events.Halloween2024.InfectionPercentage =
zombieSettings.mapInfectionAmount[locationKey];
this.databaseService.getGlobals().LocationInfection[locationKey] =
zombieSettings.mapInfectionAmount[locationKey];
}