Fixed issue with getPmcConversionMinMaxForLocation()
This commit is contained in:
parent
10c436cd7d
commit
4cb901d592
@ -450,10 +450,10 @@ export class BotController {
|
|||||||
return [desiredBot];
|
return [desiredBot];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected getPmcConversionMinMaxForLocation(requestedBotRole: string, location: string) {
|
protected getPmcConversionMinMaxForLocation(requestedBotRole: string, location: string): MinMax {
|
||||||
const mapSpecificConversionValues = this.pmcConfig.convertIntoPmcChance[location?.toLowerCase()];
|
const mapSpecificConversionValues = this.pmcConfig.convertIntoPmcChance[location?.toLowerCase()];
|
||||||
if (!mapSpecificConversionValues) {
|
if (!mapSpecificConversionValues) {
|
||||||
return this.pmcConfig.convertIntoPmcChance.default;
|
return this.pmcConfig.convertIntoPmcChance.default[requestedBotRole];
|
||||||
}
|
}
|
||||||
|
|
||||||
return mapSpecificConversionValues[requestedBotRole?.toLowerCase()];
|
return mapSpecificConversionValues[requestedBotRole?.toLowerCase()];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user