Remove redundant .some()
call
This commit is contained in:
parent
d362e17e1b
commit
3dacbc98b2
@ -220,7 +220,7 @@ export class BotInventoryGenerator
|
|||||||
botEquipmentConfig: botEquipConfig,
|
botEquipmentConfig: botEquipConfig,
|
||||||
randomisationDetails: randomistionDetails,
|
randomisationDetails: randomistionDetails,
|
||||||
});
|
});
|
||||||
this.generateEquipment({
|
const hasArmorVest = this.generateEquipment({
|
||||||
rootEquipmentSlot: EquipmentSlots.ARMOR_VEST,
|
rootEquipmentSlot: EquipmentSlots.ARMOR_VEST,
|
||||||
rootEquipmentPool: templateInventory.equipment.ArmorVest,
|
rootEquipmentPool: templateInventory.equipment.ArmorVest,
|
||||||
modPool: templateInventory.mods,
|
modPool: templateInventory.mods,
|
||||||
@ -233,7 +233,6 @@ export class BotInventoryGenerator
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Bot has no armor vest and flagged to be foreced to wear armored rig in this event
|
// Bot has no armor vest and flagged to be foreced to wear armored rig in this event
|
||||||
const hasArmorVest = botInventory.items.some((item) => item.slotId === "ArmorVest");
|
|
||||||
if (botEquipConfig.forceOnlyArmoredRigWhenNoArmor && !hasArmorVest)
|
if (botEquipConfig.forceOnlyArmoredRigWhenNoArmor && !hasArmorVest)
|
||||||
{
|
{
|
||||||
// Filter rigs down to only those with armor
|
// Filter rigs down to only those with armor
|
||||||
|
Loading…
Reference in New Issue
Block a user