HazardSourceSpec

A value shape that methods take or return.

Group
scene
Methods
None
Fields
6

Fields

FieldTypeDescription
groupnumber?Which bucket, 0 to 7; another raises. Lets a later query ask about one class of hazard alone: "will the BLADE reach this tile" is a dif…
kind("block" | "cost")?"block" (impassable while live) or "cost" (passable, discouraged). Defaults to "block".
costnumber?For "cost": what to add to the tile's entry cost while live.
shapeHazardShape?Where it reaches. Optional only when the schedule is frames.
scheduleHazardSchedule?When it is live. Defaults to always.
piercesGraceboolean?Whether it still blocks a mover inside a grace window. A grace that covers one hazard rarely covers all of them.

Field details

group

group: number?

Which bucket, 0 to 7; another raises. Lets a later query ask about one class of hazard alone: "will the BLADE reach this tile" is a different question from "is anything lethal here". Defaults to 0.