Use correct new MongoId() instead of hashutil
This commit is contained in:
@@ -22,7 +22,6 @@ namespace SPTarkov.Server.Core.Controllers;
|
||||
[Injectable]
|
||||
public class HideoutController(
|
||||
ISptLogger<HideoutController> _logger,
|
||||
HashUtil _hashUtil,
|
||||
TimeUtil _timeUtil,
|
||||
DatabaseService _databaseService,
|
||||
InventoryHelper _inventoryHelper,
|
||||
@@ -1189,7 +1188,7 @@ public class HideoutController(
|
||||
// Create root item
|
||||
var rewardToAdd = new Item
|
||||
{
|
||||
Id = _hashUtil.Generate(),
|
||||
Id = new MongoId(),
|
||||
Template = recipe.EndProduct,
|
||||
Upd = new Upd { StackObjectsCount = recipe.Count },
|
||||
};
|
||||
@@ -1207,7 +1206,7 @@ public class HideoutController(
|
||||
if (!rewardIsPreset)
|
||||
{
|
||||
itemAndChildrenToSendToPlayer.Add(
|
||||
[new Item { Id = _hashUtil.Generate(), Template = recipe.EndProduct }]
|
||||
[new Item { Id = new MongoId(), Template = recipe.EndProduct }]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1719,7 +1718,7 @@ public class HideoutController(
|
||||
// No child, add it
|
||||
if (existingMannequin is null)
|
||||
{
|
||||
var standId = _hashUtil.Generate();
|
||||
var standId = new MongoId();
|
||||
var mannequinToAdd = new Item
|
||||
{
|
||||
Id = standId,
|
||||
@@ -1732,7 +1731,7 @@ public class HideoutController(
|
||||
// Add pocket child item
|
||||
var mannequinPocketItemToAdd = new Item
|
||||
{
|
||||
Id = _hashUtil.Generate(),
|
||||
Id = new MongoId(),
|
||||
Template = pmcData
|
||||
.Inventory.Items.FirstOrDefault(item =>
|
||||
item.SlotId == "Pockets" && item.ParentId == pmcData.Inventory.Equipment
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using SPTarkov.DI.Annotations;
|
||||
using SPTarkov.Server.Core.Extensions;
|
||||
using SPTarkov.Server.Core.Helpers;
|
||||
using SPTarkov.Server.Core.Models.Common;
|
||||
using SPTarkov.Server.Core.Models.Eft.Common;
|
||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||
using SPTarkov.Server.Core.Models.Eft.ItemEvent;
|
||||
@@ -25,15 +26,12 @@ public class TradeController(
|
||||
TradeHelper _tradeHelper,
|
||||
TimeUtil _timeUtil,
|
||||
RandomUtil _randomUtil,
|
||||
HashUtil _hashUtil,
|
||||
ItemHelper _itemHelper,
|
||||
ProfileHelper _profileHelper,
|
||||
RagfairOfferHelper _ragfairOfferHelper,
|
||||
TraderHelper _traderHelper,
|
||||
RagfairServer _ragfairServer,
|
||||
HttpResponseUtil _httpResponseUtil,
|
||||
ServerLocalisationService _serverLocalisationService,
|
||||
RagfairPriceService _ragfairPriceService,
|
||||
MailSendService _mailSendService,
|
||||
ConfigServer _configServer
|
||||
)
|
||||
@@ -330,7 +328,7 @@ public class TradeController(
|
||||
// Create single currency item with all currency on it
|
||||
var rootCurrencyReward = new Item
|
||||
{
|
||||
Id = _hashUtil.Generate(),
|
||||
Id = new MongoId(),
|
||||
Template = Money.ROUBLES,
|
||||
Upd = new Upd { StackObjectsCount = roublesToSend },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user