mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: show live roll results from group members in loot roll popup
Track each player's roll (need/greed/disenchant/pass + value) as SMSG_LOOT_ROLL packets arrive while our roll window is open. Display a color-coded table in the popup: green=need, blue=greed, purple=disenchant, gray=pass. Roll value hidden for pass.
This commit is contained in:
parent
8a24638ced
commit
7acaa4d301
3 changed files with 72 additions and 0 deletions
|
|
@ -1151,6 +1151,13 @@ public:
|
|||
uint8_t itemQuality = 0;
|
||||
uint32_t rollCountdownMs = 60000; // Duration of roll window in ms
|
||||
std::chrono::steady_clock::time_point rollStartedAt{};
|
||||
|
||||
struct PlayerRollResult {
|
||||
std::string playerName;
|
||||
uint8_t rollNum = 0;
|
||||
uint8_t rollType = 0; // 0=need,1=greed,2=disenchant,96=pass
|
||||
};
|
||||
std::vector<PlayerRollResult> playerRolls; // live roll results from group members
|
||||
};
|
||||
bool hasPendingLootRoll() const { return pendingLootRollActive_; }
|
||||
const LootRollEntry& getPendingLootRoll() const { return pendingLootRoll_; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue