Correctly add armor inserts into statically spawned helmets
This commit is contained in:
parent
a194569946
commit
bea2a5d30a
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user