message: Create more permutations for mod assignment.
diff: import { PluggableInventoryItemDefinition } from 'app/inventory/item-types';
  -import { DestinyEnergyType } from 'bungie-api-ts/destiny2';
  export function generateModPermutations(mods: (PluggableInventoryItemDefinition | null)[]) {
  - // Creates a string from the mod permutation containing the unique properties
  - // that we care about, so we can reduce to the minimum number of permutations.
  - // If two different mods that fit in the same socket have the same energy type
  - // and cost, they are identical from the mod assignment perspective.
  - // This works because we check to see if we have already recorded this string
  - // in heaps algorithm before we add the permutation to the result.
  const createPermutationKey = (permutation: (PluggableInventoryItemDefinition | null)[]) =>
  - permutation
  - .map((mod) => {
  - if (mod) {
  - const energyType = mod.plug.energyCost?.energyType || DestinyEnergyType.Any;
  - const energyCost = mod.plug.energyCost?.energyCost || 0;
  - return `${energyType}${energyCost}${mod.plug.plugCategoryHash}`;
  - }
  - })
  - .join(',');
  + permutation.map((mod) => mod?.hash).join(',');
  return generatePermutationsOfFive(mods, createPermutationKey);
  }
  