Convert TemplateItem to MongoId (#436)

* Convert TemplateItem to MongoId

* Push new extensions

* Handle null mongoid's being passed to regex

* Handle null strings, fixes item events

* Updated loot generation to work with new property `composedKey`

Fixed typo in `SlotId`

* Fix missing method after merge

* Remove duplicately named MongoIDExtensions?

* Fixed location loot generation to handle impending loot json changes

* Updated location JSONs with new properties (excluding lighthouse loose loot)

* Fixed build issue with ItemTplGenerator

* use correct handing for new mongo ids

* Added helper method to improve readability

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
This commit is contained in:
Jesse
2025-07-02 11:14:04 +02:00
committed by GitHub
parent 46989aa19e
commit 54f0d0779c
89 changed files with 529 additions and 413 deletions
@@ -1552,10 +1552,11 @@ public class FenceService(
// Randomise armor durability
if (
itemDetails.Parent
is BaseClasses.ARMORED_EQUIPMENT
or BaseClasses.FACECOVER
or BaseClasses.ARMOR_PLATE
(
itemDetails.Parent == BaseClasses.ARMORED_EQUIPMENT
|| itemDetails.Parent == BaseClasses.FACECOVER
|| itemDetails.Parent == BaseClasses.ARMOR_PLATE
)
&& itemDetails.Properties.MaxDurability.GetValueOrDefault(0) > 0
)
{