From 90b76eab6861064192828eba2b1aeb9aa2712a1e Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 1 Nov 2023 11:36:13 +0000 Subject: [PATCH] Correctly check when difficulty is not a number --- project/src/generators/RepeatableQuestGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/generators/RepeatableQuestGenerator.ts b/project/src/generators/RepeatableQuestGenerator.ts index 025e0281..f3c48938 100644 --- a/project/src/generators/RepeatableQuestGenerator.ts +++ b/project/src/generators/RepeatableQuestGenerator.ts @@ -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"));