Fix insurance return all child items of an item (ammo in mags/chamber)

This commit is contained in:
Dev 2024-01-12 12:32:04 +00:00
parent 6e4d5d1aca
commit d92f30d281
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,7 @@
"54cb57776803fa99248b456e": 85
},
"blacklistedEquipment": ["SpecialSlot1", "SpecialSlot2", "SpecialSlot3"],
"slotIdsToAlwaysRemove": ["cartridges", "patron_in_weapon"],
"returnTimeOverrideSeconds": 0,
"runIntervalSeconds": 600
}

View File

@ -302,6 +302,12 @@ export class InsuranceService
if (itemClientInsuranceData || itemIsSoftInsert)
{
// Check if item should always be lost
if (this.insuranceConfig.slotIdsToAlwaysRemove.includes(preRaidItem.slotId.toLowerCase()))
{
continue;
}
// Get baseline item to return, clone pre-raid item
const itemToReturn: Item = this.jsonUtil.clone(preRaidItem);