Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/component/pitfall

A component for turfs which make movable atoms "fall down a pit"

Vars

BruteDamageMaxthe maximum amount of brute damage applied. This is used in random_brute_damage()
FallTimeHow long it takes for a thing to fall into the pit. 0 is instant, but usually you'd have a couple deciseconds where something can be flung across. Should use time defines.
allow_anchoredWhether anchored == ANCHORED atoms are supposed to fall down or not. Currently defaults to true because minisubs and such.

Procs

fall_toa proc that makes a movable atom 'A' fall from 'src.typecasted_parent()' to 'T' with a maximum of 'brutedamage' brute damage
start_fallcalled when movable atom AM enters a pitfall turf. Mainly checks.
try_fallcalled when it's time for movable atom AM to actually fall into the pit
typecasted_parentreturns the .parent but typecasted as a turf
update_targetsupdates targets for area/coordinate targeting. is overridden added to in child types.

Var Details

BruteDamageMax

the maximum amount of brute damage applied. This is used in random_brute_damage()

FallTime

How long it takes for a thing to fall into the pit. 0 is instant, but usually you'd have a couple deciseconds where something can be flung across. Should use time defines.

allow_anchored

Whether anchored == ANCHORED atoms are supposed to fall down or not. Currently defaults to true because minisubs and such.

Proc Details

fall_to

a proc that makes a movable atom 'A' fall from 'src.typecasted_parent()' to 'T' with a maximum of 'brutedamage' brute damage

start_fall

called when movable atom AM enters a pitfall turf. Mainly checks.

try_fall

called when it's time for movable atom AM to actually fall into the pit

typecasted_parent

returns the .parent but typecasted as a turf

update_targets

updates targets for area/coordinate targeting. is overridden added to in child types.