Begin initial work to make Hideout id's MongoId's (#447)
* Begin initial work to make Hideout id's MongoId's * Set template to mongo * More conversions
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using SPTarkov.DI.Annotations;
|
||||
using SPTarkov.Server.Core.Helpers;
|
||||
using SPTarkov.Server.Core.Models.Common;
|
||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||
using SPTarkov.Server.Core.Models.Eft.Hideout;
|
||||
using SPTarkov.Server.Core.Models.Enums;
|
||||
@@ -20,7 +21,7 @@ public class HideoutCraftQuestIdGenerator(
|
||||
DatabaseImporter _databaseImporter
|
||||
)
|
||||
{
|
||||
private static readonly HashSet<string> _blacklistedProductions =
|
||||
private static readonly HashSet<MongoId> _blacklistedProductions =
|
||||
[
|
||||
"6617cdb6b24b0ea24505f618", // Old event quest production "Radio Repeater" alt recipe
|
||||
"66140c4a9688754de10dac07", // Old event quest production "Documents with decrypted data"
|
||||
@@ -29,13 +30,14 @@ public class HideoutCraftQuestIdGenerator(
|
||||
"67093210d514d26f8408612b", // Old event quest production "TG-Vi-24 true vaccine"
|
||||
];
|
||||
|
||||
private static readonly Dictionary<string, string> _forcedQuestToProductionAssociations = new()
|
||||
{
|
||||
// KEY = PRODUCTION, VALUE = QUEST
|
||||
{ "63a571802116d261d2336cd1", "625d6ffaf7308432be1d44c5" }, // Network Provider - Part 2
|
||||
};
|
||||
private static readonly Dictionary<MongoId, MongoId> _forcedQuestToProductionAssociations =
|
||||
new()
|
||||
{
|
||||
// KEY = PRODUCTION, VALUE = QUEST
|
||||
{ "63a571802116d261d2336cd1", "625d6ffaf7308432be1d44c5" }, // Network Provider - Part 2
|
||||
};
|
||||
|
||||
private readonly Dictionary<string, string> _questProductionMap = new();
|
||||
private readonly Dictionary<MongoId, MongoId> _questProductionMap = new();
|
||||
private readonly List<QuestProductionOutput> _questProductionOutputList = [];
|
||||
|
||||
public async Task Run()
|
||||
@@ -238,9 +240,9 @@ public class HideoutCraftQuestIdGenerator(
|
||||
|
||||
public class QuestProductionOutput
|
||||
{
|
||||
public string QuestId { get; set; }
|
||||
public MongoId QuestId { get; set; }
|
||||
|
||||
public string ItemTemplate { get; set; }
|
||||
public MongoId ItemTemplate { get; set; }
|
||||
|
||||
public double Quantity { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user