This commit is contained in:
Terkoiz 2023-12-30 19:41:40 +02:00
commit cae4dba822

View File

@ -1066,7 +1066,7 @@ export class LocationGenerator
// Replace existing magazine with above array // Replace existing magazine with above array
items.splice(items.indexOf(items[0]), 1, ...magazineWithCartridges); 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) if (itemTemplate._props.Slots?.length > 0)
{ {