Adjsut 2 bot gen errors to be warnings
This commit is contained in:
parent
69ee8983b2
commit
7b0298cda2
@ -307,14 +307,14 @@ export class BotWeaponGenerator
|
|||||||
const weaponSlotItem = weaponItemArray.find(x => x.parentId === mod._id && x.slotId === slotName);
|
const weaponSlotItem = weaponItemArray.find(x => x.parentId === mod._id && x.slotId === slotName);
|
||||||
if (!weaponSlotItem)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!allowedTpls.includes(weaponSlotItem._tpl))
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user