mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
feat: track UNIT_FIELD_STAT0-4 from server update fields for accurate character stats
Add UNIT_FIELD_STAT0-4 (STR/AGI/STA/INT/SPI) to the UF enum and wire up per-expansion indices in all four expansion JSON files (WotLK: 84-88, Classic/Turtle: 138-142, TBC: 159-163). Read the values in both CREATE and VALUES player update handlers and store in playerStats_[5]. renderStatsPanel now uses the server-authoritative totals when available, falling back to the previous 20+level estimate only if the server hasn't sent UNIT_FIELD_STAT* yet. Item-query bonuses are still shown as (+N) alongside the server total for both paths.
This commit is contained in:
parent
d95abfb607
commit
99de1fa3e5
10 changed files with 115 additions and 30 deletions
|
|
@ -17,6 +17,11 @@
|
|||
"UNIT_NPC_FLAGS": 147,
|
||||
"UNIT_DYNAMIC_FLAGS": 143,
|
||||
"UNIT_FIELD_RESISTANCES": 154,
|
||||
"UNIT_FIELD_STAT0": 138,
|
||||
"UNIT_FIELD_STAT1": 139,
|
||||
"UNIT_FIELD_STAT2": 140,
|
||||
"UNIT_FIELD_STAT3": 141,
|
||||
"UNIT_FIELD_STAT4": 142,
|
||||
"UNIT_END": 188,
|
||||
"PLAYER_FLAGS": 190,
|
||||
"PLAYER_BYTES": 191,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@
|
|||
"UNIT_NPC_FLAGS": 168,
|
||||
"UNIT_DYNAMIC_FLAGS": 164,
|
||||
"UNIT_FIELD_RESISTANCES": 185,
|
||||
"UNIT_FIELD_STAT0": 159,
|
||||
"UNIT_FIELD_STAT1": 160,
|
||||
"UNIT_FIELD_STAT2": 161,
|
||||
"UNIT_FIELD_STAT3": 162,
|
||||
"UNIT_FIELD_STAT4": 163,
|
||||
"UNIT_END": 234,
|
||||
"PLAYER_FLAGS": 236,
|
||||
"PLAYER_BYTES": 237,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@
|
|||
"UNIT_NPC_FLAGS": 147,
|
||||
"UNIT_DYNAMIC_FLAGS": 143,
|
||||
"UNIT_FIELD_RESISTANCES": 154,
|
||||
"UNIT_FIELD_STAT0": 138,
|
||||
"UNIT_FIELD_STAT1": 139,
|
||||
"UNIT_FIELD_STAT2": 140,
|
||||
"UNIT_FIELD_STAT3": 141,
|
||||
"UNIT_FIELD_STAT4": 142,
|
||||
"UNIT_END": 188,
|
||||
"PLAYER_FLAGS": 190,
|
||||
"PLAYER_BYTES": 191,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@
|
|||
"UNIT_NPC_FLAGS": 82,
|
||||
"UNIT_DYNAMIC_FLAGS": 147,
|
||||
"UNIT_FIELD_RESISTANCES": 99,
|
||||
"UNIT_FIELD_STAT0": 84,
|
||||
"UNIT_FIELD_STAT1": 85,
|
||||
"UNIT_FIELD_STAT2": 86,
|
||||
"UNIT_FIELD_STAT3": 87,
|
||||
"UNIT_FIELD_STAT4": 88,
|
||||
"UNIT_END": 148,
|
||||
"PLAYER_FLAGS": 150,
|
||||
"PLAYER_BYTES": 153,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue