From 7bc0d3f383587277e81a59bff3c0cb876095257e Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 15 Oct 2023 10:49:23 +0100 Subject: [PATCH] Prevent distance + melee kill quest combination --- project/src/generators/RepeatableQuestGenerator.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/project/src/generators/RepeatableQuestGenerator.ts b/project/src/generators/RepeatableQuestGenerator.ts index 47a48263..55b7ea66 100644 --- a/project/src/generators/RepeatableQuestGenerator.ts +++ b/project/src/generators/RepeatableQuestGenerator.ts @@ -299,7 +299,7 @@ export class RepeatableQuestGenerator (allowedWeaponsCategory || allowedWeapon) ? 1 : 0 ); - // aforementioned issue makes it a bit crazy since now all easier quests give significantly lower rewards than Completion / Exploration + // Aforementioned issue makes it a bit crazy since now all easier quests give significantly lower rewards than Completion / Exploration // I therefore moved the mapping a bit up (from 0.2...1 to 0.5...2) so that normal difficulty still gives good reward and having the // crazy maximum difficulty will lead to a higher difficulty reward gain factor than 1 const difficulty = this.mathUtil.mapToRange(curDifficulty, minDifficulty, maxDifficulty, 0.5, 2); @@ -382,7 +382,8 @@ export class RepeatableQuestGenerator killConditionProps.bodyPart = bodyPart; } - if (distance) + // Dont allow distance + melee requirement + if (distance && allowedWeaponCategory !== "5b5f7a0886f77409407a7f96") { killConditionProps.distance = { compareMethod: ">=",