From 3dacbc98b2b5083ab7c6b450d513cab7b76401b3 Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 3 Feb 2024 23:11:36 +0000 Subject: [PATCH] Remove redundant `.some()` call --- project/src/generators/BotInventoryGenerator.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project/src/generators/BotInventoryGenerator.ts b/project/src/generators/BotInventoryGenerator.ts index 66a5640d..185beb8d 100644 --- a/project/src/generators/BotInventoryGenerator.ts +++ b/project/src/generators/BotInventoryGenerator.ts @@ -220,7 +220,7 @@ export class BotInventoryGenerator botEquipmentConfig: botEquipConfig, randomisationDetails: randomistionDetails, }); - this.generateEquipment({ + const hasArmorVest = this.generateEquipment({ rootEquipmentSlot: EquipmentSlots.ARMOR_VEST, rootEquipmentPool: templateInventory.equipment.ArmorVest, 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 - const hasArmorVest = botInventory.items.some((item) => item.slotId === "ArmorVest"); if (botEquipConfig.forceOnlyArmoredRigWhenNoArmor && !hasArmorVest) { // Filter rigs down to only those with armor