feat: add auto-sell grey items on vendor open

When 'Auto Sell Greys' is enabled in Settings > Gameplay, all grey
(ItemQuality::POOR) items in the backpack and extra bags are sold
automatically when opening a vendor window. Items with no sell price
are skipped. A system chat message reports the number of items sold
and total gold received. The setting persists to ~/.wowee/settings.cfg
under the key auto_sell_grey.
This commit is contained in:
Kelsi 2026-03-17 20:21:06 -07:00
parent e62ae8b03e
commit 072f256af6
4 changed files with 75 additions and 1 deletions

View file

@ -195,6 +195,7 @@ private:
bool pendingSeparateBags = true;
bool pendingShowKeyring = true;
bool pendingAutoLoot = false;
bool pendingAutoSellGrey = false;
// Keybinding customization
int pendingRebindAction = -1; // -1 = not rebinding, otherwise action index