message: Add logic to prioritise plug description over perk descriptions. This will be used by plug types other than mods and catalysts but is currently disabled.
diff: @@ -220,6 +220,7 @@ export function getPerkDescriptions(
  // within this plug, let's not repeat any descriptions or requirement strings
  const uniqueStrings = new Set<string>();
  + function addPerkDescriptions() {
  // Terrible hack here: Echo of Persistence behaves like Charge Harvester, but uses a number of hidden perks
  // (which we can't associate with stats), But we also can't get the relevant classType in here,
  // so just copy the "-10 to the stat that governs your class ability recharge rate" perk from Charge Harvester.
  @@ -266,6 +267,16 @@ export function getPerkDescriptions(
  });
  }
  }
  + }
  +
  + // mods & catalysts often store auxiliary info like requirements and caveats in their description, so we'll
  + // use their perk descriptions instead and only fall back to the actual description if we don't have any perks
  +
  + // todo: figure this out based on plug type
  + const isPrimaryDescriptionInPerks = false;
  +
  + if (isPrimaryDescriptionInPerks) {
  + addPerkDescriptions();
  const plugDescription = plug.displayProperties.description || undefined;
  if (plugDescription && !uniqueStrings.has(plugDescription)) {
  @@ -283,6 +294,16 @@ export function getPerkDescriptions(
  }
  );
  }
  + } else {
  + if (plug.displayProperties.description) {
  + results.push({
  + perkHash: 0,
  + description: plug.displayProperties.description,
  + });
  + } else {
  + addPerkDescriptions();
  + }
  + }
  // a fallback: if we still don't have any perk descriptions, at least keep the first perk for display.
  // there are mods like this (e.g. Elemental Armaments): no description, and annoyingly all perks are set
  