message: Fix Assume Masterwork: None not upgrading items to 7 energy in set rendering
diff: @@ -133,6 +133,7 @@ export function fitMostMods({
  isBucketSpecificModValid({
  assumeArmorMasterwork,
  lockArmorEnergyType,
  + minItemEnergy,
  item: targetItem,
  mod: plannedMod,
  assignedMods: bucketSpecificAssignments[targetItem.id].assigned,
  @@ -511,25 +512,21 @@ export function createPluggingStrategy(
  function isBucketSpecificModValid({
  assumeArmorMasterwork,
  lockArmorEnergyType,
  + minItemEnergy,
  item,
  mod,
  assignedMods,
  }: {
  assumeArmorMasterwork: AssumeArmorMasterwork | undefined;
  lockArmorEnergyType: LockArmorEnergyType | undefined;
  + minItemEnergy: number;
  item: DimItem;
  mod: PluggableInventoryItemDefinition;
  /** mods that are already assigned to this item */
  assignedMods: PluggableInventoryItemDefinition[];
  }) {
  // given spending rules, what we can assume this item's energy is
  - const itemEnergyCapacity = Math.max(
  - item.energy?.energyCapacity || 1,
  - assumeArmorMasterwork === AssumeArmorMasterwork.All ||
  - (!item.isExotic && assumeArmorMasterwork === AssumeArmorMasterwork.Legendary)
  - ? 10
  - : 0
  - );
  + const itemEnergyCapacity = calculateAssumedItemEnergy(item, assumeArmorMasterwork, minItemEnergy);
  // given spending/element rules & current assignments, what element is this armor?
  const itemEnergyType = getItemEnergyType(item, lockArmorEnergyType, assignedMods);
  