mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: add auto-repair at vendor open
When 'Auto Repair' is enabled in Settings > Gameplay, all damaged equipment is automatically repaired when opening any armorer vendor (canRepair=true). The repair is skipped when no items are actually damaged to avoid a pointless server round-trip. A system chat message confirms the repair. Setting persists to ~/.wowee/settings.cfg as auto_repair.
This commit is contained in:
parent
072f256af6
commit
d44d462686
4 changed files with 30 additions and 0 deletions
|
|
@ -1396,6 +1396,8 @@ public:
|
|||
bool isAutoLoot() const { return autoLoot_; }
|
||||
void setAutoSellGrey(bool enabled) { autoSellGrey_ = enabled; }
|
||||
bool isAutoSellGrey() const { return autoSellGrey_; }
|
||||
void setAutoRepair(bool enabled) { autoRepair_ = enabled; }
|
||||
bool isAutoRepair() const { return autoRepair_; }
|
||||
|
||||
// Master loot candidates (from SMSG_LOOT_MASTER_LIST)
|
||||
const std::vector<uint64_t>& getMasterLootCandidates() const { return masterLootCandidates_; }
|
||||
|
|
@ -2882,6 +2884,7 @@ private:
|
|||
bool lootWindowOpen = false;
|
||||
bool autoLoot_ = false;
|
||||
bool autoSellGrey_ = false;
|
||||
bool autoRepair_ = false;
|
||||
LootResponseData currentLoot;
|
||||
std::vector<uint64_t> masterLootCandidates_; // from SMSG_LOOT_MASTER_LIST
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue