Remove faceshield from headwear section

This commit is contained in:
Dev 2024-01-27 17:08:01 +00:00
parent b3f2e3e2a5
commit 8ca0c5d82b
2 changed files with 14 additions and 1 deletions

View File

@ -1426,7 +1426,6 @@
"5e00c1ad86f774747333222c": 1, "5e00c1ad86f774747333222c": 1,
"5e01ef6886f77445f643baa4": 1, "5e01ef6886f77445f643baa4": 1,
"5ea17ca01412a1425304d1c0": 1, "5ea17ca01412a1425304d1c0": 1,
"5c0919b50db834001b7ce3b9": 1,
"5ea05cf85ad9772e6624305d": 330, "5ea05cf85ad9772e6624305d": 330,
"5c0d2727d174af02a012cf58": 250, "5c0d2727d174af02a012cf58": 250,
"59e7711e86f7746cae05fbe1": 250, "59e7711e86f7746cae05fbe1": 250,

View File

@ -780,14 +780,28 @@ export class BotEquipmentModGenerator
incompatible: false, incompatible: false,
reason: "", reason: "",
}; };
const modParentFilterList = parentSlot._props.filters[0].Filter;
while (exhaustableModPool.hasValues()) while (exhaustableModPool.hasValues())
{ {
modTpl = exhaustableModPool.getRandomValue(); modTpl = exhaustableModPool.getRandomValue();
if (modSpawnResult === ModSpawn.DEFAULT_MOD && modPool.length === 1)
{
// default mod wanted and only one choice
found = true;
break;
}
modCompatibilityResult = this.botGeneratorHelper.isItemIncompatibleWithCurrentItems( modCompatibilityResult = this.botGeneratorHelper.isItemIncompatibleWithCurrentItems(
weapon, weapon,
modTpl, modTpl,
modSlot, modSlot,
); );
const isOnModParentFilterList = modParentFilterList.includes(modTpl);
if (!isOnModParentFilterList)
{
continue;
}
if (!modCompatibilityResult.incompatible && !this.weaponModComboIsIncompatible(weapon, modTpl)) if (!modCompatibilityResult.incompatible && !this.weaponModComboIsIncompatible(weapon, modTpl))
{ {
found = true; found = true;