Kelsidavis-WoWee/Data/expansions/wotlk/update_fields.json
Paul e58f9b4b40 feat(animation): 452 named constants, 30-phase character animation state machine
Add animation_ids.hpp/cpp with all 452 WoW animation ID constants (anim::STAND,
anim::RUN, anim::FIRE_BOW, ... anim::FLY_BACKWARDS, etc.), nameFromId() O(1)
lookup, and flyVariant() compact 218-element ground→FLY_* resolver.

Expand AnimationController into a full state machine with 20+ named states:
spell cast (directed→omni→cast fallback chain, instant one-shot release),
hit reactions (WOUND/CRIT/DODGE/BLOCK/SHIELD_BLOCK), stun, wounded idle,
stealth animation substitution, loot, fishing channel, sit/sleep/kneel
down→loop→up transitions, sheathe/unsheathe combat enter/exit, ranged weapons
(BOW/GUN/CROSSBOW/THROWN with reload states), game object OPEN/CLOSE/DESTROY,
vehicle enter/exit, mount flight directionals (FLY_LEFT/RIGHT/UP/DOWN/BACKWARDS),
emote state variants, off-hand/pierce/dual-wield alternation, NPC
birth/spawn/drown/rise, sprint aura override, totem idle, NPC greeting/farewell.

Add spell_defines.hpp with SpellEffect (~45 constants) and SpellMissInfo
(12 constants) namespaces; replace all magic numbers in spell_handler.cpp.

Add GAMEOBJECT_BYTES_1 to update field table (all 4 expansion JSONs) and wire
GameObjectStateCallback. Add DBC cross-validation on world entry.

Expand tools/_ANIM_NAMES from ~35 to 452 entries in m2_viewer.py and
asset_pipeline_gui.py. Add tests/test_animation_ids.cpp.

Bug fixes included:
- Stand state 1 was animating READY_2H(27) — fixed to SITTING(97)
- Spell casts ended freeze-frame — add one-shot release animation
- NPC 2H swing probe chain missing ATTACK_2H_LOOSE (polearm/staff)
- Chair sits (states 2/4/5/6) incorrectly played floor-sit transition
- STOP(3) used for all spell casts — replaced with model-aware chain
2026-04-04 23:02:53 +03:00

63 lines
1.9 KiB
JSON

{
"CONTAINER_FIELD_NUM_SLOTS": 64,
"CONTAINER_FIELD_SLOT_1": 66,
"GAMEOBJECT_DISPLAYID": 8,
"GAMEOBJECT_BYTES_1": 17,
"ITEM_FIELD_DURABILITY": 60,
"ITEM_FIELD_MAXDURABILITY": 61,
"ITEM_FIELD_STACK_COUNT": 14,
"OBJECT_FIELD_ENTRY": 3,
"OBJECT_FIELD_SCALE_X": 4,
"PLAYER_BLOCK_PERCENTAGE": 1024,
"PLAYER_BYTES": 153,
"PLAYER_BYTES_2": 154,
"PLAYER_CHOSEN_TITLE": 1349,
"PLAYER_CRIT_PERCENTAGE": 1029,
"PLAYER_DODGE_PERCENTAGE": 1025,
"PLAYER_EXPLORED_ZONES_START": 1041,
"PLAYER_FIELD_ARENA_CURRENCY": 1423,
"PLAYER_FIELD_BANKBAG_SLOT_1": 458,
"PLAYER_FIELD_BANK_SLOT_1": 402,
"PLAYER_FIELD_COINAGE": 1170,
"PLAYER_FIELD_COMBAT_RATING_1": 1231,
"PLAYER_FIELD_HONOR_CURRENCY": 1422,
"PLAYER_FIELD_INV_SLOT_HEAD": 324,
"PLAYER_FIELD_MOD_DAMAGE_DONE_POS": 1171,
"PLAYER_FIELD_MOD_HEALING_DONE_POS": 1192,
"PLAYER_FIELD_PACK_SLOT_1": 370,
"PLAYER_FLAGS": 150,
"PLAYER_NEXT_LEVEL_XP": 635,
"PLAYER_PARRY_PERCENTAGE": 1026,
"PLAYER_QUEST_LOG_START": 158,
"PLAYER_RANGED_CRIT_PERCENTAGE": 1030,
"PLAYER_REST_STATE_EXPERIENCE": 1169,
"PLAYER_SKILL_INFO_START": 636,
"PLAYER_SPELL_CRIT_PERCENTAGE1": 1032,
"PLAYER_XP": 634,
"UNIT_DYNAMIC_FLAGS": 147,
"UNIT_END": 148,
"UNIT_FIELD_ATTACK_POWER": 123,
"UNIT_FIELD_BYTES_0": 23,
"UNIT_FIELD_BYTES_1": 137,
"UNIT_FIELD_DISPLAYID": 67,
"UNIT_FIELD_FACTIONTEMPLATE": 55,
"UNIT_FIELD_FLAGS": 59,
"UNIT_FIELD_FLAGS_2": 60,
"UNIT_FIELD_HEALTH": 24,
"UNIT_FIELD_LEVEL": 54,
"UNIT_FIELD_MAXHEALTH": 32,
"UNIT_FIELD_MAXPOWER1": 33,
"UNIT_FIELD_MOUNTDISPLAYID": 69,
"UNIT_FIELD_POWER1": 25,
"UNIT_FIELD_RANGED_ATTACK_POWER": 126,
"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_FIELD_TARGET_HI": 7,
"UNIT_FIELD_TARGET_LO": 6,
"UNIT_NPC_FLAGS": 82,
"UNIT_NPC_EMOTESTATE": 164
}