Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not expand macros for quest letter tooltips
Quest letter tooltip displays last two lines of letter as a QoL feature. It does this by reading letter text and injecting last two lines as the item's "long name", which is then set as tooltip. In cases where world replacement data is used, text macro expansion can trigger a sequence of events where world data is reloaded causing massive performance dips just by opening the clothing & misc tab in inventory with quest letters in inventory. This is an unintended interaction between different systems. This commit prevents expensive macro expansion just for quest letter tooltips. In majority of cases, the tooltip will not use macros in the last two lines anyway. And in cases where it does, seeing the %var macro is less of a problem than reloading entire chunks of the world as player moves mouse around inventory UI.
- Loading branch information