diff --git a/Libraries/SPTarkov.Server.Core/Controllers/ProfileController.cs b/Libraries/SPTarkov.Server.Core/Controllers/ProfileController.cs index 02b4bc8b..fd51742d 100644 --- a/Libraries/SPTarkov.Server.Core/Controllers/ProfileController.cs +++ b/Libraries/SPTarkov.Server.Core/Controllers/ProfileController.cs @@ -207,7 +207,10 @@ public class ProfileController( foreach (var profile in allProfiles) { var pmcProfile = profile?.CharacterData?.PmcData; - if (!pmcProfile?.Info?.LowerNickname?.Contains(request.Nickname.ToLowerInvariant()) ?? false) + if ( + !pmcProfile?.Info?.LowerNickname?.Contains(request.Nickname.ToLowerInvariant()) + ?? false + ) { continue; } diff --git a/Libraries/SPTarkov.Server.Core/Generators/PmcWaveGenerator.cs b/Libraries/SPTarkov.Server.Core/Generators/PmcWaveGenerator.cs index c4a220fa..36d7e9c5 100644 --- a/Libraries/SPTarkov.Server.Core/Generators/PmcWaveGenerator.cs +++ b/Libraries/SPTarkov.Server.Core/Generators/PmcWaveGenerator.cs @@ -58,7 +58,12 @@ public class PmcWaveGenerator( /// Location Object public void ApplyWaveChangesToMap(LocationBase location) { - if (!_pmcConfig.CustomPmcWaves.TryGetValue(location.Id.ToLowerInvariant(), out var pmcWavesToAdd)) + if ( + !_pmcConfig.CustomPmcWaves.TryGetValue( + location.Id.ToLowerInvariant(), + out var pmcWavesToAdd + ) + ) { return; } diff --git a/Libraries/SPTarkov.Server.Core/Generators/RagfairOfferGenerator.cs b/Libraries/SPTarkov.Server.Core/Generators/RagfairOfferGenerator.cs index 39985945..9f2a7708 100644 --- a/Libraries/SPTarkov.Server.Core/Generators/RagfairOfferGenerator.cs +++ b/Libraries/SPTarkov.Server.Core/Generators/RagfairOfferGenerator.cs @@ -495,7 +495,9 @@ public class RagfairOfferGenerator( } var plateSlots = presetWithChildren - .Where(item => itemHelper.GetRemovablePlateSlotIds().Contains(item.SlotId?.ToLowerInvariant())) + .Where(item => + itemHelper.GetRemovablePlateSlotIds().Contains(item.SlotId?.ToLowerInvariant()) + ) .ToList(); if (plateSlots.Count == 0) // Has no plate slots e.g. "front_plate", exit diff --git a/Libraries/SPTarkov.Server.Core/Helpers/BotGeneratorHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/BotGeneratorHelper.cs index 82ecc803..46898095 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/BotGeneratorHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/BotGeneratorHelper.cs @@ -37,7 +37,11 @@ public class BotGeneratorHelper( EquipmentSlots.ArmBand.ToString(), ]; - private static readonly string[] _pmcTypes = [Sides.PmcBear.ToLowerInvariant(), Sides.PmcUsec.ToLowerInvariant()]; + private static readonly string[] _pmcTypes = + [ + Sides.PmcBear.ToLowerInvariant(), + Sides.PmcUsec.ToLowerInvariant(), + ]; private readonly BotConfig _botConfig = _configServer.GetConfig(); diff --git a/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.cs b/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.cs index 18e2f3a9..1a75fad3 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.cs @@ -210,7 +210,8 @@ public class GiveSptCommand( .GetItems() .Where(IsItemAllowed) .FirstOrDefault(i => - (localizedGlobal[$"{i?.Id} Name"]?.ToLowerInvariant() ?? i.Properties.Name) == item + (localizedGlobal[$"{i?.Id} Name"]?.ToLowerInvariant() ?? i.Properties.Name) + == item ) .Id : item; diff --git a/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs index 16d65909..f475e053 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs @@ -390,7 +390,11 @@ public class ItemHelper( } // Check if item has slots that match soft insert name ids - if (itemDbDetails.Value.Properties.Slots.Any(slot => IsSoftInsertId(slot.Name.ToLowerInvariant()))) + if ( + itemDbDetails.Value.Properties.Slots.Any(slot => + IsSoftInsertId(slot.Name.ToLowerInvariant()) + ) + ) { return true; } diff --git a/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs b/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs index 1e01bd7a..ce9d7d88 100644 --- a/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs @@ -123,7 +123,8 @@ public class DatabaseService( /// assets/database/locations/ public Location? GetLocation(string locationId) { - var desiredLocation = GetLocations()?.GetByJsonProp(locationId.ToLowerInvariant()); + var desiredLocation = GetLocations() + ?.GetByJsonProp(locationId.ToLowerInvariant()); if (desiredLocation == null) { _logger.Error(