Correctly check when difficulty is not a number
This commit is contained in:
parent
9d3f6dc092
commit
90b76eab68
@ -781,7 +781,7 @@ export class RepeatableQuestGenerator
|
||||
const rewardSpreadConfig = repeatableConfig.rewardScaling.rewardSpread;
|
||||
const reputationConfig = repeatableConfig.rewardScaling.reputation;
|
||||
|
||||
if (isNaN(difficulty))
|
||||
if (Number.isNaN(difficulty))
|
||||
{
|
||||
difficulty = 1;
|
||||
this.logger.warning(this.localisationService.getText("repeatable-difficulty_was_nan"));
|
||||
|
Loading…
Reference in New Issue
Block a user