Spending down a currency -- any currency in the wallet -- to 0, when the plugin is active, resulted in a nil-dereferencing error, and, in the case of Buried Treasure tokens going to 0, the icon was not updating in the display, giving an inaccurate display, until more tokens were acquired.
The condition prompting the error was removed, and the icon now updates. Along with that, the icon appearance for the "zero tokens" case was changed to be much brighter than the standard icon image, in order to differentiate it from the single-token appearance (which is the standard icon image with no digit overlay)
In the original plugin, if a player had multiple stacks of an item, only 1 of the stacks would be chosen to populate the corresponding quickslot, thus presenting an inaccurate display of the total quantity in inventory.
The layout of the main window has been changed slightly, to add some "overflow" fields which show the additional quantity of items present in inventory, above and beyond what is shown in the quickslot. There is some logic in the code, to determine which stack is populated in the quickslot, and which are reflected in "overflow"; the details are presented in the accompanying video.
Accompanying video demonstrating the before-and-after of the Rich! plugin, as the patch is applied
This patch does not interfere with B4's patch to the barter list for Rich!
. Compatibility tested and confirmed.