/tg/ Station 13 - Modules - TypesProc Details

targeting_strategy

Datum for basic mobs to define what they can attack, Global, just like ai_behaviors

Procs

can_keep_targetReturns TRUE if we should keep tracking an existing target when no new candidates are visible. Called with the loss range (typically larger than vision_range). Default delegates to is_valid_target so all normal checks still apply.
find_hidden_mobsReturns an atom the target might be hiding inside of, or null if none.
is_valid_targetReturns true or false depending on if the target can be attacked by the mob. Base proc checks if target is within vision_range distance.

Proc Details

can_keep_target

Returns TRUE if we should keep tracking an existing target when no new candidates are visible. Called with the loss range (typically larger than vision_range). Default delegates to is_valid_target so all normal checks still apply.

find_hidden_mobs

Returns an atom the target might be hiding inside of, or null if none.

is_valid_target

Returns true or false depending on if the target can be attacked by the mob. Base proc checks if target is within vision_range distance.