0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 06:30:43 -05:00

Fixed issue with getPmcConversionMinMaxForLocation()

This commit is contained in:
Dev 2024-09-23 10:45:25 +01:00
parent 10c436cd7d
commit 4cb901d592

View File

@ -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()];