From 1474d2b7994b2585d403c0c48b5a634fefc576c1 Mon Sep 17 00:00:00 2001 From: sp-tarkov-bot Date: Mon, 11 Aug 2025 14:13:49 +0000 Subject: [PATCH] Format Style Fixes --- .../Generators/BotEquipmentModGenerator.cs | 3 +- .../Helpers/DurabilityLimitsHelper.cs | 6 +-- .../SPTarkov.Server.Core/Utils/Watermark.cs | 48 +++++++++---------- 3 files changed, 27 insertions(+), 30 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Generators/BotEquipmentModGenerator.cs b/Libraries/SPTarkov.Server.Core/Generators/BotEquipmentModGenerator.cs index 71db9fa8..e084821e 100644 --- a/Libraries/SPTarkov.Server.Core/Generators/BotEquipmentModGenerator.cs +++ b/Libraries/SPTarkov.Server.Core/Generators/BotEquipmentModGenerator.cs @@ -176,8 +176,7 @@ public class BotEquipmentModGenerator( ); switch (plateSlotFilteringOutcome.Result) { - case Result.UNKNOWN_FAILURE - or Result.NO_DEFAULT_FILTER: + case Result.UNKNOWN_FAILURE or Result.NO_DEFAULT_FILTER: if (logger.IsLogEnabled(LogLevel.Debug)) { logger.Debug( diff --git a/Libraries/SPTarkov.Server.Core/Helpers/DurabilityLimitsHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/DurabilityLimitsHelper.cs index 0bb8c230..9e3f854b 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/DurabilityLimitsHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/DurabilityLimitsHelper.cs @@ -149,8 +149,7 @@ public class DurabilityLimitsHelper( { switch (botRole) { - case null - or "default": + case null or "default": return _botConfig.Durability.Default.Weapon.LowestMax; case "pmc": return _botConfig.Durability.Pmc.Weapon.LowestMax; @@ -168,8 +167,7 @@ public class DurabilityLimitsHelper( { switch (botRole) { - case null - or "default": + case null or "default": return _botConfig.Durability.Default.Weapon.HighestMax; case "pmc": return _botConfig.Durability.Pmc.Weapon.HighestMax; diff --git a/Libraries/SPTarkov.Server.Core/Utils/Watermark.cs b/Libraries/SPTarkov.Server.Core/Utils/Watermark.cs index de7a2053..db3a81d7 100644 --- a/Libraries/SPTarkov.Server.Core/Utils/Watermark.cs +++ b/Libraries/SPTarkov.Server.Core/Utils/Watermark.cs @@ -12,32 +12,32 @@ namespace SPTarkov.Server.Core.Utils; public class WatermarkLocale(ServerLocalisationService serverLocalisationService) { public IReadOnlyList Description { get; } = - [ - serverLocalisationService.GetText("watermark-discord_url"), - "", - serverLocalisationService.GetText("watermark-free_of_charge"), - serverLocalisationService.GetText("watermark-paid_scammed"), - serverLocalisationService.GetText("watermark-commercial_use_prohibited"), - ]; + [ + serverLocalisationService.GetText("watermark-discord_url"), + "", + serverLocalisationService.GetText("watermark-free_of_charge"), + serverLocalisationService.GetText("watermark-paid_scammed"), + serverLocalisationService.GetText("watermark-commercial_use_prohibited"), + ]; public IReadOnlyList Modding { get; } = - [ - "", - serverLocalisationService.GetText("watermark-modding_disabled"), - "", - serverLocalisationService.GetText("watermark-not_an_issue"), - serverLocalisationService.GetText("watermark-do_not_report"), - ]; + [ + "", + serverLocalisationService.GetText("watermark-modding_disabled"), + "", + serverLocalisationService.GetText("watermark-not_an_issue"), + serverLocalisationService.GetText("watermark-do_not_report"), + ]; public IReadOnlyList Warning { get; } = - [ - "", - serverLocalisationService.GetText("watermark-testing_build"), - serverLocalisationService.GetText("watermark-no_support"), - "", - $"{serverLocalisationService.GetText("watermark-report_issues_to")}:", - serverLocalisationService.GetText("watermark-issue_tracker_url"), - "", - serverLocalisationService.GetText("watermark-use_at_own_risk"), - ]; + [ + "", + serverLocalisationService.GetText("watermark-testing_build"), + serverLocalisationService.GetText("watermark-no_support"), + "", + $"{serverLocalisationService.GetText("watermark-report_issues_to")}:", + serverLocalisationService.GetText("watermark-issue_tracker_url"), + "", + serverLocalisationService.GetText("watermark-use_at_own_risk"), + ]; } [Injectable(TypePriority = OnLoadOrder.Watermark)]