From 7b0298cda2d4bb19e3389f31b5313f46be5e5793 Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 23 Oct 2023 19:19:05 +0100 Subject: [PATCH] Adjsut 2 bot gen errors to be warnings --- project/src/generators/BotWeaponGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/generators/BotWeaponGenerator.ts b/project/src/generators/BotWeaponGenerator.ts index 1de23548..0708c56f 100644 --- a/project/src/generators/BotWeaponGenerator.ts +++ b/project/src/generators/BotWeaponGenerator.ts @@ -307,14 +307,14 @@ export class BotWeaponGenerator const weaponSlotItem = weaponItemArray.find(x => x.parentId === mod._id && x.slotId === slotName); if (!weaponSlotItem) { - this.logger.error(this.localisationService.getText("bot-weapons_required_slot_missing_item", {modSlot: modSlot._name, modName: modDbTemplate._name, slotId: mod.slotId, botRole: botRole})); + this.logger.warning(this.localisationService.getText("bot-weapons_required_slot_missing_item", {modSlot: modSlot._name, modName: modDbTemplate._name, slotId: mod.slotId, botRole: botRole})); return false; } if (!allowedTpls.includes(weaponSlotItem._tpl)) { - this.logger.error(this.localisationService.getText("bot-weapon_contains_invalid_item", {modSlot: modSlot._name, modName: modDbTemplate._name, weaponTpl: weaponSlotItem._tpl})); + this.logger.warning(this.localisationService.getText("bot-weapon_contains_invalid_item", {modSlot: modSlot._name, modName: modDbTemplate._name, weaponTpl: weaponSlotItem._tpl})); return false; }