Legends-of-Azeroth / Legends-of-Azeroth-Pandaria-5.4.8

Legends-of-Azeroth-Pandaria-5.4.8
https://legends-of-azeroth.github.io/Legends-of-Azeroth-Pandaria-5.4.8/
GNU General Public License v2.0
52 stars 50 forks source link

[Core/Entities] Recreate update field files #325

Closed jasongdove closed 1 month ago

jasongdove commented 1 month ago

This re-creates all update field files using the extractor code that has been back-ported to mists 18414 at https://github.com/jasongdove/wow-tools - though I tried to keep the formatting and naming similar to the existing code as much as possible to minimize changes.

Some renames:

CORPSE_FIELD_SKIN_ID => CORPSE_FIELD_BYTES_1 CORPSE_FIELD_FACIAL_HAIR_STYLE_ID => CORPSE_FIELD_BYTES_2

DYNAMICOBJECT_FIELD_TYPE_AND_VISUAL_ID => DYNAMICOBJECT_BYTES

GAMEOBJECT_FIELD_PERCENT_HEALTH => GAMEOBJECT_BYTES_1

PLAYER_FIELD_HAIR_COLOR_ID => PLAYER_BYTES PLAYER_FIELD_REST_STATE => PLAYER_BYTES_2 PLAYER_FIELD_ARENA_FACTION => PLAYER_BYTES_3 PLAYER_FIELD_LIFETIME_MAX_RANK => PLAYER_FIELD_BYTES PLAYER_FIELD_OVERRIDE_SPELLS_ID => PLAYER_FIELD_BYTES2

PLAYER_FIELD_SKILL_LINEIDS => PLAYER_FIELD_SKILL + SKILL_ID_OFFSET PLAYER_FIELD_SKILL_STEPS => PLAYER_FIELD_SKILL + SKILL_STEP_OFFSET PLAYER_FIELD_SKILL_RANKS => PLAYER_FIELD_SKILL + SKILL_RANK_OFFSET PLAYER_FIELD_SKILL_MAX_RANKS => PLAYER_FIELD_SKILL + SKILL_MAX_RANK_OFFSET PLAYER_FIELD_SKILL_MODIFIERS => PLAYER_FIELD_SKILL + SKILL_MODIFIER_OFFSET PLAYER_FIELD_SKILL_TALENTS => PLAYER_FIELD_SKILL + SKILL_TALENT_OFFSET

UNIT_FIELD_SEX => UNIT_FIELD_BYTES_0 UNIT_FIELD_ANIM_TIER => UNIT_FIELD_BYTES_1 UNIT_FIELD_SHAPESHIFT_FORM => UNIT_FIELD_BYTES_2 UNIT_FIELD_FLAGS2 => UNIT_FIELD_FLAGS_2

The other big change is to the enum UpdatefieldFlags - some of the flags were wrong. The values were changed and now the UpdateFieldFlags.cpp file more closely matches both TCPP (4.x) and TC (6.x, 7.x).

leelf00 commented 1 month ago

PR works correctly in game