Format Style Fixes

This commit is contained in:
sp-tarkov-bot
2025-12-14 14:06:08 +00:00
parent 40f8ed1eb0
commit 250c2a5398
4 changed files with 9 additions and 7 deletions
@@ -396,7 +396,8 @@ public class DialogueController(
var checkTime = message.DateTime + (message.MaxStorageTime ?? 0);
return timeNow < checkTime;
})
.ToList() ?? [];
.ToList()
?? [];
}
/// <summary>
@@ -1822,7 +1822,8 @@ public class BotEquipmentModGenerator(
.Filter.All(tpl =>
itemHelper.IsOfBaseclasses(tpl, whitelistedSightTypes) || itemHelper.IsOfBaseclass(tpl, BaseClasses.MOUNT)
)
) ?? false
)
?? false
)
// Add mod to allowed list
{
@@ -716,10 +716,8 @@ public class BotWeaponGenerator(
// Try to get cartridges from slots array first, if none found, try Cartridges array
var cartridges =
magazineTemplate.Value.Properties.Slots.FirstOrDefault()?.Properties?.Filters?.FirstOrDefault()?.Filter ?? magazineTemplate
.Value.Properties.Cartridges.FirstOrDefault()
?.Properties?.Filters?.FirstOrDefault()
?.Filter;
magazineTemplate.Value.Properties.Slots.FirstOrDefault()?.Properties?.Filters?.FirstOrDefault()?.Filter
?? magazineTemplate.Value.Properties.Cartridges.FirstOrDefault()?.Properties?.Filters?.FirstOrDefault()?.Filter;
return cartridges ?? [];
}
@@ -585,7 +585,9 @@ public class ProfileFixerService(
if (profileBonus is null)
{
// No bonus in profile, add it
logger.Debug($"Profile has level: {currentLevel} area: {profileArea.Type} but no bonus found, adding: {bonus.Type}");
logger.Debug(
$"Profile has level: {currentLevel} area: {profileArea.Type} but no bonus found, adding: {bonus.Type}"
);
hideoutHelper.ApplyPlayerUpgradesBonus(pmcProfile, bonus);
}
}