cliff
A cliff tile from where people can fall. Should generally fall downwards, but you can change it if you want
Vars | |
can_fall_from_direction | From our perspective, where does someone need to stand to be able to fall from us? Cardinal only, we do the diagonals automatically |
---|---|
fall_direction | If we fall, in which direction? |
fall_speed | Speed at which we fall / traverse downwards |
protected_types | Movables that can move freely on cliffs |
underlay_plane | if given, sets the underlays plane to this |
underlay_tile | Do we draw a tile as underlay for half tiles? |
undertile_pixel_x | The pixel x of the underlay image |
undertile_pixel_y | The pixel y of the underlay image |
valid_move_dirs | Directions to which we can move towards while grinding down |
Procs | |
can_fall | Check if they can fall from us |
can_move | Check if the movement direction we're moving on (while already falling on us) is valid |
fall | Make them fall! |
on_fall | We just fell onto this chasm tile |
on_turf_movable_throw_landed | Something landed on us |
try_fall | Try and make them fall |
Var Details
can_fall_from_direction
From our perspective, where does someone need to stand to be able to fall from us? Cardinal only, we do the diagonals automatically
fall_direction
If we fall, in which direction?
fall_speed
Speed at which we fall / traverse downwards
protected_types
Movables that can move freely on cliffs
underlay_plane
if given, sets the underlays plane to this
underlay_tile
Do we draw a tile as underlay for half tiles?
undertile_pixel_x
The pixel x of the underlay image
undertile_pixel_y
The pixel y of the underlay image
valid_move_dirs
Directions to which we can move towards while grinding down
Proc Details
can_fall
Check if they can fall from us
can_move
Check if the movement direction we're moving on (while already falling on us) is valid
fall
Make them fall!
on_fall
We just fell onto this chasm tile
on_turf_movable_throw_landed
Something landed on us
try_fall
Try and make them fall