From 4cb901d592a0394eceb56ce6a36e6f5f10db6f91 Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 23 Sep 2024 10:45:25 +0100 Subject: [PATCH] Fixed issue with `getPmcConversionMinMaxForLocation()` --- project/src/controllers/BotController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/controllers/BotController.ts b/project/src/controllers/BotController.ts index 87e0ebee..cb2df740 100644 --- a/project/src/controllers/BotController.ts +++ b/project/src/controllers/BotController.ts @@ -450,10 +450,10 @@ export class BotController { return [desiredBot]; } - protected getPmcConversionMinMaxForLocation(requestedBotRole: string, location: string) { + protected getPmcConversionMinMaxForLocation(requestedBotRole: string, location: string): MinMax { const mapSpecificConversionValues = this.pmcConfig.convertIntoPmcChance[location?.toLowerCase()]; if (!mapSpecificConversionValues) { - return this.pmcConfig.convertIntoPmcChance.default; + return this.pmcConfig.convertIntoPmcChance.default[requestedBotRole]; } return mapSpecificConversionValues[requestedBotRole?.toLowerCase()];