Diablo II: Resurrected
0 of 0

File information

Last updated

Original upload

Created by

olegbl

Uploaded by

olegbl

Virus scan

Safe to use

Tags for this mod

14 comments

  1. NeoChozo
    NeoChozo
    • supporter
    • 3 kudos
    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!

    Take care and have a great day!
  2. kaebewek
    kaebewek
    • member
    • 0 kudos
    any way to edit the code to show potions as hp 1 instead of hp1 etc? i tried editing the code myself but im too dumb i suppose lol
    1. olegbl
      olegbl
      • premium
      • 108 kudos
      Read the comment literally right below yours.
  3. MetalTxus
    MetalTxus
    • member
    • 10 kudos
    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.
  4. Paardje20
    Paardje20
    • member
    • 0 kudos
    Very nice modd, thank you!
    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!
    1. olegbl
      olegbl
      • premium
      • 108 kudos
      Yup. e.g. Change https://github.com/olegbl/d2rmm.mods/blob/main/ShortPotionNames/mod.js#L54-L62 to
      // 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}`;
      }
    2. Paardje20
      Paardje20
      • member
      • 0 kudos
      Thank you so much boss!
      Works great. Does this code also apply to Juvs?
      Like can I just copy-paste this in place with the Juvs?
    3. olegbl
      olegbl
      • premium
      • 108 kudos
      You'd do a similar thing for juvie pots by replacing https://github.com/olegbl/d2rmm.mods/blob/main/ShortPotionNames/mod.js#L64-L68 with
      // 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.)
    4. Paardje20
      Paardje20
      • member
      • 0 kudos
      Thank you! Works great!
  5. Pzypro
    Pzypro
    • member
    • 0 kudos
    Thanks!

    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
    1. olegbl
      olegbl
      • premium
      • 108 kudos
      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 = '';
  6. Kanuck67
    Kanuck67
    • member
    • 0 kudos
    Is there a mod for D2RMM that has short names for town portal and identify scrolls?
    1. olegbl
      olegbl
      • premium
      • 108 kudos
  7. Aislann
    Aislann
    • member
    • 0 kudos
    Niiiiiiiiiiiice!