Mongoid changes (#440)

* Remove old IsValidMongoId and Regex

* Convert more configs to MongoId, as well as BaseClasses

* Remove HashUtil.Generate(), replaced with new MongoId()
This commit is contained in:
Jesse
2025-07-03 16:42:16 +02:00
committed by GitHub
parent 020cfa7ab8
commit ebe8f9ded5
53 changed files with 159 additions and 291 deletions
@@ -171,7 +171,7 @@ public class LocationLifecycleService
Transition = new Transition
{
TransitionType = TransitionType.NONE,
TransitionRaidId = _hashUtil.Generate(),
TransitionRaidId = new MongoId(),
TransitionCount = 0,
VisitedLocations = [],
},
@@ -520,7 +520,7 @@ public class LocationLifecycleService
// Generate randomised reward for taking coop extract
var loot = _lootGenerator.CreateRandomLoot(_traderConfig.Fence.CoopExtractGift);
var parentId = _hashUtil.Generate();
var parentId = new MongoId();
foreach (var itemAndChildren in loot)
{
// Set all root items parent to new id