Tweaks watchers and legions (#30028)

* Tweaks watchers and legions

* Linters

* Flight fix

* Fixes aggro range
This commit is contained in:
PollardTheDragon
2025-08-19 06:50:54 +00:00
committed by GitHub
parent 19172782f7
commit 66615e9a2a
8 changed files with 20 additions and 3 deletions
@@ -26,3 +26,7 @@
hunt_targets = list(/turf/simulated/floor/plasteel)
hunt_range = 8
hunt_chance = 50
/datum/ai_planning_subtree/find_and_hunt_target/prowl/lavaland
hunt_targets = list(/turf/simulated/floor/plating/asteroid)
hunt_chance = 15
@@ -9,6 +9,8 @@
var/ignore_sight = FALSE
/// Blackboard key containing the minimum stat of a living mob to target
var/minimum_stat_key = BB_TARGET_MINIMUM_STAT
/// Blackboard key for the maximum aggro range of the mob
var/aggro_range_key = BB_AGGRO_RANGE
/// If this blackboard key is TRUE, makes us only target wounded mobs
var/target_wounded_key
@@ -36,6 +38,10 @@
if(vision_range && get_dist(living_mob, the_target) > vision_range)
return FALSE
var/aggro_range = our_controller.blackboard[aggro_range_key]
if(aggro_range && get_dist(living_mob, the_target) > aggro_range)
return FALSE
if(!ignore_sight && !can_see(living_mob, the_target, vision_range)) //Target has moved behind cover and we have lost line of sight to it
return FALSE