mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 08:00:14 +00:00
Fix Turtle WoW compatibility: NPC spawning, quests, spells, realm display, and music
- Add TurtlePacketParsers with dedicated movement block parser (Classic format + transport timestamp) - Fix quest giver status: read uint32 and translate vanilla enum values for Classic/Turtle - Fix quest accept packet: remove trailing uint32 that vanilla servers reject - Fix quest details parser: auto-detect vanilla vs WotLK format (informUnit field) - Fix spellbook and action bar icons: fallback to WotLK DBC field indices when expansion layout fails - Fix spell cast failure messages: translate vanilla SpellCastResult codes (+1 offset) - Fix realm list: correct type values (6=RP, 8=RP-PvP) and population thresholds - Fix music: disable looping for zone music, auto-advance to next random track when finished - Add music anti-repeat: avoid playing the same track back-to-back - Make TBC update block parsing resilient (keep parsed blocks on failure instead of aborting) - Add right-click attack on hostile mobs - Add name query diagnostic logging
This commit is contained in:
parent
d850fe6fc0
commit
36fc1df706
12 changed files with 358 additions and 48 deletions
|
|
@ -127,8 +127,8 @@ void RealmScreen::render(auth::AuthHandler& authHandler) {
|
|||
ImGui::TableSetColumnIndex(1);
|
||||
if (realm.icon == 0) ImGui::Text("Normal");
|
||||
else if (realm.icon == 1) ImGui::Text("PvP");
|
||||
else if (realm.icon == 4) ImGui::Text("RP");
|
||||
else if (realm.icon == 6) ImGui::Text("RP-PvP");
|
||||
else if (realm.icon == 6) ImGui::Text("RP");
|
||||
else if (realm.icon == 8) ImGui::Text("RP-PvP");
|
||||
else ImGui::Text("Type %d", realm.icon);
|
||||
|
||||
// Population column
|
||||
|
|
@ -136,8 +136,8 @@ void RealmScreen::render(auth::AuthHandler& authHandler) {
|
|||
ImVec4 popColor = getPopulationColor(realm.population);
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, popColor);
|
||||
if (realm.population < 0.5f) ImGui::Text("Low");
|
||||
else if (realm.population < 1.0f) ImGui::Text("Medium");
|
||||
else if (realm.population < 2.0f) ImGui::Text("High");
|
||||
else if (realm.population < 1.5f) ImGui::Text("Medium");
|
||||
else if (realm.population < 2.5f) ImGui::Text("High");
|
||||
else ImGui::Text("Full");
|
||||
ImGui::PopStyleColor();
|
||||
|
||||
|
|
@ -238,9 +238,9 @@ const char* RealmScreen::getRealmStatus(uint8_t flags) const {
|
|||
ImVec4 RealmScreen::getPopulationColor(float population) const {
|
||||
if (population < 0.5f) {
|
||||
return ImVec4(0.3f, 1.0f, 0.3f, 1.0f); // Green - Low
|
||||
} else if (population < 1.0f) {
|
||||
} else if (population < 1.5f) {
|
||||
return ImVec4(1.0f, 1.0f, 0.3f, 1.0f); // Yellow - Medium
|
||||
} else if (population < 2.0f) {
|
||||
} else if (population < 2.5f) {
|
||||
return ImVec4(1.0f, 0.6f, 0.0f, 1.0f); // Orange - High
|
||||
} else {
|
||||
return ImVec4(1.0f, 0.3f, 0.3f, 1.0f); // Red - Full
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue