diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index aeb11964..a8811d43 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -85,9 +85,17 @@ export class QuestHelper switch (condition._props.compareMethod) { case ">=": - return playerLevel >= condition._props.value; + return playerLevel >= condition._props.value; + case ">": + return playerLevel > condition._props.value; + case "<": + return playerLevel < condition._props.value; + case "<=": + return playerLevel <= condition._props.value; + case "=": + return playerLevel === condition._props.value; default: - this.logger.debug(`Unrecognised Comparison Method: ${condition._props.compareMethod}`); + this.logger.error(`Unrecognised Comparison Method: ${condition._props.compareMethod}`); return false; } }