mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
Tweaks watchers and legions (#30028)
* Tweaks watchers and legions * Linters * Flight fix * Fixes aggro range
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user