From ea0b1dab08646c9cb381ab5ad7333cd1aa82a33d Mon Sep 17 00:00:00 2001 From: chompDev <27521899+chompDev@users.noreply.github.com> Date: Tue, 24 Jun 2025 18:23:28 +0000 Subject: [PATCH] .NET Format Style Fixes --- .../Services/SeasonalEventService.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs b/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs index f1ce16d5..752ed530 100644 --- a/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/SeasonalEventService.cs @@ -806,18 +806,22 @@ public class SeasonalEventService( foreach (var (locationId, infectionPercentage) in zombieSettings.MapInfectionAmount) { // calculate a random value unless the rate is 100 - double randomInfectionPercentage = infectionPercentage == 100 - ? infectionPercentage - : Convert.ToDouble(_randomUtil.GetInt(Convert.ToInt32(infectionPercentage), 100)); + double randomInfectionPercentage = + infectionPercentage == 100 + ? infectionPercentage + : Convert.ToDouble( + _randomUtil.GetInt(Convert.ToInt32(infectionPercentage), 100) + ); if (_logger.IsLogEnabled(LogLevel.Debug)) - _logger.Debug($"Percent infected from map {locationId} is {randomInfectionPercentage}"); + _logger.Debug( + $"Percent infected from map {locationId} is {randomInfectionPercentage}" + ); // Infection rates sometimes apply to multiple maps, e.g. Factory day/night or Sandbox/sandbox_high // Get the list of maps that should have infection value applied to their base // 90% of locations are just 1 map e.g. bigmap = customs var mappedLocations = GetLocationFromInfectedLocation(locationId); foreach (var locationKey in mappedLocations) { - _databaseService .GetLocation(locationKey) .Base.Events.Halloween2024.InfectionPercentage = randomInfectionPercentage;