GetWeaponSubclassCount
function · objectlayer · primitive
- Address
0x5e2db0· 93 bytes, up to0x5e2e0c- Signature
uint32_t __thiscall (void *this)- Meaning
- Returns one past the highest ItemSubClass subclass of class 2, or 0 when there is none
- Confidence
- verified, proof one
- Finding
- objectlayer/playercombat#weapon-skills
Finding: Weapon skills in objectlayer: player spells and combat
At world entry 0x5e2ca0 builds, from Spell.dbc, a table from weapon subclass to a spell, and the
spell 0xc4d688. It walks the spells from the last to the first; among those with Attributes 0x40,
the first with effect 0x1a becomes 0xc4d688, and each with class 2 and a single subclass bit
writes its id for that subclass, so the lowest id wins. 0x5ed9d0(hand) gives a hand's weapon
spell, the unarmed one (0x53f8a0) for no weapon. Slots 43 and 44 return the skill values of
0xc4d688's line and of a hand's weapon spell; 0x5edae0 the ranged weapon's.
The derivation is in the doc.
Callers 1
- BuildWeaponSkillSpells objectlayer
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.