/tg/ Station 13 - Modules - TypesVar Details - Proc Details

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_directionFrom our perspective, where does someone need to stand to be able to fall from us? Cardinal only, we do the diagonals automatically
fall_directionIf we fall, in which direction?
fall_speedSpeed at which we fall / traverse downwards
protected_typesMovables that can move freely on cliffs
underlay_planeif given, sets the underlays plane to this
underlay_tileDo we draw a tile as underlay for half tiles?
undertile_pixel_xThe pixel x of the underlay image
undertile_pixel_yThe pixel y of the underlay image
valid_move_dirsDirections to which we can move towards while grinding down

Procs

can_fallCheck if they can fall from us
can_moveCheck if the movement direction we're moving on (while already falling on us) is valid
fallMake them fall!
on_fallWe just fell onto this chasm tile
on_turf_movable_throw_landedSomething landed on us
try_fallTry 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