diff --git a/project/src/generators/BotInventoryGenerator.ts b/project/src/generators/BotInventoryGenerator.ts index 0e9437bc..084379d8 100644 --- a/project/src/generators/BotInventoryGenerator.ts +++ b/project/src/generators/BotInventoryGenerator.ts @@ -290,7 +290,7 @@ export class BotInventoryGenerator const tacVestsWithoutArmor = Object.entries(templateInventory.equipment.TacticalVest).reduce( (newVestDictionary, [tplKey]) => { - if (this.itemHelper.itemHasSlots(tplKey)) + if (!this.itemHelper.itemHasSlots(tplKey)) { newVestDictionary[tplKey] = templateInventory.equipment.TacticalVest[tplKey]; } diff --git a/project/src/generators/BotWeaponGenerator.ts b/project/src/generators/BotWeaponGenerator.ts index c64c537a..a617b0d5 100644 --- a/project/src/generators/BotWeaponGenerator.ts +++ b/project/src/generators/BotWeaponGenerator.ts @@ -200,7 +200,7 @@ export class BotWeaponGenerator } // Fill existing magazines to full and sync ammo type - for (const magazine of weaponWithModsArray.filter((x) => x.slotId === this.modMagazineSlotId)) + for (const magazine of weaponWithModsArray.filter((item) => item.slotId === this.modMagazineSlotId)) { this.fillExistingMagazines(weaponWithModsArray, magazine, ammoTpl); } diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index 39bf6cfc..8c56334d 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -361,7 +361,7 @@ export class QuestHelper // Remap target id to the new presets root id questReward.target = rootItem._id; - // Copy over stack count + // Copy over stack count otherwise reward shows as missing in client if (!rootItem.upd) { rootItem.upd = {};