mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: respect loot roll voteMask for button visibility
Store the voteMask from SMSG_LOOT_START_ROLL and use it to conditionally show Need/Greed/Disenchant/Pass buttons. Previously all four buttons were always shown regardless of the server's allowed roll types.
This commit is contained in:
parent
02a1b5cbf3
commit
209f60031e
3 changed files with 25 additions and 13 deletions
|
|
@ -1458,6 +1458,7 @@ public:
|
|||
std::string itemName;
|
||||
uint8_t itemQuality = 0;
|
||||
uint32_t rollCountdownMs = 60000; // Duration of roll window in ms
|
||||
uint8_t voteMask = 0xFF; // Bitmask: 0x01=pass, 0x02=need, 0x04=greed, 0x08=disenchant
|
||||
std::chrono::steady_clock::time_point rollStartedAt{};
|
||||
|
||||
struct PlayerRollResult {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue