Fix insurance return all child items of an item (ammo in mags/chamber)
This commit is contained in:
parent
6e4d5d1aca
commit
d92f30d281
@ -8,6 +8,7 @@
|
||||
"54cb57776803fa99248b456e": 85
|
||||
},
|
||||
"blacklistedEquipment": ["SpecialSlot1", "SpecialSlot2", "SpecialSlot3"],
|
||||
"slotIdsToAlwaysRemove": ["cartridges", "patron_in_weapon"],
|
||||
"returnTimeOverrideSeconds": 0,
|
||||
"runIntervalSeconds": 600
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user