use different base class check

This commit is contained in:
Dev 2024-01-01 11:33:19 +00:00
parent 612ba29fad
commit 224f921ea5

View File

@ -821,10 +821,7 @@ export class LocationGenerator
const itemWithMods: Item[] = [];
// Money/Ammo - don't rely on items in spawnPoint.template.Items so we can randomise it ourselves
if (
this.itemHelper.isOfBaseclass(chosenTpl, BaseClasses.MONEY)
|| this.itemHelper.isOfBaseclass(chosenTpl, BaseClasses.AMMO)
)
if (this.itemHelper.isOfBaseclasses(chosenTpl, [BaseClasses.MONEY, BaseClasses.AMMO]))
{
const stackCount = itemTemplate._props.StackMaxSize === 1
? 1