s_castFailureKeyJumpTable
global · spell
- Address
0x6e2764· 580 bytes, up to0x6e29a7- Type
void *[145]- Meaning
- Holds the key cases of reasons 0 to 0x90; entry r is 0x6e23f6 plus 6r
- Confidence
- verified, proof one
- Finding
- spell/failures#reason-key-switch
Finding: Reason key switch in spell: failures
0x6e23e0 maps a reason byte to its GlobalStrings key. Reason r from 0 to 0x90 returns the string
r places below the top of a run of 146 strings, each padded to 4 bytes, that
descends from 0x870b64 (0, SPELL_FAILED_AFFECTING_COMBAT) to 0x86fab8 (0x90,
SPELL_FAILED_MIN_SKILL); any larger byte returns the run's lowest string, 0x86faa0,
SPELL_FAILED_UNKNOWN. Every key is SPELL_FAILED_ and a name; the 146 are distinct. Keys this
topic relies on: 0x17 DONT_REPORT, 0x23 INTERRUPTED, 0x24 INTERRUPTED_COMBAT, 0x3c
NOT_READY, 0x4d NO_POWER, 0x61 SPELL_IN_PROGRESS, 0x84 PROSPECT_NEED_MORE.
The derivation is in the doc.