/tg/ Station 13 - Modules - TypesProc Details

target_priority_strategy

Target priority datum, exists to allow target acquisition behaviors to have custom selection policies. Singleton.

Procs

can_replace_targetReturns TRUE if candidate may replace current_target during a reselection pass. The default is sticky on ties to avoid otherwise-equivalent targets changing every search tick.
get_target_priorityReturns a number representing the priority of a target, higher -> more likely to be selected.
select_targetReturns a single atom from the list of passed targets

Proc Details

can_replace_target

Returns TRUE if candidate may replace current_target during a reselection pass. The default is sticky on ties to avoid otherwise-equivalent targets changing every search tick.

get_target_priority

Returns a number representing the priority of a target, higher -> more likely to be selected.

select_target

Returns a single atom from the list of passed targets