.NET Format Style Fixes

This commit is contained in:
chompDev
2025-07-03 22:06:04 +00:00
committed by Format Bot
parent abe290b1eb
commit 973ea857f9
7 changed files with 27 additions and 7 deletions
@@ -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;
}
@@ -58,7 +58,12 @@ public class PmcWaveGenerator(
/// <param name="location"> Location Object </param>
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;
}
@@ -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
@@ -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<BotConfig>();
@@ -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;
@@ -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;
}
@@ -123,7 +123,8 @@ public class DatabaseService(
/// <returns> assets/database/locations/ </returns>
public Location? GetLocation(string locationId)
{
var desiredLocation = GetLocations()?.GetByJsonProp<Location>(locationId.ToLowerInvariant());
var desiredLocation = GetLocations()
?.GetByJsonProp<Location>(locationId.ToLowerInvariant());
if (desiredLocation == null)
{
_logger.Error(