More strings to MongoIds
Convert constructors into primary constructors Simplified logic with use of ??, ??= and method groups Cleaned up redundant conditional access qualifiers
This commit is contained in:
@@ -58,7 +58,7 @@ public class TraderController(
|
||||
}
|
||||
|
||||
// Adjust price by traderPriceMultiplier config property
|
||||
if (!TraderConfig.TraderPriceMultiplier.Approx(1, 0.001))
|
||||
if (!TraderConfig.TraderPriceMultiplier.Approx(1))
|
||||
{
|
||||
AdjustTraderItemPrices(trader, TraderConfig.TraderPriceMultiplier);
|
||||
}
|
||||
@@ -82,7 +82,7 @@ public class TraderController(
|
||||
{
|
||||
foreach (var kvp in trader.Assort?.BarterScheme)
|
||||
{
|
||||
var barterSchemeItem = kvp.Value?.FirstOrDefault()?.FirstOrDefault();
|
||||
var barterSchemeItem = kvp.Value.FirstOrDefault()?.FirstOrDefault();
|
||||
if (
|
||||
barterSchemeItem?.Template != null
|
||||
&& paymentHelper.IsMoneyTpl(barterSchemeItem.Template)
|
||||
|
||||
Reference in New Issue
Block a user