Correctly add armor inserts into statically spawned helmets

This commit is contained in:
Dev 2023-12-30 17:38:06 +00:00
parent a194569946
commit bea2a5d30a

View File

@ -1066,7 +1066,7 @@ export class LocationGenerator
// Replace existing magazine with above array
items.splice(items.indexOf(items[0]), 1, ...magazineWithCartridges);
}
else if (this.itemHelper.isOfBaseclasses(chosenTpl, [BaseClasses.VEST, BaseClasses.ARMOR]))
else if (this.itemHelper.isOfBaseclasses(chosenTpl, [BaseClasses.VEST, BaseClasses.ARMOR, BaseClasses.HEADWEAR]))
{
if (itemTemplate._props.Slots?.length > 0)
{