Skip to main content

TRAP_TYPE_ABSENT

Constant TRAP_TYPE_ABSENT 

Source
pub const TRAP_TYPE_ABSENT: u8 = 0xFF;
Expand description

TrapType’s value when a file does not carry one.

Not a traps.2da row. Row 255 does not exist in vanilla data, so a file missing both this and OnTrapTriggered sends the engine to an out-of-range lookup rather than to a clean “no trap” state. Reading an absent TrapType as 0 instead would name a row that does exist, turning “no trap configured” into “trap type 0”.