Fixed Removing Sixth Sense

Fixed removing Sixth Sense experience, where an unnecessary input box would be required to remove the selected Sixth Sense.
This commit is contained in:
johndav2
2025-04-19 22:05:07 -07:00
parent 4ee70649f4
commit 76398f24ef
@@ -10833,7 +10833,7 @@
query.options = `|${getTranslationByKey("add")},add`;
if (query.db.config[query.config_index].rank.length !== 0) {
query.options += '|' +
query.db.config[query.config_index].rank.map((r, i) => r + ',' + i).sort().join("|");
query.db.config[query.config_index].rank.map((r, i) => r.capitalize() + ',' + i).sort().join("|");
}
query.options += `|${getTranslationByKey("exit")},exit`;
}
@@ -11810,9 +11810,9 @@
case 'sixth sense':
if (query.selection === 'exit') { return; }
query.env_index = query.selection === 'add' ? -1 : int(query.selection);
query[query.next] = query.selection === 'add' ?
'' : query.db.config[query.config_index].rank[query.env_index];
query.next = 'add_sixth_sense';
query[query.next] = '';//query.selection === 'add' ?
//'' : query.db.config[query.config_index].rank[query.env_index];
query.next = query.env_index === -1 ? 'add_sixth_sense' : 'write_sixth_sense';
break;
case 'size change':
query.config_index = query.db.config.findIndex(c => c.name === 'size change');