s_cases52e610
global · ui
- Address
0x52f7c4· 20 bytes, up to0x52f7d7- Type
void *[5]- Meaning
- Holds the 5 case addresses of the switch in 0x52e610
- Confidence
- inferred
- Finding
- ui/tooltipspellreq#the-chance-lines
Finding: The chance lines in ui: Spell tooltip requirements and description
A passive spell whose first effect is dodge (20), parry (22) or block (23), and a spell whose first effect is
attack (78), whether passive or not, adds one line of the player's current chance: CHANCE_TO_DODGE,
CHANCE_TO_PARRY, CHANCE_TO_BLOCK or CHANCE_TO_CRIT, in white. The percentage is a float of the
player's field block, passed as a double to the template. A compact tooltip has no such line.
| first effect | key | field of the player block |
|---|---|---|
| 20 | CHANCE_TO_DODGE | +0xe5c |
| 22 | CHANCE_TO_PARRY | +0xe60 |
| 23 | CHANCE_TO_BLOCK | +0xe58 |
| 78 | CHANCE_TO_CRIT | +0xe64 |
The derivation is in the doc.