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

weeds

Vars

blacklisted_turfsthe list of turfs that the weeds will not be able to grow over
node_rangethe range of the weeds going to be affected by the node
parent_nodethe parent node that will determine if we grow or die

Procs

after_parent_destroyedCalled when the parent node is destroyed
do_qdelCalled to delete the weed
find_new_parentCalled when trying to find a new parent after our previous parent died Will return false if it can't find a new_parent Will return the new parent if it can find one
set_base_iconRandomizes the weeds' starting icon, gets redefined by children for them not to share the behavior.
try_expandCalled when the node is trying to grow/expand

Var Details

blacklisted_turfs

the list of turfs that the weeds will not be able to grow over

node_range

the range of the weeds going to be affected by the node

parent_node

the parent node that will determine if we grow or die

Proc Details

after_parent_destroyed

Called when the parent node is destroyed

do_qdel

Called to delete the weed

find_new_parent

Called when trying to find a new parent after our previous parent died Will return false if it can't find a new_parent Will return the new parent if it can find one

set_base_icon

Randomizes the weeds' starting icon, gets redefined by children for them not to share the behavior.

try_expand

Called when the node is trying to grow/expand