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:
Chomp
2025-07-14 22:29:41 +01:00
parent 26afa19387
commit 040be2feaa
150 changed files with 482 additions and 631 deletions
@@ -334,7 +334,7 @@ public class TradeController(
};
// Ensure money is properly split to follow its max stack size limit
var curencyReward = itemHelper.SplitStackIntoSeparateItems(rootCurrencyReward);
var currencyReward = itemHelper.SplitStackIntoSeparateItems(rootCurrencyReward);
// Send mail from trader
mailSendService.SendLocalisedNpcMessageToPlayer(
@@ -344,9 +344,9 @@ public class TradeController(
randomUtil.GetArrayValue(
databaseService.GetTrader(trader).Dialogue.TryGetValue("soldItems", out var items)
? items
: new List<string>()
: []
),
curencyReward.SelectMany(x => x).ToList(),
currencyReward.SelectMany(x => x).ToList(),
timeUtil.GetHoursAsSeconds(72)
);
}