HazardRunner.component
README.md
arena.HazardRunner
Runs the BattleBox's hazards in play. The arena.battlebox scene module attaches it to the BattleBox root it builds; it finds each hazard's moving parts by name under Hazards/<id> and animates them on the hazard's own cycle from game.rules (Rules.HAZARDS): floor-saw blades spin, kill-saw blades rise and sink on their 2 s cycle, the screw-pit augers counter-rotate, and the four corner pulverizers slam on a staggered 4 s cycle.
Damage follows the spec's Interfaces: each registered bot's position is tested with Rules.hazardAt; a hit calls Rules.applyDamage(victim, damage, kind) (credited to the opponent) at most once per hazard cooldown and fires "hazard" { hazard, kind, victim, damage, point, knockUp }. Every slam fires "pulverize" { hazard }. A bot over the screw pit gets Rules.bot(name).stuck = true and 3 damage per second; the runner clears the flag it set when the bot leaves. Fields: sawRevsPerSecond, augerRevsPerSecond, pulverizerStagger (defaults are the game's values).