From 64d4eb2cd69acb6ac90ec51a0ee0e048505da714 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 13 Sep 2024 22:50:59 +0100 Subject: [PATCH] Updated how map id is passed through to dynamic loot generation --- project/src/generators/LocationLootGenerator.ts | 4 ++-- project/src/services/LocationLifecycleService.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/src/generators/LocationLootGenerator.ts b/project/src/generators/LocationLootGenerator.ts index 460d8969..a47ffa0c 100644 --- a/project/src/generators/LocationLootGenerator.ts +++ b/project/src/generators/LocationLootGenerator.ts @@ -557,11 +557,11 @@ export class LocationLootGenerator { } protected getLooseLootMultiplerForLocation(location: string): number { - return this.locationConfig.looseLootMultiplier[location.toLowerCase()]; + return this.locationConfig.looseLootMultiplier[location]; } protected getStaticLootMultiplerForLocation(location: string): number { - return this.locationConfig.staticLootMultiplier[location.toLowerCase()]; + return this.locationConfig.staticLootMultiplier[location]; } /** diff --git a/project/src/services/LocationLifecycleService.ts b/project/src/services/LocationLifecycleService.ts index b85ef3db..8b4bc611 100644 --- a/project/src/services/LocationLifecycleService.ts +++ b/project/src/services/LocationLifecycleService.ts @@ -141,7 +141,7 @@ export class LocationLifecycleService { const dynamicSpawnPoints = this.locationLootGenerator.generateDynamicLoot( dynamicLootDistClone, staticAmmoDist, - name, + name.toLowerCase(), ); for (const spawnPoint of dynamicSpawnPoints) {