do tryadd for insurance cost (cant have more than one of the same tpl), client handles multiple items being the same

This commit is contained in:
CWX
2025-02-01 17:02:10 +00:00
parent a9f230eed7
commit ecf9540514
3 changed files with 3 additions and 3 deletions
@@ -768,7 +768,7 @@ public class InsuranceController(
continue;
}
items.Add(
items.TryAdd(
inventoryItemsHash[itemId].Template,
_insuranceService.GetRoublePriceToInsureItemWithTrader(pmcData, inventoryItemsHash[itemId], trader)
);
@@ -175,7 +175,7 @@ public class LocationLootGenerator(
{
if(_logger.IsLogEnabled(LogLevel.Debug))
{
_logger.Debug($"`Group: {key} has no containers with< 100 % spawn chance to choose from, skipping");
_logger.Debug($"Group: {key} has no containers with < 100 % spawn chance to choose from, skipping");
}
continue;
+1 -1
View File
@@ -1080,7 +1080,7 @@ public class InventoryHelper(
if (_logger.IsLogEnabled(LogLevel.Debug))
{
_logger.Debug(
$"{moveRequest.Action} item: ${moveRequest.Item} from slotid: {matchingInventoryItem.SlotId} to container: {moveRequest.To.Container}"
$"{moveRequest.Action} item: {moveRequest.Item} from slotid: {matchingInventoryItem.SlotId} to container: {moveRequest.To.Container}"
);
}