diff --git a/project/src/generators/LocationGenerator.ts b/project/src/generators/LocationGenerator.ts index e22c9b93..929a8106 100644 --- a/project/src/generators/LocationGenerator.ts +++ b/project/src/generators/LocationGenerator.ts @@ -78,6 +78,7 @@ export class LocationGenerator staticAmmoDist: Record, ): SpawnpointTemplate[] { + let staticLootItemCount = 0; const result: SpawnpointTemplate[] = []; const locationId = locationBase.Id.toLowerCase(); @@ -127,11 +128,13 @@ export class LocationGenerator locationId, ); result.push(containerWithLoot.template); + + staticLootItemCount += containerWithLoot.template.Items.length; } - this.logger.success(`Added ${guaranteedContainers.length} guaranteed containers`); + this.logger.debug(`Added ${guaranteedContainers.length} guaranteed containers`); - // randomisation is turned off globally or just turned off for this map + // Randomisation is turned off globally or just turned off for this map if ( !(this.locationConfig.containerRandomisationSettings.enabled && this.locationConfig.containerRandomisationSettings.maps[locationId]) @@ -150,8 +153,12 @@ export class LocationGenerator locationId, ); result.push(containerWithLoot.template); + + staticLootItemCount += containerWithLoot.template.Items.length; } + this.logger.success(`A total of ${staticLootItemCount} static items spawned`); + return result; } @@ -230,9 +237,14 @@ export class LocationGenerator ); result.push(containerWithLoot.template); staticContainerCount++; + + staticLootItemCount += containerWithLoot.template.Items.length; + } } + this.logger.success(`A total of ${staticLootItemCount} static items spawned`); + this.logger.success( this.localisationService.getText("location-containers_generated_success", staticContainerCount), );