mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 08:00:14 +00:00
feat: add instance difficulty indicator on minimap
Show Normal/Heroic/25-Man difficulty badge below zone name when inside a dungeon or raid instance. Orange-highlighted for heroic modes.
This commit is contained in:
parent
801f29f043
commit
aed8c94544
3 changed files with 33 additions and 0 deletions
|
|
@ -16458,6 +16458,7 @@ void GameHandler::handleInstanceDifficulty(network::Packet& packet) {
|
|||
} else {
|
||||
instanceIsHeroic_ = (instanceDifficulty_ == 1);
|
||||
}
|
||||
inInstance_ = true;
|
||||
LOG_INFO("Instance difficulty: ", instanceDifficulty_, " heroic=", instanceIsHeroic_);
|
||||
|
||||
// Announce difficulty change to the player (only when it actually changes)
|
||||
|
|
@ -22386,6 +22387,7 @@ void GameHandler::handleNewWorld(network::Packet& packet) {
|
|||
}
|
||||
|
||||
currentMapId_ = mapId;
|
||||
inInstance_ = false; // cleared on map change; re-set if SMSG_INSTANCE_DIFFICULTY follows
|
||||
if (socket) {
|
||||
socket->tracePacketsFor(std::chrono::seconds(12), "new_world");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue