Hi, first off, thanks for all your awesome mods, it really improves the game, couldn't play without them!
Do you think it would be possible to add an option to only change the colors of the potions and not their names, like you did on your other mod "Short Gem Names"?
I'm playing in French and would like to keep their names, but I would love to have the colors changes to help distinguish them at first sight, that would be awesome!
Small improvement, for those bothered by HP/MP/JP pots missing a space in between the text and numbers like the others: // health if (['hp1', 'hp2', 'hp3', 'hp4', 'hp5'].indexOf(itemtype) !== -1) { newName = `${COLOR_HEALTH}${itemtype.toUpperCase().replace(/(\d)/g, ' $1')}`; }
// mana if (['mp1', 'mp2', 'mp3', 'mp4', 'mp5'].indexOf(itemtype) !== -1) { newName = `${COLOR_MANA}${itemtype.toUpperCase().replace(/(\d)/g, ' $1')}`; }
// rejuvenation if (['rvl', 'rvs'].indexOf(itemtype) !== -1) { const suffix = itemtype.endsWith('l') ? '2' : '1'; newName = `${COLOR_REJUVENATION}JP ${suffix}`; } OP; feel free to include or not this in the main file, free of credit.
Is it possible to do a version with just short names and not the colors? I'd love to minimize / get rid of all the potion clutter but I don't want distracting colors everywhere (for bulk useless items) lol
You could make a quick local patch to your downloaded version by replacing all of these with empty strings: const COLOR_ANTIDOTE = ''; const COLOR_GAS = ''; const COLOR_HEALTH = ''; const COLOR_MANA = ''; const COLOR_OIL = ''; const COLOR_REJUVENATION = ''; const COLOR_STAMINA = ''; const COLOR_THAWING = '';
14 comments
Do you think it would be possible to add an option to only change the colors of the potions and not their names, like you did on your other mod "Short Gem Names"?
I'm playing in French and would like to keep their names, but I would love to have the colors changes to help distinguish them at first sight, that would be awesome!
Take care and have a great day!
// health
OP; feel free to include or not this in the main file, free of credit.if (['hp1', 'hp2', 'hp3', 'hp4', 'hp5'].indexOf(itemtype) !== -1) {
newName = `${COLOR_HEALTH}${itemtype.toUpperCase().replace(/(\d)/g, ' $1')}`;
}
// mana
if (['mp1', 'mp2', 'mp3', 'mp4', 'mp5'].indexOf(itemtype) !== -1) {
newName = `${COLOR_MANA}${itemtype.toUpperCase().replace(/(\d)/g, ' $1')}`;
}
// rejuvenation
if (['rvl', 'rvs'].indexOf(itemtype) !== -1) {
const suffix = itemtype.endsWith('l') ? '2' : '1';
newName = `${COLOR_REJUVENATION}JP ${suffix}`;
}
Is it possible to get the "HP" and "MP" in white text and the suffix "1,2,3,4,5" in colors red and blue?
Not a coder, so could use the help. Thanks in advance!
// health
if (['hp1', 'hp2', 'hp3', 'hp4', 'hp5'].indexOf(itemtype) !== -1) {
const prefix = itemtype.substring(0, 2).toUpperCase();
const suffix = itemtype.substring(2, 3);
newName = `${prefix}${COLOR_HEALTH}${suffix}`;
}
// mana
if (['mp1', 'mp2', 'mp3', 'mp4', 'mp5'].indexOf(itemtype) !== -1) {
const prefix = itemtype.substring(0, 2).toUpperCase();
const suffix = itemtype.substring(2, 3);
newName = `${prefix}${COLOR_MANA}${suffix}`;
}
Works great. Does this code also apply to Juvs?
Like can I just copy-paste this in place with the Juvs?
// rejuvenation
if (['rvl', 'rvs'].indexOf(itemtype) !== -1) {
const suffix = itemtype.endsWith('l') ? '2' : '1';
newName = `JP${COLOR_REJUVENATION}${suffix}`;
}
(Basically, just moving the ${COLOR_REJUVENATION} segment to be after the "JP" instead of before it.)
Is it possible to do a version with just short names and not the colors? I'd love to minimize / get rid of all the potion clutter but I don't want distracting colors everywhere (for bulk useless items) lol
const COLOR_ANTIDOTE = '';
const COLOR_GAS = '';
const COLOR_HEALTH = '';
const COLOR_MANA = '';
const COLOR_OIL = '';
const COLOR_REJUVENATION = '';
const COLOR_STAMINA = '';
const COLOR_THAWING = '';