BuildWeaponSkillSpells
function · objectlayer · primitive
- Address
0x5e2ca0· 264 bytes, up to0x5e2da7- Meaning
- Fills the weapon-subclass spell table 0xc4d730 and the effect-0x1a spell 0xc4d688 from Spell.dbc
- 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
- AddPlayerTypeWatchers objectlayer
Callees 4
- FreeUint32Array core
- ReallocUint32Array core
- GetWeaponSubclassCount objectlayer
- GetSingleBitIndex objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.