Format Style Fixes

This commit is contained in:
sp-tarkov-bot
2025-08-11 14:13:49 +00:00
parent 76e91047d6
commit 1474d2b799
3 changed files with 27 additions and 30 deletions
@@ -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(
@@ -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;
@@ -12,32 +12,32 @@ namespace SPTarkov.Server.Core.Utils;
public class WatermarkLocale(ServerLocalisationService serverLocalisationService)
{
public IReadOnlyList<string> 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<string> 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<string> 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)]