From 224f921ea5071b4c02ca0118a72148daf5d4022f Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 1 Jan 2024 11:33:19 +0000 Subject: [PATCH] use different base class check --- project/src/generators/LocationGenerator.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/project/src/generators/LocationGenerator.ts b/project/src/generators/LocationGenerator.ts index 324731d8..f5eb2af6 100644 --- a/project/src/generators/LocationGenerator.ts +++ b/project/src/generators/LocationGenerator.ts @@ -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