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:
parent
10c436cd7d
commit
4cb901d592
@ -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()];
|
||||
|
Loading…
x
Reference in New Issue
Block a user