mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-10 09:02:32 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user