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.
Other user's assetsSome assets in this file belong to other authors. You will need to seek permission from these authors before you can use their assets
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou are allowed to use the assets in this file without permission as long as you credit me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
Original copyright notice for UI Expansion mod:
Copyright 2018
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File credits
Credits for original UI Expansion mod:
Programming: NullCascade, Hrnchamd Additional Programming: Petethegoat, Jiopsi Colored Magic School Icons: R-Zero Inventory Filter Icons: Remiros Concepts and Testing: Morrowind Modding Community Discord
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.0
initial upload
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