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:
Kelsi 2026-03-18 10:01:53 -07:00
parent 02a1b5cbf3
commit 209f60031e
3 changed files with 25 additions and 13 deletions

View file

@ -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 {