From 693b5d8eddd1624310dab67db867e681f9cf132f Mon Sep 17 00:00:00 2001 From: boli32 Date: Thu, 16 Jan 2025 12:30:46 +0000 Subject: [PATCH] removed erroring } which was present in some relationship iterations. --- QuestTracker/1.0/QuestTracker.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/QuestTracker/1.0/QuestTracker.js b/QuestTracker/1.0/QuestTracker.js index 0bbf425c2..b300ce7af 100644 --- a/QuestTracker/1.0/QuestTracker.js +++ b/QuestTracker/1.0/QuestTracker.js @@ -3196,7 +3196,7 @@ var QuestTracker = QuestTracker || (function () { ${H.getQuestName(condition)} - c + c - @@ -3209,7 +3209,7 @@ var QuestTracker = QuestTracker || (function () { Add Relationship - <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=group|groupnum=${currentGroupNum}|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ + <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=group|groupnum=${currentGroupNum}|quest=${H.buildDropdownString(questId)}" style="${renderButtonStyle} ${styles.smallButton}">+ ` : ''} @@ -3219,7 +3219,7 @@ var QuestTracker = QuestTracker || (function () { Add Relationship - <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ + <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}" style="${renderButtonStyle} ${styles.smallButton}">+ ` : ''} @@ -3235,7 +3235,7 @@ var QuestTracker = QuestTracker || (function () { Add Relationship - <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+ + <${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}" style="${renderButtonStyle} ${styles.smallButton}">+ `; } @@ -3270,7 +3270,7 @@ var QuestTracker = QuestTracker || (function () { } }, getQuestName: (questId) => { - return QUEST_TRACKER_globalQuestData[questId]?.name || 'Unnamed Quest'; + return QUEST_TRACKER_globalQuestData[questId]?.name.replace(/[{}|&?]/g, '') || 'Unnamed Quest'; }, relationshipMenu: (questId) => { const quest = QUEST_TRACKER_globalQuestData[questId]; @@ -4480,6 +4480,7 @@ var QuestTracker = QuestTracker || (function () { switch (action) { case 'add': if (errorCheck(65, 'exists', quest,'quest')) return; + log(quest) if (errorCheck(66, 'exists', QUEST_TRACKER_globalQuestData[quest],`QUEST_TRACKER_globalQuestData[${quest}]`)) return; switch (type) { case 'mutuallyexclusive':