Skip to content

Commit

Permalink
removed erroring } which was present in some relationship iterations.
Browse files Browse the repository at this point in the history
  • Loading branch information
boli32 committed Jan 16, 2025
1 parent 1e7cfcb commit 693b5d8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions QuestTracker/1.0/QuestTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,7 @@ var QuestTracker = QuestTracker || (function () {
<a style="${styles.questlink}" href="!qt-menu action=quest|id=${condition}">${H.getQuestName(condition)}</a>
</td>
<td style="${styles.smallButtonContainer}">
<a style="${styles.button} ${styles.smallButton}" href="!qt-questrelationship currentquest=${questId}|oldquest=${condition}|action=update|type=${indent ? `group|groupnum=${currentGroupNum}` : `single`}|quest=${H.buildDropdownString(questId, condition)}}">c</a>
<a style="${styles.button} ${styles.smallButton}" href="!qt-questrelationship currentquest=${questId}|oldquest=${condition}|action=update|type=${indent ? `group|groupnum=${currentGroupNum}` : `single`}|quest=${H.buildDropdownString(questId, condition)}">c</a>
</td>
<td style="${styles.smallButtonContainer}">
<a style="${styles.button} ${styles.smallButton}" href="!qt-questrelationship currentquest=${questId}|action=remove|type=${indent ? `group|groupnum=${currentGroupNum}|confirmation=DELETE` : `single`}|quest=${condition}">-</a>
Expand All @@ -3209,7 +3209,7 @@ var QuestTracker = QuestTracker || (function () {
<small>Add Relationship</small>
</td>
<td style="${styles.smallButtonContainer}">
<${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=group|groupnum=${currentGroupNum}|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+</a>
<${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=group|groupnum=${currentGroupNum}|quest=${H.buildDropdownString(questId)}" style="${renderButtonStyle} ${styles.smallButton}">+</a>
</td>
</tr>
` : ''}
Expand All @@ -3219,7 +3219,7 @@ var QuestTracker = QuestTracker || (function () {
<small>Add Relationship</small>
</td>
<td style="${styles.smallButtonContainer}">
<${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+</a>
<${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}" style="${renderButtonStyle} ${styles.smallButton}">+</a>
</td>
</tr>
` : ''}
Expand All @@ -3235,7 +3235,7 @@ var QuestTracker = QuestTracker || (function () {
<small>Add Relationship</small>
</td>
<td style="${styles.smallButtonContainer}">
<${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}}" style="${renderButtonStyle} ${styles.smallButton}">+</a>
<${spanOrAnchor} href="!qt-questrelationship currentquest=${questId}|action=add|type=single|quest=${H.buildDropdownString(questId)}" style="${renderButtonStyle} ${styles.smallButton}">+</a>
</td>
</tr>`;
}
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit 693b5d8

Please sign in to comment.