Skip to main content

Module util

Module util 

Source

Functionsยง

are_our_owners_hostile ๐Ÿ”’
entities_have_line_of_sight ๐Ÿ”’
get_attacker ๐Ÿ”’
get_entity_by_id
handle_attack_aggression ๐Ÿ”’
Handles whether an agent should attack and how the agent moves around. Returns whether the agent should attack (so that individual tactics can determine what specific attack to use)
is_dead
is_dead_or_invulnerable
is_dressed_as_cultist ๐Ÿ”’
is_dressed_as_pirate ๐Ÿ”’
is_dressed_as_witch ๐Ÿ”’
is_invulnerable
is_steering
is_village_guard ๐Ÿ”’
is_villager ๐Ÿ”’
positions_have_line_of_sight ๐Ÿ”’
should_continue_to_pursue ๐Ÿ”’
Scores the benefit of continuing the pursue in value from 0 to infinity.
should_let_target_escape ๐Ÿ”’
Scores the benefit of letting the target escape in a value from 0 to infinity.
stop_pursuing
Calculates whether the agent should continue chase or let the target escape.
try_owner_alignment ๐Ÿ”’
Gets alignment of owner if alignment given is Owned. Returns original alignment if not owned.