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:
@@ -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
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user