benilla-re systems structs docs

s_environmentalDamageSchools

global · objectlayer

Address
0x809274 · 24 bytes, up to 0x80928b
Type
uint32_t[6]
Meaning
Maps an environmental damage type to its school
Confidence
verified, proof one
Finding
objectlayer/unitcombat#environmental-damage-and-death

Finding: Environmental damage and death in objectlayer: unit combat

0x1fc writes the environmental line, signals the active player's wound in the type's school with absorb and resist marks, and plays the type's kit, the kit even for a hit of all zeros. A unit's death writes the death line, flushes the XP gain held on it, which is always empty since a gain is written as it is stored, plays the death animation and the death sound, stops its loop sound and, for the active player, signals PLAYER_DEAD.

The derivation is in the doc.