Morrowind
0 of 0

File information

Last updated

Original upload

Created by

Sean Daugherty

Uploaded by

seancdaug

Virus scan

Safe to use

Tags for this mod

About this mod

UI Expansion's item tooltips show the enchantment capacity of every piece of unenchanted equipment. Unfortunately, if you have changed the fEnchantmentMult GMST with another mod, that displayed capacity will be incorrect. This simple patch fixes that.

Requirements
Permissions and credits
Changelogs
One of the extremely useful features of UI Expansion is its expanded inventory tooltips. One of the things it displays is the enchantment capacity of every unequipped armor, clothing, weapon, or jewelry. By default, every piece of equipment in the game is assigned an enchantment capacity, but that value is multiplied by a GMST (fEnchantmentMult) to get the actual ingame value. For example, an Extravagant Robe has a base enchantment value of 200 defined in Morrowind.esm. In the vanilla game, that's multiplied by the default fEnchantmentMult value of 0.1 to give you the actual in-game enchantment capacity of 20.

The problem arises if you modify fEnchantmentMult using a mod like Enchantment Multiplier or Enchantment Multiplier 100x or pete's lua gmst config to some value other than 0.1. UI Expansion calculates its tooltip using a static value of 0.1 rather than looking up the actual fEnchantmentMult value. This mod changes that, so that its pulling the correct fEnchantmentMult value instead. If you're not modifying fEnchantmentMult, it shouldn't make any difference for you (though it shouldn't change/break anything, either). But if you are modifying fEnchantmentMult, you'll see the correct Enchant Capacity tooltip.

For the full technical explanation, all this mod does is modify a handful of lines in UI Expansion's mwse\mods\ui expansion\tooltip.lua. Originally it looked like this:

    if object.enchantment == nil and math.floor(object.enchantCapacity * 0.1) > 0 then
        labelFormatted(tooltip, string.format("%s: %u", common.i18n("tooltip.enchantCapacity"), object.enchantCapacity / 10), GUI_ID_TooltipEnchantCapacity)
    end

And after my changes, it looks like this:

   local enchantMultiplier = tes3.findGMST(tes3.gmst.fEnchantmentMult).value
    if object.enchantment == nil and math.floor(object.enchantCapacity * enchantMultiplier) > 0 then
        labelFormatted(tooltip, string.format("%s: %u", common.i18n("tooltip.enchantCapacity"), object.enchantCapacity * enchantMultiplier), GUI_ID_TooltipEnchantCapacity)
    end