diff --git a/project/src/generators/BotEquipmentModGenerator.ts b/project/src/generators/BotEquipmentModGenerator.ts index 7801da91..4770fdb1 100644 --- a/project/src/generators/BotEquipmentModGenerator.ts +++ b/project/src/generators/BotEquipmentModGenerator.ts @@ -784,7 +784,7 @@ export class BotEquipmentModGenerator if (chosenModResult.incompatible && parentSlot._required) { this.logger.debug(chosenModResult.reason); - this.logger.debug(`Weapon: ${weapon.map(x => `${x._tpl} ${x.slotId ?? ""}`).join(",")}`) + //this.logger.debug(`Weapon: ${weapon.map(x => `${x._tpl} ${x.slotId ?? ""}`).join(",")}`) } // Get random mod to attach from items db for required slots if none found above @@ -840,6 +840,7 @@ export class BotEquipmentModGenerator { // Default mod wanted and only one choice in pool chosenModResult.found = true; + chosenModResult.incompatible = false; chosenModResult.chosenTpl = chosenTpl; break; diff --git a/project/src/generators/BotWeaponGenerator.ts b/project/src/generators/BotWeaponGenerator.ts index 3ff7eb03..398712de 100644 --- a/project/src/generators/BotWeaponGenerator.ts +++ b/project/src/generators/BotWeaponGenerator.ts @@ -372,9 +372,7 @@ export class BotWeaponGenerator continue; } - const allowedTplsOnSlot = modSlotTemplate._props.filters[0].Filter; const slotName = modSlotTemplate._name; - const weaponSlotItem = weaponItemArray.find((weaponItem) => weaponItem.parentId === mod._id && weaponItem.slotId === slotName); if (!weaponSlotItem) {