Format Style Fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user